完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
嗨!我有一个由主函数和ISR函数组成的程序。time'的中断每1ms一次。我想问一下,调试会话中有没有THAGTIGHES TMR方法?现在我只能在ISR函数中设置断点。我不能让程序跳到ISR。为什么我要这样做是为了观察整个程序的流程。谢谢!
以上来自于百度翻译 以下为原文 Hi, there! I've got a program that consists of main and ISR function. The timer'sinterrupt does every 1ms. I want to ask that is there any method that triggers TMR in the debugging session? I now only can set breakpoint in the ISR function. I CAN'T make program jumping to ISR. Why I want to do this is that I want to observe the whole flow of the program. Thank you! |
|
相关推荐
4个回答
|
|
如果您已经正确设置计时器来生成中断,那么它将在ISR中的断点处停止。通常在这种情况下,您将遇到相反的问题。调试非中断代码将是困难的,因为它将在中断中的断点处保持停止。
以上来自于百度翻译 以下为原文 If you have set up the timer correctly to generate interrupts, then it WILL stop at a breakpoint in the ISR. Usually in this situation you will have the opposite problem. It will be difficult to debug the non-interrupt code, because it will keep stopping at the breakpoint in the interrupt., |
|
|
|
调试/监控核心进入中断?也许模拟器支持这一点。否则:虽然可以通过设置相应的IF(但是如果你的计时器被重复地增加)来引发中断,但是你不能监视他的执行(如果另一个回合真的很讨厌)。那就是:除非你的PIC支持至少2个断点,而且你有一些年的经验。但你不再对这些事情感兴趣了。
以上来自于百度翻译 以下为原文 Debug/monitor the core entering the interrupt ? Maybe the simulator supports this. Otherwise: while it may be possible to raise an interrupt by setting the corresponding IF (but your timer IF is raised repeatedly), you cannot monitor he execution (really nasty if it were the other way round). That is: unless your PIC supports at least 2 breakpoints and you've got some years of experience. But then you're no longer interested in such things |
|
|
|
QHB:我的程序可以停止在ISR中的断点(这意味着TMR的中断触发器正确)。是的,我不能同时调试非中断代码,所以我想问有没有方法可以做到这一点?主要是“ISR”、“主”、“等”等。DU:我听说只有ICD支持模拟器,PICKIT 3没有。这是真的吗?
以上来自于百度翻译 以下为原文 To qhb: My program could stop at a breakpoint in ISR(which means the TMR's interrupt trigger correctly). Yes, I can't debug the non-interrupt code at the same time, so I want to ask is there any method to do this? main → ISR → main → ISR such like that. To du: I heard of that only ICD supports simulator, pickit 3 doesn't. is that true? |
|
|
|
我的程序可以停止在ISR中的断点(这意味着TMR的中断触发器正确)。是的,我不能同时调试非中断代码,所以我想问有没有方法可以做到这一点?主要是“ISR”、“主”、“ISR”等。不,因为定时器中断发生得如此之快,唯一能看到非中断代码的方法是禁用ISR中的断点。我听说只有ICD支持模拟器,PICKIT 3不。这是真的吗?模拟器是一个只在MPLABX中构建的软件组件,它与ICD3或PK3无关,它本身就是一个独立的选择。
以上来自于百度翻译 以下为原文 My program could stop at a breakpoint in ISR(which means the TMR's interrupt trigger correctly). Yes, I can't debug the non-interrupt code at the same time, so I want to ask is there any method to do this? main → ISR → main → ISR such like that. No, because timer interrupts are occurring so rapidly, the only way to see non-interrupt code is to disable the breakpoint in the ISR. I heard of that only ICD supports simulator, pickit 3 doesn't. is that true? The simulator is a software only component built into MPLABX. It has nothing to do with ICD3 or PK3, it is a separate choice in itself. |
|
|
|
只有小组成员才能发言,加入小组>>
5248 浏览 9 评论
2036 浏览 8 评论
1956 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3217 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2264 浏览 5 评论
786浏览 1评论
677浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
603浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
684浏览 0评论
581浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-27 05:25 , Processed in 1.394968 second(s), Total 83, Slave 67 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号