mcuboot
mcuboot copied to clipboard
Just a question - Can ESP32 talk to MCUBoot ?
We are planning to start using MCBoot soon, and I have some questions please. Basically, our board has two MCU, ESP32 and STM32, we are planning to flash the STM32 with MCBoot, but ESP32 won't have the MCBoot.
My question is, did can we make ESP32 securely talk to STM32(MCBoot)? or we needs to have MCUBoot on both sides?
[ ESP32 ] ---> uart ---> [ STM32 (MCUBoot) ]
The objective is to make ESP32 download the latest firmware for STM32, talk to MCUBoot and start handshake and flashing.
I'm not sure it is possible to talk to MCUboot like it is possible with U-Boot. You also may want to port to ESP32 the mcumgr-cli and add mcumgr server to STM32. Main problem is that the client (what would sit on ESP32) is written in GO, you would have to try tinygo or rewrite it (C/CPP/MicroPython). Another way is to use old serial protocols, like Z/X/Y Modem and after receiving the image on STM32, invoke MCUboot APIs.
BTW, this will all be on application level. As for security, you can encrypt the payload. The encryption keys can be of several different types, from factory-defined to random generated keys during the update event.
Thank you @rftafas, you answer helped us to make a decision.
This issue has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this issue will automatically be closed in 14 days. Note, that you can always re-open a closed issue at any time.
Can someone remove the stale label? This is still a common request.
This issue has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this issue will automatically be closed in 14 days. Note, that you can always re-open a closed issue at any time.
While not exactly the original question, https://github.com/espressif/esp-serial-flasher/issues/34 might be relevant to some folks.