Commit related to null pointer exception detection causing UART issues #34222
Labels
bug
The issue is a bug, or the PR is fixing a bug
priority: medium
Medium impact/importance bug
Stale
Describe the bug
I have been seeing issues related to UART lately.
The current master (
8bee027ec4
) has the following problem:nrfjprog -r
), no output is shownI have only found this to be true in
tests
, not insamples
.I found that the bug happens when ZTEST is used.
I have bisected the current master (bad) vs. the
v2.5.0
/fe7c2ef
tag/commit (good), and found the likely causal commit to be:1b22f6b8c8
.This commit ("enable null-pointer exception detection in the tests") introduces
CONFIG_CORTEX_M_DEBUG_NULL_POINTER_EXCEPTION
.If the below steps to reproduce are repeated but with
CONFIG_CORTEX_M_DEBUG_NULL_POINTER_EXCEPTION_DETECTION_NONE=y
(since we are not allowed to set the former manually), the problem goes away (UART appears even when restarting).To Reproduce
I found a simple test which includes printing stuff to UART.
(This test uses
debug.conf
instead of the implicitprj.conf
, so it must be explicitly passed)cd tests/misc/test_build
west build -b nrf52840dk_nrf52840 --pristine -- -DOVERLAY_CONFIG=debug.conf
nrfjprog -r
Expected behavior
UART output also when board is reset.
Impact
Is likely a cause for some of the CI issues in nRF Connect SDK downstream
sdk-nrf
seen the last several weeks (for tests relying on UART).Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: