2410睡眠后不能唤醒
基于2410的开发板上,剪了pm.c中的电源管理部分代码,可以把系统带入Power_Off模式. (用电流表也可以检测出)
但,为什么唤醒总是失败呢?
利用中断(EINT6)唤醒后, 利用电流表检测到系统的电压已正常,但系统却不从SUSPEND状态时停止的位置开始执行.
是否和VIVI有关呢?
希望哪位大侠能给我解答, 谢谢!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(8)
我的核中加入了电源管理部分.
是不是我可以直接做些什么就可以进入power_off模式啊?
Procedure to Wake-up from Power_OFF mode
1. The internal reset signal will be asserted if one of the wake-up sources is issued. This reset duration is
determined by the internal 16-bit counter logic and the reset assertion time is calculated as tRST = (65535 /
XTAL_frequency).
2. Check GSTATUS2[2] in order to know whether or not the power-up is caused by the wake-up from
Power_OFF mode.
3. Release the SDRAM signal protection by setting MISCCR[19:17]=000b.
4. Configure the SDRAM memory controller.
5. Wait until the SDRAM self-refresh is released. Mostly SDRAM needs the refresh cycle of all SDRAM row.
6. The information in GSTATUS3,4 can be used for user’s own purpose because the value in GSTATUS3,4 has
been preserved during Power_OFF mode.
7. – For EINT[3:0], check the SRCPND register.
– For EINT[15:4], check the EINTPEND instead of SRCPND (SRCPND will not be set although some bits of
EINTPEND are set.).
– For alarm wake-up, check the RTC time because the RTC bit of SRCPND isn’t set at the alarm wake-up.
– If there was the nBATT_FLT assertion during POWER_OFF mode, the corresponding bit of SRCPND has
been set.
2410datasheet的,其实我自己没实践过。- -
谢谢楼上的,这个我读了很多遍了,但具体呢...
在进入power-off模式之前,都要做一些工作。那些工作你应该都在datasheet里看过了吧。
对,工作都做好了.包括数据的保存等.
但还是不可以唤醒,
问下,唤醒后CPU从哪里开始执行?
五一快乐!!
唤醒后应该是从 0 地址开始执行的, 我用的 bootloader 是 vivi, 里面就有相应的PM块.
楼主的问题解决了吗?
可以不可以说下呀