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
As there is to my knowledge not an available DFU bootloader on esp for no_std applications, I've been attempting to implement embassy-boot for ESP architectures, attempting to copy the layout of the embassy-boot-* crates - however, the way that the embassy-boot-* crates Bootloader::load() functions work (which load the application thats in the "active" partition from what I can understand) uses cortex_m functions which are (at least from my searching) not available in the xtensa and riscv crates. How could I go about implementing this (or finding out how to implement it) for esp platforms?
The text was updated successfully, but these errors were encountered:
So the idea would be to replace the cortex-m bits with something like the above. Maybe @MabezDev can provide confirmation or additional info about reset.
Thank you for those! With some more tinkering, I have replaced the WatchdogFlash section of the bootloader, with suitable esp replacements (esp-storage is very useful for this) - however I still am not sure on the rest of the loading step (as before using the reset commands you have to modify the stack pointer). xtensa_lx::set_stack_pointer and xtensa_lx::set_vecbase seem like they could be helpful? (https://docs.rs/xtensa-lx/0.9.0/xtensa_lx/)
As there is to my knowledge not an available DFU bootloader on esp for no_std applications, I've been attempting to implement
embassy-boot
for ESP architectures, attempting to copy the layout of theembassy-boot-*
crates - however, the way that theembassy-boot-*
cratesBootloader::load()
functions work (which load the application thats in the "active" partition from what I can understand) uses cortex_m functions which are (at least from my searching) not available in the xtensa and riscv crates. How could I go about implementing this (or finding out how to implement it) for esp platforms?The text was updated successfully, but these errors were encountered: