Microchip
直播中

薛槐敏

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

在不同电压下擦除和编程失败

与18LF1320一起工作,用ICD-3编程,我一直在尝试从ICD-3提供的各种VDD电压。我注意到一些偶然的验证失败。我怀疑问题是用VDD=+4.5V编程,然后试图在VDD=+2.875 V下擦除。我在VDD=+4.5V编程,然后在VDD=+2.85 V上进行了明确的闪存擦除,然后读取和查看程序存储器。绝对没有被抹去。每一点都和编程之后一样。然后我将VDD提升到+3.25,并重复擦除。这一次,事实上,一切都被抹去了。看起来,如果每个程序在一个更高的VDD上,你可能无法重新编程它在一个较低的VDD,除非你首先擦除它在同一个更高的VDD。

以上来自于百度翻译


      以下为原文

    Working with a 18LF1320, programming with an ICD-3, I have been trying various Vdd voltages supplied from the ICD-3.  I noticed some occasional verify failures.  I suspected the problem is programming with Vdd=+4.5v and then trying to erase at Vdd=+2.875v.  I verified this is true.  I programmed at Vdd=+4.5v, then did an explicit Flash erase at Vdd=+2.85v, then a Read and View Program Memory.  Absolutely nothing was erased.  Every bit was exactly as it was after the programming.  Then I raised Vdd to +3.25 and repeated the erase.  This time everything was in fact erased.  It looks like if you every program a device at a higher Vdd, you may not be able to re-program it at a lower Vdd unless you first erase it at that same higher Vdd.

回帖(4)

王焕树

2019-2-28 08:58:42
你怎么做擦除?数据表表示,您可以将行擦除降至2V,但批量擦除仅工作到4.5V。

以上来自于百度翻译


      以下为原文

    How are you doing the erase?
The data sheet says you can do row erase down to 2V, but bulk erase only works down to 4.5V.
 
举报

吕声城

2019-2-28 09:14:04
当你点击程序员工具栏上的擦除闪存设备图标时,擦除就是iCD-3。假设在程序设置中选择程序选项之前擦除了所有的编程操作的一部分,这是相同的擦除。但最终我会把蓝牙RN48芯片放在那里,不应该看到超过3.6伏。因此,当我用一个完全填充的板做ICSP时,我将无法使用高于此的电压。如果我们不能重新编程一个小于4.5伏特的芯片,那么应该如何开发固件呢?

以上来自于百度翻译


      以下为原文

   


The erase is whatever the ICD-3 when you click on the Erase Flash Device icon in the Programmer tool bar.  I assume it is the same erase that happens as part of the programming operation when you have the Erase all before program option selected in Programmer settings.
 
Right now I only have the board minimally populated.  But eventually I will put a Bluetooth RN4871 chip on there that is not supposed to see more than 3.6 volts.  So I will be unable to use voltages higher than that when I do ICSP with a fully populated board.  How else is one supposed to be able to develop firmware if we cannot re-program a chip at less than 4.5 volts?
举报

王焕树

2019-2-28 09:30:02
我假设它正在进行大容量擦除。现在,我通常通过肖特基二极管为PIC供电,如果它与其他设备共享电源,那么程序员就可以在没有任何其他电源的情况下为它供电。

以上来自于百度翻译


      以下为原文

    I'd assume it's doing bulk erase.
Nowadays I usually power the PIC via a schottky diode if it's sharing power with other devices, so the programmer can power it without powering anything else.
 
举报

李天竹

2019-2-28 09:40:03
在大多数PIC18S(包括你的PIC18S)上,可以在没有大容量擦除的情况下编程所有的东西,但是速度会慢一些。我不知道ICD3是否能做到这一点。唯一的问题是代码保护。如果你的代码保护该设备,你需要4.5V来提升保护。它可以工作在较低的电压,但这是不规范的。

以上来自于百度翻译


      以下为原文

    On most PIC18s (including yours), it is possible to program everything without bulk erase, but it will be slower. I don't know if ICD3 can do this.
 
The only problem is code protection. If you code-protect the device, you'll need 4.5V to lift the protection. It may work at lower voltages, but this is out of specs.
举报

更多回帖

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