-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
West: openocd runner: Don't let debug mode on by default #32984
Comments
Thanks for the ticket @erwango |
Guess the main issue here is that we do not have a consistent west flash, with respect to the state the core is left at, after west flash is done. |
@mbolivar-nordic can you take a look here (or suggest alternative maintainer)? |
Null-pointer exception detection using DWT is currently incompatible with current openocd runner default implementation that leaves debug mode on by default. As a consequence, on all targets that use openocd runner, null-pointer exception detection using DWT will generated an assert. As a consequence, all tests are failing on such platforms. Disable this until openocd behavior is fixed (zephyrproject-rtos#32984) and enable the MPU based solution for now. Signed-off-by: Erwan Gouriou <[email protected]>
looks like pyocd is also affected see #32966 |
Null-pointer exception detection using DWT is currently incompatible with current openocd runner default implementation that leaves debug mode on by default. As a consequence, on all targets that use openocd runner, null-pointer exception detection using DWT will generated an assert. As a consequence, all tests are failing on such platforms. Disable this until openocd behavior is fixed (#32984) and enable the MPU based solution for now. Signed-off-by: Erwan Gouriou <[email protected]>
Sorry @ioannisg, I don't know enough about the underlying debug IPs to really help here. I see you already posted a PR for openocd, so it seems like you're on your own here :(. |
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
When flashing using openocd runner, the cortex-m processor is left in debug mode. It can, then, only be released after a power-on reset (cold reset).
This conflicts with the use of #31481 (Null pointer exception detection via DWT), and prevent its use by default in tests.
For this reason, Null pointer exception detection was disabled by default on all STM32 platforms, but it would be great to be able to re-instantiate it.Note: This potentially affect other runners as well (
pyocd, for instance).To Reproduce
Steps to reproduce the behavior:
Expected behavior
Don't prevent use of Null pointer exception detection when using openocd runner
Impact
Prevent use of Null pointer exception detection when using openocd runner in zephyr tests
Logs and console output
If applicable, add console logs or other types of debug information
e.g Wireshark capture or Logic analyzer capture (upload in zip archive).
copy-and-paste text and put a code fence (```) before and after, to help
explain the issue. (if unable to obtain text log, add a screenshot)
Environment (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: