Hi @dashdwan ,
Thanks for your information.
Your used referece code checking, you are using the RT1060 SDK code:
SDK_2_10_1_EVK-MIMXRT1060\boards\evkmimxrt1060\demo_apps\power_mode_switch\rtos
Right?
Please confirm it!
if you are not use the above code, you need to make sure the wakeup pin configuration in the pin_mux.c
/* GPIO configuration of SD_PWREN on WAKEUP (pin L6) */
gpio_pin_config_t SD_PWREN_config = {
.direction = kGPIO_DigitalInput,
.outputLogic = 0U,
.interruptMode = kGPIO_IntRisingEdge
};
/* Initialize GPIO functionality on WAKEUP (pin L6) */
GPIO_PinInit(GPIO5, 0U, &SD_PWREN_config);
/* Enable GPIO pin interrupt on WAKEUP (pin L6) */
GPIO_PortEnableInterrupts(GPIO5, 1U << 0U);
IOMUXC_SetPinMux(IOMUXC_SNVS_WAKEUP_GPIO5_IO00, 0U);
void APP_WAKEUP_GPT_IRQn_HANDLER(void)
{
GPT_ClearStatusFlags(APP_WAKEUP_GPT_BASE, kGPT_OutputCompare1Flag);
GPT_StopTimer(APP_WAKEUP_GPT_BASE);
LPM_DisableWakeupSource(APP_WAKEUP_GPT_IRQn);
xSemaphoreGiveFromISR(s_wakeupSig, NULL);
portYIELD_FROM_ISR(pdTRUE);
__DSB();
}
Tomorrow, I will help you to test it on my SLN-LOCAL2-IOT board, then give you feedback.
Best Regards,
kerry