PIC18F2580 Programming failed
Posted: Mon Aug 22, 2011 10:17 am
EB006 v6
SW1 - Fast
SW2 - XTAL
ICD2 / USB - USB
PSU / USB - PSU
LVP Selection - All three set for IO Port
Flowcode Pro v4.5.18.74
FlowKit connection - PC-->FlowKit In - FlowKit Out --> EB006 USB
Custom USB Device - Matrix PICmicro Programmer - v 1.0.0.6, 12/19/2007
CPU - PIC18F2580
Port A - LED
Port B - LCD
Port C - nc
Port D - nc
Port E - nc
Using the same simple program I have been using to teach myself Flowcode, I replaced the 16F88 with a 18F2580 (http://ww1.microchip.com/downloads/en/D ... 39637d.pdf).
When I try to compile to the chip I get this:
...
success
Return code = 0
Launching the programmer...
C:\Program Files (x86)\Matrix Multimedia\Flowcode V4\Tools\PPP\PPPv3.exe -cs 2 -chip PIC18F2580 -nogui "Flowcode1.hex"
Sending program...
Erasing the PICmicro
NOTE: EEPROM data will also be erased!
............
Writing program memory
Writing configuration memory
Writing id-locations
Reading program memory
Reading configuration memory
Finished reading PICmicro contents
Programming failed:
Program memory check failed
(NOTE: if the PIC is code-protected, this message will be
displayed even if the program has been sent correctly)
That took 6.895 seconds
Return code = 0
FINISHED
I also created a new program targeting the 2580. The program only had a begin / end. It also failed with the same problem.
(I also tried programming with the boards not connected and bypassing the flowkit)
I figured out how to get my PICKit2 connected. It was able to download the hex without a problem. After downloading I moved all of the jumpers back and the program runs, but the LCD display is messed up. It looks like "0 || || P || 0 ||...". The LED is running correctly. But I still can't use Flowcode to compile and download.
SW1 - Fast
SW2 - XTAL
ICD2 / USB - USB
PSU / USB - PSU
LVP Selection - All three set for IO Port
Flowcode Pro v4.5.18.74
FlowKit connection - PC-->FlowKit In - FlowKit Out --> EB006 USB
Custom USB Device - Matrix PICmicro Programmer - v 1.0.0.6, 12/19/2007
CPU - PIC18F2580
Port A - LED
Port B - LCD
Port C - nc
Port D - nc
Port E - nc
Using the same simple program I have been using to teach myself Flowcode, I replaced the 16F88 with a 18F2580 (http://ww1.microchip.com/downloads/en/D ... 39637d.pdf).
When I try to compile to the chip I get this:
...
success
Return code = 0
Launching the programmer...
C:\Program Files (x86)\Matrix Multimedia\Flowcode V4\Tools\PPP\PPPv3.exe -cs 2 -chip PIC18F2580 -nogui "Flowcode1.hex"
Sending program...
Erasing the PICmicro
NOTE: EEPROM data will also be erased!
............
Writing program memory
Writing configuration memory
Writing id-locations
Reading program memory
Reading configuration memory
Finished reading PICmicro contents
Programming failed:
Program memory check failed
(NOTE: if the PIC is code-protected, this message will be
displayed even if the program has been sent correctly)
That took 6.895 seconds
Return code = 0
FINISHED
I also created a new program targeting the 2580. The program only had a begin / end. It also failed with the same problem.
(I also tried programming with the boards not connected and bypassing the flowkit)
I figured out how to get my PICKit2 connected. It was able to download the hex without a problem. After downloading I moved all of the jumpers back and the program runs, but the LCD display is messed up. It looks like "0 || || P || 0 ||...". The LED is running correctly. But I still can't use Flowcode to compile and download.