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
Problem programming PIC18F8490 wirh Pickit2
Moderator: Benj
Re: Problem programming PIC18F8490 wirh Pickit2
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.
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
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?
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?
- 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
Hello,
Can you attach your program so we can see if there is anything there potentially at fault.
Can you attach your program so we can see if there is anything there potentially at fault.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Re: Problem programming PIC18F8490 wirh Pickit2
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.
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.
- 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
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.
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.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel