“Why can’t I light up the LED when using the official NRF5340 Blinky example? During debugging, I found the program stuck at SLEEP_IF_ALLOWED(__WFE); in the cpu_idle.c file.”
“Why can’t I light up the LED when using the official NRF5340 Blinky example? During debugging, I found the program stuck at SLEEP_IF_ALLOWED(__WFE); in the cpu_idle.c file.”
Normal and intended behaviour, the idle thread is supposed to wait for timer (and other) interrupts.
I strongly recommend to start from nordic examples and not from the zephyr ones - the latter may not be written with the DK hardware in mind.
Hi,
This should not be a problem. Do you "pause" at random times? If so, it’s very likely that execution always stops at the line you shared because the CPU spends most of its time sleeping. If you instead press the step-over button, you’ll see the flow of execution normally.
Best regards,
Benjamin