Skip to content

MCUboot cannot boot the main app on SAMD21 #67220

Answered by nandojve
vshymanskyy asked this question in Q&A
Discussion options

You must be logged in to vote

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:

diff --git a/boot/zephyr/boards/atsamr21_xpro.conf b/boot/zephyr/boards/atsamr21_xpro.conf
new file mode 100644
index 00000000..71261122
--- /dev/null
+++ b/boot/zephyr/boards/atsamr21_xpro.conf
@@ -0,0 +1,6 @@
+# Copyright 2023 Gerson Fernando Budke <nandojve@gmail.com>
+# SPDX-License-Identifier: Apache-2.0
+
+CONFIG_BOOT_MAX_IMG_SECTORS=512
+CONFIG_BOOT_UPGRADE_ONLY=y
+CONFIG_MCUBOOT_DOWNGRADE_PREVENTION=y

Zephyr Patch:

diff --git a/boards/arm/atsamr21_xpro/atsamr21_xpro…

Replies: 3 comments 7 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
7 replies
@nandojve
Comment options

nandojve Jan 4, 2024
Collaborator

@vshymanskyy
Comment options

@ndrs-pst
Comment options

@nandojve
Comment options

nandojve Jan 7, 2024
Collaborator

Answer selected by vshymanskyy
@vshymanskyy
Comment options

@henrikbrixandersen
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
7 participants