-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
Endless loop at startup for not optimized application started by bootloader #69789
Comments
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. |
Reproduction steps change after #1922: Approach 1The Approach 2Build and run the bootloader with |
This also happens in my setup.
Confirmed applying ARM-software/CMSIS_5#1426 to |
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. |
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. |
Unfortunately ARM-software/CMSIS_5#1426 is not in CMSIS 5.9.0. |
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. |
Describe the bug
The application freezes in an endless loop when the bootloader starts it.
The Zephyr calls
z_arm_init_arch_hw_at_boot
after the bootloader jumps to the application. It detects the enabled D-Cache and tries to disable it. That performs a call toSCB_DisableDCache
that stucks in an endless loop.The issue is related to ARM-software/CMSIS_5#620. I confirm that applying ARM-software/CMSIS_5#1426 to https://github.com/zephyrproject-rtos/cmsis fixes the problem.
The patch requires an addition:
Currently, Zephyr uses CMSISv5. The upstream fixes the issue in the develop branch that is not released (v5.9.0 won't fix the problem), and in CMSISv6 (not used).
It would be great to mention the issue in the docs.
To Reproduce
1 Build and flash bootloader with enabled D-Cache and I-Cache (
CONFIG_CACHE_MANAGEMENT=y
).2. Build and flash application with enabled D-Cache and I-Cache (
CONFIG_CACHE_MANAGEMENT=y
) andExpected behavior
An application shall start.
Impact
It might be a showstopper. Developers must be aware of the issue. Otherwise, they risk bricking their devices after an application update.
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: