完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛|
你好,我的应用程序在一个新的Flash程序之后工作得很好。如果我点击断开连接,然后在集成的编程环境窗口连接,微控制器就会复位,主回路也可以工作。然而,一旦外部中断到达(我确实启用了It0),微停止工作,并且ISR不被执行。看起来,集成的程序员调试器在一个新的闪存编程或简单的重置之后离开不同的状态。怎么可能是错的?谢谢您。
以上来自于百度翻译 以下为原文 Hello My application works fine after a fresh flash programing. If I click Disconnect and then Connect on Integrated Programming Environment window the microcontroller gets reset and then the main loop works fine also. However, once an external interrupt arrives (I do have INT0 enabled) the micro stops working and the ISR is not executed. It looks that the integrated programmer debugger leaves the micro in different states after a fresh flash programming or a simple reset. What could be wrong ? Thank you. |
|
相关推荐
1个回答
|
|
|
找到它了。我的错误是,我错误地注释了一个初始化变量的代码行。正在做一些代码清理和…显然,在闪存编程中,内存位置被初始化(它位于RAM的开始),但显然不是在简单的重置过程中。干杯。
以上来自于百度翻译 以下为原文 Found it. My fault, I commented out by mistake a line of code that initializes a variable. Was doing some code cleanup and ... Apparently during flash memory programming that memory location was initialized (it is located at the beginning of RAM), but obviously not during a simple reset. Cheers. |
|
|
|
|
只有小组成员才能发言,加入小组>>
MPLAB X IDE V6.25版本怎么对bootloader和应用程序进行烧录
473 浏览 0 评论
5793 浏览 9 评论
2334 浏览 8 评论
2224 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3530 浏览 3 评论
1124浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
1098浏览 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 10:18 , Processed in 0.722379 second(s), Total 72, Slave 55 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
1251