“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.”
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
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