PICkit 2 & Flowcode 3 programming - return code 24
Posted: Wed Oct 21, 2009 2:43 pm
Hello,
Hope you can assist, my problem seems to have been almost covered before in this forum & concerns the use of pk2cmd_mtx.exe which was discussed in 2007.
I bought PICkit 2 Debug Express & got it working quickly with MPlab, so I'm OK with that then I got Flowcode 3 with EPE mag subscription, & I'm trying to program the 16F887 chip on the PICkit with it. I've followed all the advice I can find in this forum, e.g. spent hours working thro' the short file name issue. I downloaded the zip file containg the pk2cmd_mtx.exe and stored it as instructed, changing the complier options to the same location. Now I'm stuck however on the programming stage with return code 24. Below is my complier options settings for the programmer & then the output from the compiler when I run compile to chip.
Thanks in advance
Programmer location:
C:\Program Files\pk2cmd_mtx\pk2cmd_mtx.exe
Parameters
-PPIC%p -F%F.hex -M -A5 -H -BC:\program files\pk2cmd_mtx
Compiler messages:
File name: C:\Program Files\Microchip\PICkit 2 v2\DBE Demo\Flowcode3.c
Generated by: Flowcode v3.6.11.53
Date: Wednesday, October 21, 2009 16:11:26
Licence: Student
Registered to: Steve xxxxx
NOT FOR COMMERCIAL USE
http://www.matrixmultimedia.com
Launching the compiler...
C:\Program Files\Matrix Multimedia\Flowcode V3\BoostC\boostc.pic16.flowcode.exe -v -t PIC16F887 "Flowcode3.c"
BoostC Optimizing C Compiler Version 6.70 (for PIC16 architecture)
http://www.sourceboost.com
Copyright(C) 2004-2007 Pavel Baranov
Copyright(C) 2004-2007 David Hobday
Licensed to FlowCode User under Single user Standard License for 1 node(s)
Limitations: PIC12,PIC16 max code size:4096 words, max RAM banks:Unlimited, Non commercial use only
Flowcode3.c
Starting preprocessor: "C:\Program Files\Matrix Multimedia\Flowcode V3\BoostC\pp.exe" "C:\Program Files\Microchip\PICkit 2 v2\DBE Demo\Flowcode3.c" -i "C:\Program Files\Matrix Multimedia\Flowcode V3\BoostC\include" -d _PIC16F887 -la -c2 -o Flowcode3.pp -v -d _BOOSTC -d _PIC16
Flowcode3.c success
success
......
Return code = 0
Launching the linker/assembler...
C:\Program Files\Matrix Multimedia\Flowcode V3\BoostC\boostlink.pic.exe -ld "C:\Program Files\Matrix Multimedia\Flowcode V3\BoostC\lib" libc.pic16.lib flowcode.pic16.lib "Flowcode3.obj" -t PIC16F887 -d "C:\Program Files\Microchip\PICkit 2 v2\DBE Demo" -p "Flowcode3"
BoostLink Optimizing Linker Version 6.70
http://www.sourceboost.com
Copyright(C) 2004-2007 Pavel Baranov
Copyright(C) 2004-2007 David Hobday
Building CASM file
Memory Usage Report
===================
RAM available:368 bytes, used:5 bytes (1.4%), free:363 bytes (98.6%),
Heap size:363 bytes, Heap max single alloc:110 bytes
ROM available:8192 words, used:45 words (0.6%), free:8147 words (99.4%)
success
Return code = 0
Launching the programmer...
C:\Program Files\pk2cmd_mtx\pk2cmd_mtx.exe -PPIC16F887 -FFlowcode3.hex -M -A5 -H -BC:\program files\pk2cmd_mtx
PK2DeviceFile.dat device file requires an update of pk2cmd
Return code = 24
Flowcode was unable to transfer the flowchart to the microcontroller. Check the programmer options and physical connections.
FINISHED
Hope you can assist, my problem seems to have been almost covered before in this forum & concerns the use of pk2cmd_mtx.exe which was discussed in 2007.
I bought PICkit 2 Debug Express & got it working quickly with MPlab, so I'm OK with that then I got Flowcode 3 with EPE mag subscription, & I'm trying to program the 16F887 chip on the PICkit with it. I've followed all the advice I can find in this forum, e.g. spent hours working thro' the short file name issue. I downloaded the zip file containg the pk2cmd_mtx.exe and stored it as instructed, changing the complier options to the same location. Now I'm stuck however on the programming stage with return code 24. Below is my complier options settings for the programmer & then the output from the compiler when I run compile to chip.
Thanks in advance
Programmer location:
C:\Program Files\pk2cmd_mtx\pk2cmd_mtx.exe
Parameters
-PPIC%p -F%F.hex -M -A5 -H -BC:\program files\pk2cmd_mtx
Compiler messages:
File name: C:\Program Files\Microchip\PICkit 2 v2\DBE Demo\Flowcode3.c
Generated by: Flowcode v3.6.11.53
Date: Wednesday, October 21, 2009 16:11:26
Licence: Student
Registered to: Steve xxxxx
NOT FOR COMMERCIAL USE
http://www.matrixmultimedia.com
Launching the compiler...
C:\Program Files\Matrix Multimedia\Flowcode V3\BoostC\boostc.pic16.flowcode.exe -v -t PIC16F887 "Flowcode3.c"
BoostC Optimizing C Compiler Version 6.70 (for PIC16 architecture)
http://www.sourceboost.com
Copyright(C) 2004-2007 Pavel Baranov
Copyright(C) 2004-2007 David Hobday
Licensed to FlowCode User under Single user Standard License for 1 node(s)
Limitations: PIC12,PIC16 max code size:4096 words, max RAM banks:Unlimited, Non commercial use only
Flowcode3.c
Starting preprocessor: "C:\Program Files\Matrix Multimedia\Flowcode V3\BoostC\pp.exe" "C:\Program Files\Microchip\PICkit 2 v2\DBE Demo\Flowcode3.c" -i "C:\Program Files\Matrix Multimedia\Flowcode V3\BoostC\include" -d _PIC16F887 -la -c2 -o Flowcode3.pp -v -d _BOOSTC -d _PIC16
Flowcode3.c success
success
......
Return code = 0
Launching the linker/assembler...
C:\Program Files\Matrix Multimedia\Flowcode V3\BoostC\boostlink.pic.exe -ld "C:\Program Files\Matrix Multimedia\Flowcode V3\BoostC\lib" libc.pic16.lib flowcode.pic16.lib "Flowcode3.obj" -t PIC16F887 -d "C:\Program Files\Microchip\PICkit 2 v2\DBE Demo" -p "Flowcode3"
BoostLink Optimizing Linker Version 6.70
http://www.sourceboost.com
Copyright(C) 2004-2007 Pavel Baranov
Copyright(C) 2004-2007 David Hobday
Building CASM file
Memory Usage Report
===================
RAM available:368 bytes, used:5 bytes (1.4%), free:363 bytes (98.6%),
Heap size:363 bytes, Heap max single alloc:110 bytes
ROM available:8192 words, used:45 words (0.6%), free:8147 words (99.4%)
success
Return code = 0
Launching the programmer...
C:\Program Files\pk2cmd_mtx\pk2cmd_mtx.exe -PPIC16F887 -FFlowcode3.hex -M -A5 -H -BC:\program files\pk2cmd_mtx
PK2DeviceFile.dat device file requires an update of pk2cmd
Return code = 24
Flowcode was unable to transfer the flowchart to the microcontroller. Check the programmer options and physical connections.
FINISHED