Can't wake up MKL26Z256VLH4 through reset

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Can't wake up MKL26Z256VLH4 through reset

242 Views
An95
Contributor I

I have enabled deep sleep mode by loading the following code. The controller is not waking up by reset.

#include"MKL26Z4.h"
#include "board.h"
#include "fsl_uart.h"

#include "pin_mux.h"
#include "clock_config.h"

int main()
{
    SCB->SCR |= 1<<2; /* Enable deep-sleep feature */
    while(1)
    {
        __WFI();
    }
}
0 Kudos
1 Reply

231 Views
Miguel04
NXP TechSupport
NXP TechSupport

Hi @An95 

When you press the reset button the code in the memory will start running, so it will enter in deepsleep mode immediately after the reset. Do you have a routine to wake up your board?

Best Regards, Miguel.

0 Kudos