MIMXRT1061: Problems with wakeup on GPIO6 pin 28

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

MIMXRT1061: Problems with wakeup on GPIO6 pin 28

跳至解决方案
1,166 次查看
JLa63
Contributor I

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

0 项奖励
回复
1 解答
1,148 次查看
lucas_cao
NXP Employee
NXP Employee

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.

在原帖中查看解决方案

0 项奖励
回复
4 回复数
1,149 次查看
lucas_cao
NXP Employee
NXP Employee

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.

0 项奖励
回复
1,145 次查看
JLa63
Contributor I
Hi,
Thanx for the information although it wasn't very pleasant for our HW-division.
Back to the drawing board.
Rgrds, Jukka
0 项奖励
回复
1,141 次查看
lucas_cao
NXP Employee
NXP Employee

Hi 

Maybe your hardware team will not need to design their schemtatic.

Because this GPIO6 and GPIO1 shares the same pins!!!

And GPIO1 is a GPIO which can wakeup the system under Suspend mode!

lucas_cao_0-1683191360931.png

lucas_cao_1-1683191453547.png

 

 

0 项奖励
回复
1,138 次查看
JLa63
Contributor I
Hi,
Great news, just tested it and now it worked!
Excellent support, You just saved our day!

Kind regards, Jukka
0 项奖励
回复