You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update instructions for getting the component examples in order
to make use of ESP-IDF Component Manager instead of cloning
through Git.
Signed-off-by: Almir Okato <[email protected]>
Copy file name to clipboardExpand all lines: content/blog/2025/01/how-to-migrate-from-idf-bootloader-to-mcuboot-using-esp-self-reflasher/index.md
+27-14Lines changed: 27 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,7 @@
1
1
---
2
2
title: "How to migrate from IDF Bootloader to MCUboot using ESP Self-Reflasher"
3
3
date: 2025-01-16
4
+
lastmod: 2025-12-09
4
5
showAuthor: false
5
6
authors:
6
7
- "almir-okato"
@@ -66,12 +67,22 @@ The component has examples for each way of operation. Both will be used in this
66
67
67
68
Besides **ESP-IDF** (see [ESP-IDF Getting Started](https://docs.espressif.com/projects/esp-idf/en/stable/esp32/get-started/index.html)), the following is required:
68
69
69
-
-**ESP Self-Reflasher**: clone it to `<IDF_DIR>/components` using Git:
70
+
-**ESP Self-Reflasher** examples: as shown in this guide, it is possible to create local copies of the **ESP Self-Reflasher** examples:
- **NuttX**: in order to build the application that will be migrated to, set the **NuttX** workspace. See [NuttX Getting Started](https://developer.espressif.com/blog/2020/11/nuttx-getting-started/).
77
88
@@ -129,17 +140,18 @@ Besides **ESP-IDF** (see [ESP-IDF Getting Started](https://docs.espressif.com/pr
129
140
130
141
The **ESP Self-Reflasher** component provides the example `boot_swap_download_example`. This can be used as a starting point for the reflashing application.
131
142
132
-
1. Navigate to the example directory.
143
+
1. Navigate to a directory of your choice and create a local copy from the `boot_swap_download_example`.
@@ -180,16 +192,17 @@ Alternatively, **ESP Self-Reflasher** component can be used without network conn
180
192
181
193
If the constraint is not a problem, `boot_swap_embedded_example` can be used as start point for the reflashing application. Note that for this guide, the size of the OTA partitions on the partition table may be changed (see next section).
182
194
183
-
1. Navigate to the example directory.
195
+
1. Navigate to a directory of your choice and create a local copy from the `boot_swap_embedded_example`.
9. Open a new bash and start the HTTP server for the OTA application. Here is a suggestion for creating the HTTP server using Python:
@@ -275,7 +288,7 @@ The **ESP-IDF**'s `simple_ota_example` will be used as the hypothetical **ESP-ID
275
288
If the `boot_swap_download_example` was used, copy the target reflashing images to the <HTTP_SERVER_DIR> or open another bash and start the HTTP server from where the reflashing images will be downloaded (watch for the <PORT> that cannot be the same):
276
289
277
290
```bash
278
-
cd <IDF_DIR>/components/esp-self-reflasher/examples/boot_swap_download_example/example_bin_dir/
291
+
cd <SAMPLE_DIR>/boot_swap_download_example/example_bin_dir/
0 commit comments