Closed cederom closed 1 month ago
Hello @cederom,
Taking a brief look at this - I believe this is a result of some of the recent fixes (https://github.com/espressif/esptool/commit/4c5874a3c497ce3bd2e3289d5e367db4f4ac89b5, https://github.com/espressif/esptool/commit/4394a658c40b73cc6d593797a42b665e68f84cf7, https://github.com/espressif/esptool/commit/e87cc3ec62c08046503092b8f58bf62ebadcbcac) in the --ram-only-header
option in v4.8.
These changes have been implemented by the Zephyr team. Hopefully, they can shed some more light on this - cc @almir-okato, @sylvioalves PTAL.
what would be the way to approach and fix
Currently, I can only recommend that you use the latest esptool. We don't plan to backport any of these changes and they are still somewhat "experimental".
Sorry, I don't have more answers at the moment, but I will look into this!
Thank you @radimkarnis :-) Question is why it worked before^TM ? :D
As we are close to a release probably we will throw build error if esptool <4.8 in that case.
Do you know if this kind of "simple boot" can be achieved without ram only flags? Or any other way to make things work again with older esptool if the fixes are not backported to older releases? Or 4.8 is the only way to go?
@cederom, "Simple Boot" bootloader was created to override esp-idf bootloader dependency (used in both NuttX and Zephyr RTOS). It does not require esp-idf partition-table and can run integrated with the application as a single bin. No need of multiple .bin files as needed in previous implementation.
Allowing such custom bootloader required changes in the way esptool merges sections (and other stuff).
Unless there is an issue with esptool >=4.8, I guess this can be closed. NuttX team will handle it in there.
Perfect! Thank you @radimkarnis @sylvioalves :-)
Operating System
FreeBSD, Linux (and probably others).
Esptool Version
4.7.0.
Python Version
3.8, 3.11.
Chip Description
ESP32.
Device Description
ESP32-DevKitC with ESP32-WROOM-32E.
Hardware Configuration
esp32-devkitc:nsh
configuration.How is Esptool Run
NuttX build script (see logs below).
Full Esptool Command Line that Was Run
./tools/configure.sh -B esp32-devkitc:nsh; gmake flash
Esptool Output
This is for version 4.7.0:
This is for version 4.8.1:
Initially version 4.3 was installed but that returned clear build error:
More Information
12.7.0-RC0
pre-release testing.Other Steps to Reproduce
No response
I Have Read the Troubleshooting Guide