Program Memory Errors

406 views
Skip to first unread message

august

unread,
Sep 30, 2008, 2:31:21 PM9/30/08
to pickit-devel
Hi there,

when I try to do : pk2cmd -PPIC18f4550 -M -F test.hex

I get:

PICkit 2 Program Report
30-9-2008, 11:27:46
Device Type: PIC18F4550

Program Memory Errors

Address Good Bad
000002 00F000 000000


I can identify the device with:
pk2cmd -PPIC18f4550 -I
Device ID = 1202

Does this mean my board is fried? I am successful with other boards.

thanks -august.

Xiaofan Chen

unread,
Sep 30, 2008, 7:37:09 PM9/30/08
to pickit...@googlegroups.com
On Wed, Oct 1, 2008 at 2:31 AM, august <augus...@gmail.com> wrote:

> when I try to do : pk2cmd -PPIC18f4550 -M -F test.hex

> Program Memory Errors
>
> Address Good Bad
> 000002 00F000 000000
>

> Does this mean my board is fried? I am successful with other boards.
>

Quite possible assuming all the boards are the same.

If the boards are not the same, check the connections, try to add a cap
(0.1uF) between Vdd and Vss and see if that helps.
Increase the cap up to 1uF and try again.


Regards,
Xiaofan

walter....@microchip.com

unread,
Oct 2, 2008, 3:04:02 PM10/2/08
to pickit-devel
Try increasing the PIC18F4550 VDD bypass capacitance up to 10uF. Some
PIC18 devices have a problem erasing without sufficient capacitance.

You can try "-e" to erase the part and "-c" to see if the erase was
successful.

On 30 Sep, 18:37, "Xiaofan Chen" <xiaof...@gmail.com> wrote:

tex...@gmail.com

unread,
Nov 24, 2008, 3:01:30 PM11/24/08
to pickit-devel
I had the same problem, and the same solution works fine for
me (ie. erasing the pic memory, no more memory error).
Could someone explain what causes this behaviour, my background
in electronics is very poor and I am very interested in learning those
stuffs...

Thanks for helping,

On Oct 2, 1:04 pm, "walter.kicin...@microchip.com"

walter....@microchip.com

unread,
Dec 2, 2008, 1:51:57 PM12/2/08
to pickit-devel
The real issue here is enough VDD bypass capacitance, not the erase
prior. This is needed on some devices to supply extra current at the
PIC VDD pin(s) during a bulk erase, to prevent local VDD voltage
droops which may cause the bulk erase to fail.

Note that per the documentation, "-M" will erase and program the
entire device.

"-MP" or "-ME" etc (-M with an arg) will *only* program the specified
area(s). No erase is done. So if you use -M with an argument, you'll
need to explicity erase it first using "-E".
> > > Xiaofan- Hide quoted text -
>
> - Show quoted text -
Reply all
Reply to author
Forward
0 new messages