完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我有一个项目的CYBLY-02200 - 00在自定义板。(附)
它有WDT和一个按钮冲突 当低功耗模式被禁用时,两者都工作良好。 当它被启用时(在主C中调用函数EnterLowPowerMode)计数器MaunyLoopLyStCyt和O.ISryCalt永远不会递增。 EntLoopPotoMead函数是从E.Prutt的帖子中复制的,类似的问题,所以我毫不怀疑它的工作原理。 有什么想法吗? 谢谢 安迪 LPM-WDT1.ZIP 850.6 K 以上来自于百度翻译 以下为原文 I have a project for a CYBLE-022001-00 on a custom board.(attached) It has WDT and a button interrrupt Both work fine when low power mode is disabled When it is enabled ( function EnterLowPowerMode is called in main.c) the counters main_loop_count and _isr_count never increment. The EnterLowPowerMode function was copied from e.pratt's post for the similar issue so I have no doubts that it works Any ideas ? Thanks Andy
|
|
相关推荐
21个回答
|
|
1。锁定WDT类似于其他芯片上的锁定闪存;这样,您就不会意外地修改事物,而且当代码更改时,代码会更加慎重(尽管这也不是防火的)。有一点需要注意的是,它看起来也像是锁定了ILO时钟不被修改/改变……这可能是你的WDT无法工作/运行的原因吗? 2。如果你正在运行RTC时钟,也许它正在调用这个函数:CySysFlashClockConfig(Valy),它将改变IMO运行? 否则,我也不知道它会如何运行。我知道,当我第一次弄乱时钟设置时,IMO在尝试运行时禁用了这导致了问题…:3 三。RTC看起来像是要硬地使用WDTS中的一个:你应该阅读RTC时钟的数据表;特别是第4页提到你需要在时钟选择页面下配置时钟设置(在那里你启用/禁用ILO、IMO、WDT等),你可以把RTC设置给我们。是WDT时钟之一。通过阅读,RTC可能会在不处于休眠状态时发生火灾?(基于手动更新复选框,我想) 以上来自于百度翻译 以下为原文 1. Locking the WDT is similar to locking flash on other chips; So that you don't accidently modify things, and the code is more deliberate when it changes it (although this isn't fireproof either). One thing to note, is that it looks like that function also locks the ILO clock from being modified/changed...Perhaps this is the cause of your WDT failing to work/run? 2. If you are running the RTC clock, perhaps it is calling this function: CySysFlashClockConfig(void) which will change the IMO to be running? Otherwise, I don't understand how it would be running either. I know that when I first messed with the clock settings, having IMO disabled when trying to run that caused problems... :3 3. The RTC looks like you can hardwire one of the WDTs to be used: You should read the datasheet for the RTC clock; Specifically page 4 mentions that you need to configure the clock setting under the clock selection page (where you enable/disable the ILO,IMO,WDT, etc.) There, you can set the RTC to use one of the WDT clocks. Reading through this, the RTC might actually fire when not in sleep mode? (Based on the update manually checkbox I think) |
|
|
|
我简化了我的代码,摆脱了RTC时钟。相反,我设置WDT每100毫秒开火,并增加一个滴答计数器。这就涵盖了我目前的时钟需求,而且似乎运转良好。 我想不出任何其他可能使IMO得以实现的原因,所以为什么这个序列不崩溃仍然是个谜。 CysScLyCuffelfCKDead(CythySyl CKYH-FFLKKY-ECO); CysSycLimoCo(); CysSpMySeLeP(); CysSLCKIMOSTART(); CysScLyCuffelfCKDead(CythySyl CkkHfCKKYMIO); 哦,好吧。稍后将重访。继续前进… 非常感谢你的帮助。 更多问题要跟进 以上来自于百度翻译 以下为原文 I simplified my code and got rid of the RTC clock. Instead I set the WDT to fire every 100 ms and increment a tick counter . That covers my needs in terms of the clock for now and seems to be working well. I can't think of anything else that may be enabling the IMO. so it still remains a mystery why this sequence does NOT crash CySysClkWriteHfclkDirect(CY_SYS_CLK_HFCLK_ECO); CySysClkImoStop(); CySysPmSleep(); CySysClkImoStart(); CySysClkWriteHfclkDirect(CY_SYS_CLK_HFCLK_IMO); Oh well. will revisit later. moving on .. Thank you so much for all your help More questions to follow |
|
|
|
只有小组成员才能发言,加入小组>>
752个成员聚集在这个小组
加入小组2075 浏览 1 评论
1829 浏览 1 评论
3645 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
1766 浏览 6 评论
1517 浏览 1 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
516浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
370浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
413浏览 2评论
360浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
868浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-29 13:22 , Processed in 0.802547 second(s), Total 47, Slave 41 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号