esp32-hal icon indicating copy to clipboard operation
esp32-hal copied to clipboard

Rust bootloader

Open MabezDev opened this issue 5 years ago • 3 comments
trafficstars

We currently use the C bootloader used in the arduino sdk core (slightly modified for PSRAM support). We should be able to write an equivalent in Rust.

MabezDev avatar Jun 06 '20 14:06 MabezDev

Agree, however to add some color: it is quite a major task: the bootloader initializes flash, ram (depending on board and efuse config), memory protection unit; then it loads the partition table and loads the various segments to the correct places. Finally it sets up the caches correctly and hands over to teh user program.

arjanmels avatar Jun 07 '20 09:06 arjanmels

I agree this is a lot more complicated than it sounds. I'd say this is more a stretch goal, than something we should actively working on now.

MabezDev avatar Jun 07 '20 16:06 MabezDev

We can also think about using mcuboot instead of the IDF bootloader.

MabezDev avatar Dec 23 '21 14:12 MabezDev