Page 1 of 1

Problem programming PIC18F8490 wirh Pickit2

Posted: Mon Jan 26, 2015 5:51 pm
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

Re: Problem programming PIC18F8490 wirh Pickit2

Posted: Mon Jan 26, 2015 7:25 pm
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.

Re: Problem programming PIC18F8490 wirh Pickit2

Posted: Tue Jan 27, 2015 11:25 am
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?

Re: Problem programming PIC18F8490 wirh Pickit2

Posted: Tue Jan 27, 2015 5:50 pm
by Benj
Hello,

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

Re: Problem programming PIC18F8490 wirh Pickit2

Posted: Thu Jan 29, 2015 7:23 pm
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.

Re: Problem programming PIC18F8490 wirh Pickit2

Posted: Thu Feb 05, 2015 12:38 pm
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.