AGlass0fMilk / mbed-mcuboot-demo

Demo of mcuboot with Mbed
11 stars 15 forks source link

Write-up request #1

Closed opiechow closed 3 years ago

opiechow commented 5 years ago

Hello :)

Great work porting mcuboot for mbed :1st_place_medal:

I'm trying to port this example on a different board (namely NUCLEO_F429) and could use some guidance, for example, how did you compile and generate images of your example applications? Compile them with mbed compile and then sign the resulting with imgtool?

I managed to build the bootloader itself and rewrote the flash map to use external flash, but it doesn't seem to work for me. I get a log message:

[WRN] Cannot upgrade: slots have non-compatible sectors.

Of course I'm debugging this myself, however I guess some more detailed write-up would be helpful and much appreciated.

Best regards :)

opiechow commented 5 years ago

https://github.com/opiechow/mbed-mcuboot-demo/commit/6eddff6a63bf8c09e809fde53c331de0a6030c5d

That's what I tried to do :)

AGlass0fMilk commented 5 years ago

Hey @opiechow

I guess I didn't get an email about this.

This was mostly a proof-of-concept at this point. I haven't completely documented the framework for using mcuboot on Mbed-OS.

I will check this out later. Glad you are interested in it!

EDIT: Please note that the usb bootloader I developed for the nRF52840 is not yet open sourced...

AGlass0fMilk commented 4 years ago

@opiechow Sorry it took so long but this became less of a priority for me until recent projects came up at work!

The updated README and demo provide a lot more detail than what I originally had as a proof-of-concept. My next step is to submit a PR to mcuboot mainline for mbed-os support.

I hope this still helps you!

AGlass0fMilk commented 4 years ago

@opiechow Also check out the new corresponding bootable application demo here for Mbed: https://github.com/AGlass0fMilk/mbed-mcuboot-blinky

AGlass0fMilk commented 3 years ago

The documentation has been updated extensively in #6 and the mbed-os port of mcuboot has been officially merged into mcuboot master.

Closing this.