GPIO state when waking up from deep sleep

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

GPIO state when waking up from deep sleep

1,061 Views
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?

Labels (1)
Tags (1)
3 Replies

875 Views
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

875 Views
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 Kudos

875 Views
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