也许它是相关的-我也看到奇怪的行为,在一些目标上-特别是与PIC24FJ256GA704,MPALBX 4.01和ICD3。在点击调试按钮,我的代码编译在第二,然后调试器采取控制,没有发生在输出窗口15秒,然后目标被突然擦除和在两到三秒内编程。我的程序主要功能是空边循环。其他目标没有长期的“死期”。我也尝试过PICTIT3,但它甚至比ICD3还要慢。我尝试过MPLABX 3.65,但它是一样的。我尝试通过IPE编程,但它同样慢。这里是从IPE20170928 19:56:15+15- 0200编程-设备擦除…编程的样本…下面的内存区域将被编程:程序存储器:起始地址=0x0,结束地址=0x3FFP编程/验证完成2017—09 28 19:56:34 + 0200 -编程完成表计数:6IT花费MO编程之间的时间…和设备擦除…线。然后运行相对较快。但无论如何,19秒的程序100B的代码。这种缓慢的动作是可重复的,而不仅仅是单次故障。我可以承受100B代码的三秒编程,但是等待15秒太多了。我知道制作通用和可靠的程序员不是简单的任务,在那里,做了这一点-对于8位PIC,16位的,以及摩托罗拉HC08或现在的Microchip AVRS。我们有神奇的硅产品,这个特殊的PIC可以擦除它的闪光灯在几十毫秒,并通过高速USB端口的ICD3传输100B,加载到目标,并写闪存内容应该发生在其他几十毫秒,最坏的。一切都低于100Ms。
以上来自于百度翻译
以下为原文
Perhaps it's related - I'm seeing weird behavior too, on some targets - particularly with PIC24FJ256GA704, MPALBX 4.01 and ICD3.
After hitting Debug button, my code compiles in a second, then debugger takes control, nothing happens in output window for 15 seconds, then target is suddenly erased and programmed in two or three seconds. My program is main function with empty while loop. Other targets do not have such as long "dead periods". I tried PicKit3 too, but it's even slower than ICD3. I tried MPLABX 3.65, but it does the same.
I tried programming through IPE, but it's equally slow. Here is sample from IPE
2017-09-28 19:56:15 +0200 - Programming...
Device Erased...
Programming...
The following memory area(s) will be programmed:
program memory: start address = 0x0, end address = 0x3ff
Programming/Verify complete
2017-09-28 19:56:34 +0200 - Programming complete
Pass Count: 6
It spends most of the time between
Programming... and
Device Erased... lines. Then it runs relatively fast. But anyway - 19 seconds to program 100B of code. This slow action is repeatable, not just single-time glitch.
I could suffer the three seconds of programming for 100B of code, but waiting another 15 seconds is way too much. I know making universal and reliable programmer isn't simple task; been there, done that - for 8-bit PICs, 16-bit ones, as well as Motorola HC08 or now Microchip AVRs. We have fantastic silicon products, this particular PIC can erase it's FLASH in few dozens of miliseconds and transferring 100B through high-speed USB port of ICD3, loading into target and writing the FLASH content should take place in another few dozens of miliseconds, as worst. Well under 100ms for everything.