MCUboot
cannot boot the main app on SAMD21
#67220
-
I'm trying to use I've added
I've also added in
Then, the sample project is built: west build -p -b adafruit_feather_m0_basic_proto --sysbuild samples/application_development/sysbuild/with_mcuboot Flashing is performed in 2 steps: # Flash bootloader (double-click the Reset button to enter the SAM Boot Assistant)
west -v flash --build-dir build/mcuboot
# Flash slot0 (double-click the Reset button to enter the SAM Boot Assistant)
west -v flash --build-dir build/with_mcuboot As a result:
And nothing more is printed (the board freezes?) Is it a bug, a non-feature, or maybe I've missed something? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
Works fine here on nordic platforms so something wrong with the atmel code/hal/driver/etc. @nandojve @attie-argentum @pdgendt @mnkp |
Beta Was this translation helpful? Give feedback.
-
Yes, it works on many other boards here as well ;) |
Beta Was this translation helpful? Give feedback.
-
Hi @vshymanskyy , |
Beta Was this translation helpful? Give feedback.
Hi @vshymanskyy ,
I tested and confirm that @ndrs-pst is right. There is an issue when switching clocks. I send the #67275 to fix it and I could use MCuboot on atsamr21_xpro (formally a samd21 + rf233).
MCuboot Patch:
Zephyr Patch:
diff --git a/boards/arm/atsamr21_xpro/atsamr21_xpro…