Report
1 week, 1 day ago.

Why does the stop-code only enter stop mode once?

Attached is a file with code for entering Stop-mode. The code works under Keil and enters/exits stop many times. When the function is used under mbed it will enter stop-mode and exits at the push of a button on line A0. After the stop exit, interrupts run but the main code does not. Any thoughts around what can be wrong? So stop is therefore only entered once. Note : SCB->SCR &= SCB_SCR_SLEEPONEXIT_Msk; is used. (The tilde is in place! see code file.) The board in use is a Nucleo-L053. /media/uploads/jmaeng/stop.cpp /media/uploads/jmaeng/stop.cpp

Comment on this question
Be the first to answer this question.

To post an answer, please log in.