完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛|
嗨,我正在使用,OpenPICUS,一个基于PIC24FJ256GA106的SOM,我面临着不可预测的和频繁的板复位,我正在探索几个解决方案来调试根本原因;微控制器附带一个预安装的串行引导加载程序和一个基于FiReTOS的示例固件,其中包括一个HTTP服务器。我用这个例子作为一个框架来实现我的固件和MPLAB C30来构建它(我保留了OpenPICUS开发人员所做的相同的编译器选择)。除此之外,我试着做的是保存并重置RCON寄存器,然后在每个板重置之后通过HTTP请求读取它。虽然我能正确地读取这些情况下的RCON值:PUPUP RESET COSTESSAVE=3(BOR + Por位[位0和1 ])MCLR复位-RESET DeaseSave= 128(MCLR位[位7 ])复位指令REST DeaseSave= 64(SWR比特[BI)]T 6))但是当我意想不到的重置时,我所拥有的是ReesteTeaSea= 0,这意味着RCON位都是零。我缺少什么?有没有更好的方法来调试这个问题?
以上来自于百度翻译 以下为原文 Hi, i'm using, OpenPicus, a PIC24FJ256GA106 based SOM and I'm facing unpredictable and frequent board resets and I'm exploring several solutions to debug what is the root cause; the Microcontroller comes with a serial bootloader pre-installed and a FreeRTOS based example firmware, that includes an HTTP Server. I used this example as a skeleton to implement my firmware and MPLAB C30 to build it (I kept the same compiler choice done by the developers of OpenPICUS). Besides those premises what i've tried to do is to save and then reset RCON register and then read it via an HTTP request after each board reset: resetCauseSave = (unsigned int) RCON; RCONbits.POR = 0; RCONbits.BOR = 0; while i can read correctly RCON values in those situations:
What Am I missing? Is there a better way to debug this problem? |
|
相关推荐
|
|
只有小组成员才能发言,加入小组>>
MPLAB X IDE V6.25版本怎么对bootloader和应用程序进行烧录
473 浏览 0 评论
5793 浏览 9 评论
2334 浏览 8 评论
2224 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3530 浏览 3 评论
1124浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
1095浏览 1评论
我是Microchip 的代理商,有PIC16F1829T-I/SS 技术问题可以咨询我,微信:A-chip-Ti
873浏览 1评论
MPLAB X IDE V6.25版本怎么对bootloader和应用程序进行烧录
475浏览 0评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-2 02:34 , Processed in 0.629314 second(s), Total 70, Slave 53 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
1994