GPIO state when waking up from deep sleep

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

GPIO state when waking up from deep sleep

1,955 次查看
roman_gorbenkov
Contributor I

Dear all,

I failed to find in documentation any explicit information on what happens to i.mx6 GPIOs when it is suspended to RAM (DORMANT mode)? Do GPIOs retain their values or are they reset to default? And what is the GPIO behaviour on wakeup?

标签 (1)
标记 (1)
3 回复数

1,769 次查看
karangajjar
Senior Contributor II

Hi Roman Gorbenkov,

Can you please refer below thread and let us know if that answers your query:

can the gpio pull up state keep in mem sleep mode ? 

Regards,

Karan Gajjar

1,769 次查看
roman_gorbenkov
Contributor I

Hello karan.gajjar@volansystech.com,

It does answer the first part of my question, thanks for heads up. However, I'm still not sure what happens on wakeup - is GPIO configuration restored to whatever it was before sleep? Or does it stay default, requiring reconfiguration?

Thank you for your time,
Roman

0 项奖励
回复

1,769 次查看
karangajjar
Senior Contributor II

Hi Roman Gorbenkov,

Sorry for late response. 

Yes, GPIO will keep the previous state on suspend/resume. You can use following example to export the GPIO and to suspend/resume the evk.

Freescale i.MX 6 & linux & gpio led example - Toradex Community 

https://community.nxp.com/thread/308143 

Regards,

Karan Gajjar