AnsweredAssumed Answered

What causes this problem and how to solve it?

Question asked by Benjamin Bodnár on Mar 20, 2019
Latest reply on Mar 22, 2019 by Kerry Zhou

Hi,

 

I have an MKL16Z256VH4 uC, and I would like to use the LPTMR to wake up the device from VLPS sleep mode in every millisecundum. With this timer I set a LED to blink or not for a given time. This worked fine but I wanted some optimization to consume less current.

I tried to run my code, but the led blinked only if the code ran with debugger, or if I attached the RTT Viewer to the uC.

 

Why does my code run correctly only with RTT viewer?

Outcomes