mcuboot icon indicating copy to clipboard operation
mcuboot copied to clipboard

Just a question - Can ESP32 talk to MCUBoot ?

Open hassandraga opened this issue 3 years ago • 5 comments

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.

hassandraga avatar Oct 21 '21 17:10 hassandraga

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.

rftafas avatar Oct 22 '21 12:10 rftafas

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.

rftafas avatar Oct 22 '21 12:10 rftafas

Thank you @rftafas, you answer helped us to make a decision.

hassandraga avatar Oct 22 '21 15:10 hassandraga

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.

github-actions[bot] avatar Apr 21 '22 02:04 github-actions[bot]

Can someone remove the stale label? This is still a common request.

beriberikix avatar Apr 21 '22 16:04 beriberikix

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.

github-actions[bot] avatar Oct 19 '22 03:10 github-actions[bot]

While not exactly the original question, https://github.com/espressif/esp-serial-flasher/issues/34 might be relevant to some folks.

beriberikix avatar Feb 14 '23 14:02 beriberikix