完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
您好,PIC32 MZ2048 EFM144和声1.09xC32 1.42MPLABX 3.45我的主要项目正在工作,SD引导加载程序正在工作。在和谐中,我配置了Bootloader和Project,带有大约4秒的看门狗超时,但是看门狗禁用(FWDTEN= OFF)。(默认的超时协调是1048秒)监视器然后在软件中使用SysSyWdtSUnabl(FALSE)在主项目中启用。这给了我一个问题——引导加载程序在闪亮主应用程序完成之前重新启动。是否有任何有引导程序的WDT启用?快乐的人
以上来自于百度翻译 以下为原文 Hi, pic32mz2048EFM144 hARMony 1.09 xc32 1.42 MPLabx 3.45 My main project is working, sd bootloader is working. In Harmony I configured the bootloader and project with a watchdog timeout of around 4 seconds, but watchdog disabled (FWDTEN = OFF). (The default timeout in Harmony is 1048 seconds) The watchdog was then enabled in the main project in software using SYS_WDT_Enable(false). This gave me a problem - bootloader rebooted before flashing the main app was complete. Does anyone have a bootloaded project working with WDT enabled? Cheers Martin |
|
相关推荐
16个回答
|
|
当然,但这是从一个电源上。我还试着在主引导程序的SATRT中添加SysWdtTyabable()。我需要做更多的实验。
以上来自于百度翻译 以下为原文 sure, but this was from a power up. I also tried adding SYS_WDT_Enable() right at the satrt of main in the boot loader. I need to do some more experiments. |
|
|
|
应用程序在没有引导程序的情况下工作吗?如果是这样,则指向WDT正在运行(但不是触发),而它是“关闭”的。建议在开机前后立即清除WDT。
以上来自于百度翻译 以下为原文 Does the app work without the bootloader? If it does, that points to the WDT running (but not triggering) while it is "turned off". Definitely clearing the WDT immediately before and after turning it on would be advised. |
|
|
|
也请阅读PIC的数据表。(前后)HTTP//WW1.MICCHIP.CON/DEVILDS/En/DeVICECD/OC0111114G.PDFWDWT开始从开机上计算全部缺省值。(在某些PIC中,SW的设置允许清除计数,在数据表中没有指示)因此,如果您不确定在TimeOut.WdttEnabl之下,那么在之前。e)(即)用于WDT的软件使能(也为PLBIW-WDTTUN(WDTTIDID0);PLBIW-WDTTI TimeReCurt(WDTTIDID0);//重置WDT。需要定期调用(或SysSLIB等效)来阻止WDT超时和重置HTIC PIC。
以上来自于百度翻译 以下为原文 Reading the Data sheet for the PIC would also be advised. (Before and After?) http://ww1.microchip.com/downloads/en/DeviceDoc/60001114G.pdf The WDT starts counting the full default value from Power on. (In some PIC the setting of the SW enable clears the count, there is no indication of the in the Data sheet) So before if you are not sure you are under the timeout. SYS_WDT_Enable() that is the software enable for the WDT (also PLIB_WDT_Enable(WDT_ID_0);) PLIB_WDT_TimerClear(WDT_ID_0); // reset the WDT. That needs to be called periodically (or the SYS_LIB equivalent) to stop the WDT from timing out and reseting hte PIC. |
|
|
|
是的,应用程序在没有Bootloader的情况下工作(当使用默认链接器脚本构建)时,它也与引导加载程序一起工作,当使用正确的链接器脚本建立时,是的,看起来WDT运行打开或关闭。我已经测试了我的应用程序独立(即没有引导程序),使监视器启动和运行,一切都很好。我确认了看门狗的超时值。我假设FFDTEN保险丝设置为OFF,我不需要在Bootloader中做任何事情。我会尝试在BootLoad中设置一个看门狗。R主回路
以上来自于百度翻译 以下为原文 yes, the app works without bootloader (when built with default linker script) it also works with the boot loader when built with the correct linker script. yes, it seems the WDT runs whether turned on or off! I've tested my app stand alone (ie no bootloader) with the watchdog enabled and running, and all is well - I confirmed the timeout value of the watchdog. I assumed that with the FWDTEN fuse set to off I wouldn't need to do anything in the bootloader. I'll try putting a watchdog clear in the bootloader main loop |
|
|
|
OOPS -我上面的帖子应该已经读过:“我还试着在启动加载程序中在主开始时添加SysxWdtSabable()。”我理解看门狗是如何工作的,我可能没有很好地解释我的问题。我相信FFDTEN保险丝设置为OFF,我不需要在TT中清除看门狗。我的计划是在我的主应用程序启动时使用SysSydttNeBable()启用看门狗,当然在主前台循环中调用看门狗清除(实际上也与我的定时器中断任务的联锁),即使监视器在“FWDTEN=OFF”和谐中运行。还没有检查这个和声设置是否产生正确的定义,我现在就用调试器来检查保险丝的值。
以上来自于百度翻译 以下为原文 oops - my post above should have read: "I also tried adding SYS_WDT_Disable() right at the start of main in the boot loader." I understand how the watchdog works, I probably didn't explain my issue very well - I believe that with the FWDTEN fuse set to off I should not need to clear the watchdog in the boot loader. My plan was to enable the watchdog using SYS_WDT_Enable() at the start of my main app, then of course call watchdog clear in the main foreground loop (actually also with an interlock to my timer interrupt task) It would seem that the watchdog runs even when "FWDTEN = off" in Harmony. I haven't checked if that Harmony setting produces the correct #define, I'll do that now and double check the fuse value using the debugger. |
|
|
|
在调用SysWdtTnEnable()之前,是否尝试清除看门狗?
以上来自于百度翻译 以下为原文 Have you tried clearing the watchdog just BEFORE you call SYS_WDT_Enable() ? |
|
|
|
在调用SysWdtTnEnable()之前,是否尝试清除看门狗?不,我可以试试别的。
以上来自于百度翻译 以下为原文 Have you tried clearing the watchdog just BEFORE you call SYS_WDT_Enable() ? no, something else I can try. |
|
|
|
这就是NKurzman所暗示的,你需要在第7后。
以上来自于百度翻译 以下为原文 That is what NKurzman was implying you need to do in post#7. |
|
|
|
|
|
|
|
如果WDT打开,您可以尝试向引导加载程序添加WDT,并查看它是否持续更长时间。你确定它是WDT超时吗?不是DMT超时。还是一个例外?
以上来自于百度翻译 以下为原文 If the WDT is on you can try adding clear the WDT to the bootloader and see if it lasts longer. Are you sure it is a WDT timeout? Not a DMT timeout. Or an exception? |
|
|
|
如果我把看门狗超时设置为最大值,引导加载程序就完成了Flash进程,当然可以!
以上来自于百度翻译 以下为原文 DMT is disabled. If I set the watchdog timeout back to max value the bootloader completes the flash process ok, so yes as sure as i can be! |
|
|
|
检查项目中的禁用功能。你说你可以挤出时间。禁用它,看看它是否没有。
以上来自于百度翻译 以下为原文 Check the disable function in your project. You said you can force a time out. Disable it and see if it doesn't. |
|
|
|
|
|
|
|
哈哈!也有同样的问题。直到我清楚地阅读了和声文档。关掉MHC的WDT,并在主应用程序中调用WDTTALE。阅读MHC.pdf,当前版本,第6334页,特别是代码示例中的注释。不要问我是怎么知道的。Nick。
以上来自于百度翻译 以下为原文 Haha! Had the same problem. Until I read the Harmony documentation clearly. Switch off the WDT in MHC and call WDT_Enable in your main app. Read MHC.pdf, current version, page 6334 and especially the comment in the code example. Don't ask how I know. Nick |
|
|
|
当前修订版V1.10?或当前版本2.02b?
以上来自于百度翻译 以下为原文 Current revision v1.10? Or current Revision 2.02b? |
|
|
|
我在1.09岁,和我提到的文档一样。Nick
以上来自于百度翻译 以下为原文 I'm on 1.09, same for the documentation I referenced to. Nick |
|
|
|
只有小组成员才能发言,加入小组>>
5178 浏览 9 评论
2003 浏览 8 评论
1931 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3177 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2228 浏览 5 评论
737浏览 1评论
622浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
509浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
636浏览 0评论
533浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-26 19:01 , Processed in 1.934063 second(s), Total 76, Slave 70 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号