Skip to content
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

nrf: Debugging any test fails when CORTEX_M_DEBUG_NULL_POINTER_EXCEPTION_DETECTION_DWT is enabled #33590

Closed
nordic-krch opened this issue Mar 23, 2021 · 2 comments
Assignees
Labels
bug The issue is a bug, or the PR is fixing a bug platform: nRF Nordic nRFx priority: medium Medium impact/importance bug
Milestone

Comments

@nordic-krch
Copy link
Contributor

nordic-krch commented Mar 23, 2021

Describe the bug
Nordic board by default has null pointer detection using DWT enabled in all tests. As a result, any test fails in debug session and ends in the assert during startup

__ASSERT((CoreDebug->DHCSR & CoreDebug_DHCSR_C_DEBUGEN_Msk) == 0,

To Reproduce
Steps to reproduce the behavior:

  1. start debug session for any test on nordic SoC.

Expected behavior
Debug session of the test application should be ready without need to dig deep into very specific arch options.

Impact
Annoyance. User is wasting time to figure out what is wrong.

Environment (please complete the following information):

  • OS: (e.g. Linux, MacOS, Windows)
  • Toolchain (e.g Zephyr SDK, ...)
  • Commit SHA or Version used

Additional context
Commit SHA: 16d2ab7

@nordic-krch nordic-krch added bug The issue is a bug, or the PR is fixing a bug platform: nRF Nordic nRFx labels Mar 23, 2021
@nordic-krch
Copy link
Contributor Author

fyi @ioannisg

@galak galak added the priority: medium Medium impact/importance bug label Mar 23, 2021
@galak galak added this to the v2.6.0 milestone May 11, 2021
@nashif
Copy link
Member

nashif commented May 25, 2021

closing as duplicate of #34222

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The issue is a bug, or the PR is fixing a bug platform: nRF Nordic nRFx priority: medium Medium impact/importance bug
Projects
None yet
Development

No branches or pull requests

4 participants