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?
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
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
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