完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
大家好,我正面临一个奇怪的问题:我的PIC32 MX370F512L在从睡眠中醒来后随机重置。我做了几次测试,简单地改变和跟踪哔哔声。最后,我发现下面的代码部分,我确信重置正在发生。另一方面,RCON响应也是奇怪的,我得到0x000 000 000 e重置后。这意味着空闲,睡眠和BOR同时设置。两周以来,我一直在这个论坛上搜索几个案例,发现一些人面对这个RCON结果,但是没有人知道为什么闲置和睡眠比特被设置在同一时间-在这些意外的重置之后。只有这个随机重置才会导致这个0E RCON结果。所有其他手动重置都提供预期的结果(仅BOR或POR或两者都被设置)..这里有几个设备,这种情况很少发生(而且非常有趣;如果设备休眠超过30分钟,通常会发生这种情况),因此I2C/OLED显示接口似乎有问题。G或睡眠或IDLE的一些问题。您的帮助是非常赞赏,因为我们疯狂两个星期以来,设备在现场,等待更新:
以上来自于百度翻译 以下为原文 Hi All, I am facing an odd issue: My PIC32MX370F512L resets randomly after it wakes up from sleep. I made several tests by simply changing & following beeps. Finally I found below code part where I am sure Reset is happening. On the other hand RCON response is also strange, I get 0x0000000E after reset. That means IDLE, SLEEP and BOR is set at the same time. I have been searching several cases in this forum since two weeks, found some people faced this RCON result but no one has an idea why IDLE & SLEEP bits are set at the same time - after these unexpected resets. Only this random reset causes this 0E RCON result. All other manual resets provide expected results (just BOR or POR or both are set).. I have several devices here, this case happen very rarely (and very interesting; it is usually happening if device sleeps more than 30 min..) As a result it seems like there is an issue on I2C/OLED display interfacing or some problem with SLEEP/IDLE. Your help is much appreciated as we got crazy since two weeks and devices are on site, waiting for update :S long_beep(); // I always hear this beep DRV_I2C1_Initialize(); delay_ms(50); if(config.lcd_enable) { LATAbits.LATA4 = 0; //Power up display (p-ch mosfet) delay_ms(50); Oled_Init(); Oled_FillScreen(0x00); } short_beep(); //reset is happening before here |
|
相关推荐
1个回答
|
|
|
|
|
|
只有小组成员才能发言,加入小组>>
5212 浏览 9 评论
2019 浏览 8 评论
1944 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3192 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2246 浏览 5 评论
760浏览 1评论
647浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
567浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
659浏览 0评论
557浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-12 10:33 , Processed in 1.318477 second(s), Total 76, Slave 62 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号