Hi,
With our own design based on MIMXRT1061 I've been trying to wakeup from SUSPEND mode using GPIO6 pin 28.
The power handling code is copied and modified from SDK example evkbmimxrt1060_power_mode_switch_bm.
The wakeup is working fine with GPIO2 pins 25 and 27, polarity is same with all these pins.
The interrupt on GPIO6:28 pin is separately tested and working.
Debugging the code I can see that GPC_EnableIRQ(GPC, 157) indeed clears the bit #29 in GPS->IMR5 register.
However the change in pin status doesn't wake up the device from the WFI call, as does two GPIO2 pins.
I've been wondering if there's something special with GPIO6 handling, since it has common IRQ with GPIO ports 7,8 and 9?
Or does it have something to do with IOMUXC_GPR stop mode settings?
I haven't found the separate clock for GPIO6, does it have a common clock with other ports?
Any help appreciated,
BR Jukka
已解决! 转到解答。
Hi,
I supposed you are using the suspend mode with GPIO6 right?
The GPIO6 is a fast GPIO, it is powered by CPU platform and use the AHB clock root as the clock source. But under Suspend mode, the powre and the clock will be gated. So it cannot be a wake up source.
Hi,
I supposed you are using the suspend mode with GPIO6 right?
The GPIO6 is a fast GPIO, it is powered by CPU platform and use the AHB clock root as the clock source. But under Suspend mode, the powre and the clock will be gated. So it cannot be a wake up source.