完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我试图得到的样本代码为RTC工作在我的PSoC5套件与ES1硅酮和IMAI运行到一个已知的问题。
如果我编程并运行代码,它会写入LCDON,然后挂起。 如果我调试并在主循环中设置一个断点,并在等待一秒钟之后从该断点“播放”,它将每次更新LCD并回到断点。如果我从断点中“播放”少于一秒的延迟,它就永远不会返回断点,而且永远不会更新LCD。 在第7页的文件中,第21项: HTTP://www. CyPress?COM/?DOCID=22245 它声明它不会从睡眠中清醒过来,并建议在编译器下的Projject Budio属性中定义CyLiByPoBOX管理的编译器宏。作为一个NoOB,我似乎不知道这意味着什么,我也不能找出正确的关键字找到任何有用的信息创建编译器宏来找出它。非常感谢您的帮助。我已经算出了同一个项目中提到的时钟设置(我想……) 如果制定了睡眠程序并防止这种情况发生,RTC就活得很好,并且没有问题地更新LCD。附件是我的项目。(睡眠程序在主循环中被注释) 以上来自于百度翻译 以下为原文 I was trying to get sample code for the RTC working on my PSOC5 kit with ES1 silicone and I may be running into one of the known issues.. If I program and run the code, it writes to the LCD once then seems to hang. If I debug and put a breakpoint in the main loop, and "play" from that breakpoint after waiting a second, it will update the LCD each time and come back to the breakpoint. If I "Play" from the breakpoint wiht less than a second delay, it never returns to the breakpoint and never updates the LCD any more. In this document on page 7, item #21: http://www.cypress.com/?docID=22245 It states that it won't wake from sleep cleanly, and recommends defining a compiler macro for CYLIB_POWER_MANAGEMENT in the project build properties under compiler. Being a noob, I can't seem to figure out what this means, nor can I figure out the right keywords to find any useful information on creating compiler macros to figure it out.. A little help would be greatly appreciated. I already figured out the clock setup mentioned in the same item (I think..) If I comment out the sleep routines and prevent that from happening, the RTC is alive and well and updates the LCD with no problem. Attached is my project. (with the sleep routines commented out in the main loop |
|
相关推荐
1个回答
|
|
您好,
你能附上你观察这个问题的RTC样本代码吗? 当做 以上来自于百度翻译 以下为原文 Hi dnear1, Can you please attach the RTC sample code in which you were observing this issue? Regards |
|
|
|
只有小组成员才能发言,加入小组>>
754个成员聚集在这个小组
加入小组2100 浏览 1 评论
1846 浏览 1 评论
3665 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
1782 浏览 6 评论
1532 浏览 1 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
561浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
413浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
433浏览 2评论
380浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
907浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-20 12:44 , Processed in 0.806038 second(s), Total 76, Slave 60 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号