Skip to content

[nrf fromtree] boot: zephyr: RAM cleanup debug loop #460

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

michalek-no
Copy link
Contributor

Option to put execution in infinite loop.
Meant to be used for debug.

Copy link
Contributor

@nordicjm nordicjm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

submit upstream?

bool "Loop after RAM cleanup"
depends on MCUBOOT_CLEANUP_RAM
help
Debug option that keeps execution in infinite loop after RAM cleanup
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be called "test" or "verification" option, and Kconfig named accordingly?

@@ -294,6 +294,9 @@ static void do_boot(struct boot_rsp *rsp)
" b clear\n"
"out:\n"
" dsb\n"
#if CONFIG_MCUBOOT_LOOP_AFTER_RAM_CLEANUP
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Grumpy me would still prefer scripting gdb, but not going to put up a fight over this.

@michalek-no michalek-no force-pushed the mb-loop branch 2 times, most recently from 3a5fa0c to e8642c9 Compare July 3, 2025 06:11
@michalek-no michalek-no changed the title [nrf noup] boot: zephyr: RAM cleanup debug loop [nrf fromlist] boot: zephyr: RAM cleanup debug loop Jul 3, 2025
@de-nordic
Copy link
Contributor

Some problems with commit tags

@nordicjm
Copy link
Contributor

Needs fix so CI passes

Option to put execution in infinite loop.
Meant to be used for debug.

Signed-off-by: Mateusz Michalek <mateusz.michalek@nordicsemi.no>
(cherry picked from commit 5eaf190a8a9d8fc032b989bf96fc56b3b756dd55)
@michalek-no michalek-no changed the title [nrf fromlist] boot: zephyr: RAM cleanup debug loop [nrf fromtree] boot: zephyr: RAM cleanup debug loop Jul 14, 2025
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants