Page 1 of 1

Can't erase/write PIC18F4685

Posted: Fri Aug 21, 2009 10:22 am
by PaulXPC
Hi guys,

I'm working on a new project based on the PIC18F4685 and after programming a new MCU with a simple blink-a-led program the LED indeed blinked just fine. However, after modifying the original Flowcode program, I could no longer erase or write the MCU, it failed everytime. I was able to write the program to a new (out of the box) MCU, but after that I too was unable to write to it again. I checked the configuration; code protect wasn't enabled.
I tried erasing both the MCUs directly in PPP v3.9.12.26 (hardware EB-006, firmware version 7), but couldn't erase them there either. PPP was able to correctly identify the MCUs and erasing other MCUs (16F877a, 16F88 and 18F4450) works fine.
I searched the forums and this thread describes a similar problem: http://www.matrixmultimedia.com/mmforum ... t=18f4685 , it wasn't resolved however.
Anybody got an idea how to resolve this? Thanks in advance.

Regards,

Paul

Re: Can't erase/write PIC18F4685

Posted: Fri Aug 28, 2009 11:54 am
by PaulXPC
Some additional information about the programming bug: it must be related to the way the PIC18F4685 is defined in PPP/Flowcode, since I'm able to write, read and erase the MCU just fine with MPlab and the PICkit2.
So the PICkit2 works and the EB-006 doesn't. Why? :cry:

Re: Can't erase/write PIC18F4685

Posted: Tue Sep 01, 2009 4:21 pm
by Benj
Hello Paul

I will look into this problem for you and see if I can find a solution.

Re: Can't erase/write PIC18F4685

Posted: Fri Sep 11, 2009 3:33 pm
by Benj
Hello

I have managed to get hold of some of the 18F4685 devices now and have managed to fix the programming problem.

Attached is an updated configuration file. Simply extract this file into the following location.

a) if you are using Flowcode V4.

C:\Program Files\Matrix Multimedia\Flowcode V4\Tools\PPP

b) If you are using Flowcode V3, V2, C4PICs, ASM4PICs etc.

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

Let me know how you get on.

Re: Can't erase/write PIC18F4685

Posted: Mon Sep 14, 2009 10:43 am
by PaulXPC
Hi Ben,

The new configuration files for PPP work like a charm 8)
Thank you very much.

Paul