Can't erase/write PIC18F4685

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

Moderators: Benj, Mods

Post Reply
PaulXPC
Posts: 12
Joined: Sun Jun 29, 2008 12:35 pm
Location: The Netherlands
Contact:

Can't erase/write PIC18F4685

Post 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

PaulXPC
Posts: 12
Joined: Sun Jun 29, 2008 12:35 pm
Location: The Netherlands
Contact:

Re: Can't erase/write PIC18F4685

Post 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:

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: Can't erase/write PIC18F4685

Post by Benj »

Hello Paul

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

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: Can't erase/write PIC18F4685

Post 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.
Attachments
PPP.zip
(80.08 KiB) Downloaded 424 times

PaulXPC
Posts: 12
Joined: Sun Jun 29, 2008 12:35 pm
Location: The Netherlands
Contact:

Re: Can't erase/write PIC18F4685

Post by PaulXPC »

Hi Ben,

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

Paul

Post Reply