18F4685 fails to program

Forum for problems or queries regarding the Flowcode application and compiler usage.

Moderators: Benj, Mods

Post Reply
bert
Posts: 23
Joined: Wed Feb 28, 2007 11:58 pm
Location: The Netherlands
Contact:

18F4685 fails to program

Post by bert »

The EB006 / PPP will not program an 18F4685 pic. If I take the HEX file gerenated by Flowcode and use a different programmer (the Wisp648) it programs just fine, so apparently the HEX file and the 18F4685 are fine.

This is a part of the output file from PPP:

C:\Program Files\Matrix Multimedia\Common\PPPv3\PPPv3.exe -cs 2 -nogui "18F4685defaultfuese.hex"
Sending program...
Erasing the PICmicro
......
Writing program memory
Writing configuration memory
Writing id-locations
Reading program memory
Reading configuration memory
Finished reading PICmicro contents
Programming failed:
Program memory check failed
(NOTE: if the PIC is code-protected, this message will be
displayed even if the program has been sent correctly)
That took 5,468 seconds
......
Return code = 0
FINISHED

I use Flowcode 3.4.7.48 and PPP 3.9.12.26 on WinXP SP2. The fuses are set to default (07/1F/1F/82/85/3F/C0/3F/E0/3F/40) so no code protection.

Bert

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: 18F4685 fails to program

Post by Benj »

Hello Bert

Please can you browse to your PPP folder.

Normally: C:\Program Files\Matrix Multimedia\Common\PPPv3\

Then make a copy of the ppp_config_data3.cfg file incase you need to restore it at any point.

Then replace the file with the file in the archive attached to the board. Hopefully this will fix your problem.

Let me know how you get on.
Attachments
ppp_config_data3.zip
(21.49 KiB) Downloaded 505 times

bert
Posts: 23
Joined: Wed Feb 28, 2007 11:58 pm
Location: The Netherlands
Contact:

Re: 18F4685 fails to program

Post by bert »

Hi Ben,

Thanks for your reply. I still get an error message:

Launching the programmer...

C:\Program Files\Matrix Multimedia\Common\PPPv3\PPPv3.exe -cs 2 -nogui "18F4685test.hex"

Sending program...
Erasing the PICmicro
Writing program memory

..

Writing configuration memory
Programming failed: <8><10>
That took 3,047 seconds

.........
Return code = 0

FINISHED


Oddly enough the program is actually transferred into the PIC and runs fine. So it does work, but something still appears to be wrong somehow.

Best regards,
Bert

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: 18F4685 fails to program

Post by Benj »

Hello

I have now tested the 18F4685 device with the updated configuration files and can confirm that the device is working correctly. I have sent several programs now and they are all programming and running ok on the target. It could be that your device has become damaged or the configuration settings are somehow incorrect.

Post Reply