Problem programming PIC18F8490 wirh Pickit2

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 5.
To post in this forum you must have a registered copy of Flowcode 5 or higher.

Moderator: Benj

Post Reply
Clive44
Posts: 52
Joined: Tue Oct 18, 2011 12:35 pm
Has thanked: 3 times
Contact:

Problem programming PIC18F8490 wirh Pickit2

Post by Clive44 »

Hi

Flowcode V5.5.2.1, PICKIT 2 V2.61, PIC18F8490

Compiles OK but I get the following error message when trying to program the chip

"PICkit 2 Program Report
26-Jan-2015, 16:41:24
Device Type: PIC18F8490

Configuration Memory Errors

Address Good Bad
300004 008103 0081C3

Return code = 34
Flowcode was unable to transfer the flowchart to the microcontroller. Check the programmer options and physical connections.


FINISHED"

What is error code 34? Chip does seem to program but not functioning correctly on Port F. Bits 0,1,2 and 7 OK but bits 3,4,5 and 6 will not 'see' a logic 1 when used as an input.

Any suggestions or do I - buy a PICKIT3 or try Flowcode V6?

Cheers

Clive

Clive44
Posts: 52
Joined: Tue Oct 18, 2011 12:35 pm
Has thanked: 3 times
Contact:

Re: Problem programming PIC18F8490 wirh Pickit2

Post by Clive44 »

OK, cracked it.
Address 300004 relates to 'external 8bit or 16 bit bus'
This is configurable in Flowcode/Build/Project options/Configure menu but there is no mention of this on the PIC18F8490 datasheet!
Setting bit 38 to 'external 16 bit bus' cured the problem.

Clive44
Posts: 52
Joined: Tue Oct 18, 2011 12:35 pm
Has thanked: 3 times
Contact:

Re: Problem programming PIC18F8490 wirh Pickit2

Post by Clive44 »

Whoops - a bit premature there when i said I'd cracked it!
Compiler error has gone away but Port F still not functioning correctly.

Set a loop to read port F and display result on LCD. 'walking' along pin F pins with a probe connected to +5V pins 0,1,2 and 7 read OK (1,2,4,128 respectively)
Pins 3,4,5 and 6 always read zero. (checking with a DVM there is 5V on each pin - i.e. no shorts to ground)

Doing the same on other ports all OK.
Anyone any ideas?

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: Problem programming PIC18F8490 wirh Pickit2

Post by Benj »

Hello,

Can you attach your program so we can see if there is anything there potentially at fault.

Clive44
Posts: 52
Joined: Tue Oct 18, 2011 12:35 pm
Has thanked: 3 times
Contact:

Re: Problem programming PIC18F8490 wirh Pickit2

Post by Clive44 »

Hi Ben

I'm certain there is a bug in the way Flowcode handles the PIC18F8490. I had tried two separate identical PCBs with the 8490. No joy.
After a couple of days trying to get Port F to work as an input I unsoldered the the 8490 and replaced it with a PIC18F8722 on both PCBs
Wham. Perfect - with no change to the code everything works as it should.

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: Problem programming PIC18F8490 wirh Pickit2

Post by Benj »

Hello Clive,

There is nothing specific in Flowcode regarding the 8490 and Port F which should cause it to work on one device and not on another so this is a strange one. I would probably need to see your program and schematic to be able to start investigating why the 8490 is not working correctly for you.

Post Reply