Just installed the newest IDE and now my PICkit2 behaves differently. During flashing, the Target led comes on, indicating that power for the PIC has been switched to the programmer. The led stays on after programming as well. If I use the older (March 2015) IDE, this does not occur. In the PicKit2 folder of the newest IDE, I notice that the PK2DeviceFile.dat is now larger (different), which I thought might explain the change, however using the PK2DeviceFile-original.dat, nor the PK2DeviceFile.dat from the older IDE makes a difference in this new behavior. Has anyone else seen this or can offer an explanation/fix? Thanks!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I discovered the answer to my original question in the flashPIC.bat. If the file is changed as below, the external power stays with the chip and in not transferred to the programmer:
Snippet from orginalflashPIC.bat:
REM Call PicKit2 command-line programming Software leaving power on the chip
REM and always exit with MCLR on. Optionally remove -r for MCLR off
"PicKit2\pk2cmd.exe" -b"PicKit2" -pPIC%2 -f%1 -m -j -t -r
REM Call PicKit2 command-line programming Software without leaving the power on the chip
REM and always exit with MCLR on. Optionally remove -r for MCLR off
rem "PicKit2\pk2cmd.exe" -b"PicKit2" -pPIC%2 -f%1 -m -r
Change to:
REM Call PicKit2 command-line programming Software leaving power on the chip
REM and always exit with MCLR on. Optionally remove -r for MCLR off
rem "PicKit2\pk2cmd.exe" -b"PicKit2" -pPIC%2 -f%1 -m -j -t -r
REM Call PicKit2 command-line programming Software without leaving the power on the chip
REM and always exit with MCLR on. Optionally remove -r for MCLR off
"PicKit2\pk2cmd.exe" -b"PicKit2" -pPIC%2 -f%1 -m -r
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Just installed the newest IDE and now my PICkit2 behaves differently. During flashing, the Target led comes on, indicating that power for the PIC has been switched to the programmer. The led stays on after programming as well. If I use the older (March 2015) IDE, this does not occur. In the PicKit2 folder of the newest IDE, I notice that the PK2DeviceFile.dat is now larger (different), which I thought might explain the change, however using the PK2DeviceFile-original.dat, nor the PK2DeviceFile.dat from the older IDE makes a difference in this new behavior. Has anyone else seen this or can offer an explanation/fix? Thanks!
Yes. There is an issue in the.dat file.
Please review this folder. And take a .dat files that works for you.
https://sourceforge.net/projects/gcbasic/files/Support%20Files/PicKit/Device%20Files/
I discovered the answer to my original question in the flashPIC.bat. If the file is changed as below, the external power stays with the chip and in not transferred to the programmer:
Snippet from orginalflashPIC.bat:
REM Call PicKit2 command-line programming Software leaving power on the chip
REM and always exit with MCLR on. Optionally remove -r for MCLR off
"PicKit2\pk2cmd.exe" -b"PicKit2" -pPIC%2 -f%1 -m -j -t -r
REM Call PicKit2 command-line programming Software without leaving the power on the chip
REM and always exit with MCLR on. Optionally remove -r for MCLR off
rem "PicKit2\pk2cmd.exe" -b"PicKit2" -pPIC%2 -f%1 -m -r
Change to:
REM Call PicKit2 command-line programming Software leaving power on the chip
REM and always exit with MCLR on. Optionally remove -r for MCLR off
rem "PicKit2\pk2cmd.exe" -b"PicKit2" -pPIC%2 -f%1 -m -j -t -r
REM Call PicKit2 command-line programming Software without leaving the power on the chip
REM and always exit with MCLR on. Optionally remove -r for MCLR off
"PicKit2\pk2cmd.exe" -b"PicKit2" -pPIC%2 -f%1 -m -r