1
\$\begingroup\$

Below you can see the output of PICKit2V2 after clicking the Erase button:

enter image description here

As you can see above, all the memory addresses (I scrolled also) are equal to 3FFF.

Now when I click on the Read button, this is the output:

enter image description here

Scrolling:

enter image description here

As you can see above, the erasing didn't work fine. Does this mean my PIC is dead or something?

\$\endgroup\$
  • \$\begingroup\$ Does Blank Check claim it's blank? \$\endgroup\$ – Majenko Jan 2 '15 at 15:36
  • \$\begingroup\$ @Majenko Nope, It say that : Program Memory is not blank starting at address 0x000000 \$\endgroup\$ – Abraham Jan 2 '15 at 15:45
  • \$\begingroup\$ What voltage are you powering the chip with? \$\endgroup\$ – Majenko Jan 2 '15 at 15:47
  • \$\begingroup\$ @Majenko I don't powered the chip. My programmer use USB port as its power supply. So I can say 5v!? \$\endgroup\$ – Abraham Jan 2 '15 at 15:48
  • \$\begingroup\$ Try running the program As Adminsitrator. If that does not work, it is either your PIC or Programmer faulty/dead... \$\endgroup\$ – Triak Jan 2 '15 at 15:56
1
\$\begingroup\$

A bulk erase is sensitive to the chip power supply voltage. According to the datasheet:

When using ICSP, the part must be supplied at 4.5V to 5.5V if a bulk erase will be executed.

It could be that your USB supply, once fed through the programmer, is dropping below 4.5V. While it's enough to program the chip, it's not enough to erase it.

You can try powering the chip separately from an external 5V power supply to see if that then allows you to erase the chip.

\$\endgroup\$
  • \$\begingroup\$ using a 6 volt power supply can make any problem? I have a power supply that its output is 5.85 v. \$\endgroup\$ – Abraham Jan 2 '15 at 15:59
  • 1
    \$\begingroup\$ 6V is good. According to the datasheet (you should read it some time), Vdd can be anywhere between -0.3 to +7.5V. +5.5V is the recommended maximum but it can cope with (at least for short periods) with up to 7.5V. \$\endgroup\$ – Majenko Jan 2 '15 at 16:02
  • \$\begingroup\$ I know that this voltage is good for MCU. I was meant 6v couldn't make any problem with my USB port? Using another auxiliary power supply on MCU-pins is equal to Parallel 6v with USB port, is not it? \$\endgroup\$ – Abraham Jan 2 '15 at 16:07
  • 1
    \$\begingroup\$ There will be a diode (or similar device) in the programmer's USB connection to stop back-powering. \$\endgroup\$ – Majenko Jan 2 '15 at 16:10
  • \$\begingroup\$ There is a green LED on the programmer's board that when I connect the power supply to PIC pins, It turns off!Any comment? \$\endgroup\$ – Abraham Jan 2 '15 at 16:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.