Microchip
直播中

刘晓燕

7年用户 197经验值
私信 关注
[问答]

在调试ICD3模式下可以将PIC18LF26K80置于休眠状态吗?

嗨,我已经尽我所能把PIC18LF26K80放在睡觉的同时使用ICD3作为调试器,但没有成功。程序计数器在SPLEEP命令和设备无法入睡后不会停止。另一方面,当使用模拟器作为调试器时,实际上可以看到程序计数器冻结,设备进入休眠状态。因此,在使用ICD3调试器的情况下,是否可以使设备休眠?

以上来自于百度翻译


      以下为原文

    HI.
I have tried all the things I could to put a PIC18LF26K80 to SLEEP while using the ICD3 as a debugger
but no success. The program counter doesn't stop after the SPLEEP command and the device doesn't go to sleep.
On the other hand when using the simulator as a debugger I can actually see that program counter freeze up and
the device goes to sleep.
So is it possible to put the device to sleep while using  ICD3 debugger?

回帖(3)

王璨

2019-5-7 12:28:46
嗨,有些东西是你不能调试的。如果C睡眠,ICD将不再运行。没有潜水太深,我不希望当C连接到ICD(由于反复被调试器接口唤醒)时,C会睡觉。-请不要将模拟器称为调试器。它对很多事情都是有益的,但它只是对现实的模拟,有很多限制。

以上来自于百度翻译


      以下为原文

    Hi,
there are thing's you cannot debug. If the µC slept, the ICD would be no longer operational. Without diving too deep, I would not expect the µC to sleep while connected to the ICD (due to repeatedly being woken by the debugger interface).
And - please - don't call a simulator a debugger. It is good for a number of things, but it is a mere simulation of the reality with a lot of constraints.
 
Regards
举报

张雯雯

2019-5-7 12:44:08
感谢DU000 000 01

以上来自于百度翻译


      以下为原文

    thanks du00000001
 
举报

杨玲

2019-5-7 12:59:47
你可以用ICD3调试睡眠。照片会像平常一样睡觉和醒来。唯一的“特殊”是,如果在PIC正在睡觉时停止调试器,它将从睡眠中唤醒PIC,并且一旦再次运行调试器,执行将恢复。

以上来自于百度翻译


      以下为原文

   
 
You can debug sleep just fine with the ICD3.  The PIC will sleep and wake as usual.  The only thing "special" about it is if you stop the debugger while the PIC is sleeping, it will wake the PIC from sleep, and execution will resume once you run the debugger again.
举报

更多回帖

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