嗨,我在XC8上在PIC18F26K22上调试这个ISR,代码执行使这个奇怪的跳跃。整个周末我都在看这个奇怪的行为,我仍然死死地坚持。尝试我能想到的一切。当我调试附加的代码(REF.PNG文件)时,完全执行。奇怪的跳跃。在示例PNG文件中,代码执行从第172行跳到第203行,这完全没有意义。当我重新调整ISR并改变中断处理程序的顺序时,它仍然在不同的位置进行滑稽跳转。我使用以下设置:-PIC18F26K22-MPLAPX3.60(最新)-XC8 1.42(最新)-PIC
tiT3i多次编译该项目,多次改写ISR,但没有成功。所以这不是问题。然后我创建了一个新的清洁项目,并把代码复制到那个新项目中,没有成功。重新启动了很多次,升级到最新版本,把PICTIT3换成了另一个。现在我陷入了困境。发生了什么事?我想在周末之前完成这个更新,我一直在努力的是这个垃圾。有人吗?
以上来自于百度翻译
以下为原文
Hi,
I am debugging this ISR in XC8 on a PIC18F26k22 and the code execution makes this really weird jump.
All weekend I am looking at this strange behavior and I am still dead stuck.
Tried everything that I could think of.
When I am debugging the attached code (ref .PNG file) execution makes completely weird jumps.
In the example PNG file the code execution jumps from line 172 to line 203 and that makes no sense at all.
When I reshuffle the ISR and change the order of the interrupt handlers then it still makes funny jumps at different locations.
I am using the following setup:
- PIC 18F26k22
- MPLAPX 3.60 (latest)
- XC8 1.42 (latest)
- PICKit3
I have recompiled the project many times and reshuffled the ISR many times without success.
The code only gives 3 warnings about functions that are never called. So that can not be the issue.
Then I created a new clean project and copied the code to that new project, without success.
Rebooted many times, Upgraded to latest versions, Swapped the PICKit3 for another one.
And now I am stuck... What is going on?
I wanted to have this update done by the end of the weekend and all I have been struggling with is this crap.
Anyone, please?
Attached Image(s)