Can't wake up MKL26Z256VLH4 through reset

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Can't wake up MKL26Z256VLH4 through reset

249 次查看
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 项奖励
1 回复

238 次查看
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 项奖励