Microchip
直播中

王涛

8年用户 1296经验值
私信 关注
[问答]

使用PIC18F46K40进行调试时出现问题

我有一个自定义板与APIC18F46K40。我使用一个PICtiT3和MPLABX V3.4.5编程/调试。我有一个Time0生成低优先级的热中断。我不能通过代码,因为任何步骤动作都会跳到Time0 ISR。走出ISR跳转回到ISR。(是的,我清除了IF位)如果我禁用Time0中断,那么我可以正常运行。这个问题只发生在18F46K40上。我可以把相同的代码放在PIC18LF46K22上,一切正常工作。PIC18F46K40硅存在问题,还是在MPLABX中还没有完全支持?

以上来自于百度翻译


      以下为原文

    I have a custom board with a PIC18F46K40. I am programming/debugging using a pickit3 and mplabx v3.4.5.
I have timer0 generating a low priority heatbeat interrupt. I can't step through the code because any step action immediately jumps to the timer0 ISR. Stepping out of the ISR jumps right back into the ISR. (Yes, I cleared the IF bit) If I disable the timer0 interrupt I can then step normally.  This problem only occurs on PIC18F46K40. I can put the same code on a PIC18LF46K22 and everything works normally. Is there a problem with the PIC18F46K40 silicon or is this part not yet fully supported in mplabx?

回帖(5)

李天竹

2019-5-24 14:30:58
必须有一个调试器的设置,指示芯片暂停外围设备时停止。

以上来自于百度翻译


      以下为原文

    There must be a debugger setting which instructs the chip to freeze peripherals when halted.
举报

王涛

2019-5-24 14:47:08
是的,我想到了。我有冻结外围设备开关设置。我想知道这个开关是否被正确地解释为PIC18F46K40。我想知道是否有人使用这个控制器并有同样的问题。

以上来自于百度翻译


      以下为原文

    Yea, I thought of that. I have the freeze peripherals switch set. I am wondering if this switch is not being interpreted correctly for the PIC18F46K40. I want to know if anybody else is using this controller and having the same issue.
举报

李桂芝

2019-5-24 15:04:49
使用Time0和Time1中断的PIC18F24K40同样的问题

以上来自于百度翻译


      以下为原文

    Same problem with pic18f24k40 using timer0 and timer1 interrupts
举报

杨晓静

2019-5-24 15:10:02
请看这里/http://www..hip.com/for./m976198.aspx你能试一下代码并告诉我你是否有同样的问题。

以上来自于百度翻译


      以下为原文

    May you take a look here/ http://www.microchip.com/forums/m976198.aspx
Can you try the code and tell me if you have the same problem.
Thanks
举报

更多回帖

发帖
×
20
完善资料,
赚取积分