How to change wakeup pin to other GPIO in the power_mode_switch example on RT106x

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

How to change wakeup pin to other GPIO in the power_mode_switch example on RT106x

636 Views
JarvisC
Contributor II

Hi all,

According to the spec, it should work on GPIO to wake the unit from Low Power Idle & Suspend mode.

I had modified the wakeup pin to GPIO_B0_00 (GPIO2, 00) in the board.h , but when I executed the example to wake the unit from Suspen mode, it will stop at the below code.

Is there any source code / information that could share to me to use other GPIO to wake the unit?

 

=====================================================

static void APP_SetWakeupConfig(lpm_power_mode_t targetMode)
{

 ....

GPIO_ClearPinsInterruptFlags(APP_WAKEUP_BUTTON_GPIO, 1U << APP_WAKEUP_BUTTON_GPIO_PIN);

....

}

Thanks.

 

0 Kudos
Reply
1 Reply

623 Views
Pavel_Hernandez
NXP TechSupport
NXP TechSupport

Hello, my name is Pavel, and I will be supporting your case, I review your information but tell me if you initialize the port clock and the pin.

Best regards,
Pavel

0 Kudos
Reply