esp-rs / esp-hal

no_std Hardware Abstraction Layers for ESP32 microcontrollers
https://docs.esp-rs.org/esp-hal/
Apache License 2.0
737 stars 207 forks source link

Explore using MCU boot as the second stage bootloader #2376

Open MabezDev opened 6 days ago

MabezDev commented 6 days ago

Related to #1973, we're leaning towards using MCUBOOT, but we need to explore if this is viable before we settle on it. The most important thing we need to know is can we change the ota slot addresses without forcing the user to rebuild the MCU boot project.

jessebraham commented 3 days ago

Don't want to count my chickens before they hatch, so being purposefully a bit cryptic here 😉

Took me a few days to get going on this, unfortunately encountered a number of issues which slowed me down. However, based on some very rudimentary tests I think this should be viable.

I still have some work to do before I'm able to say for sure, but I'm hoping that I can have a better idea by end of day tomorrow. I will update this issue by early-to-mid next week with my findings.