Menu

PICkit2 power issue with newest IDE 95.006

Help
2016-03-26
2016-03-27
  • Jack Hoffnung

    Jack Hoffnung - 2016-03-26

    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!

     
  • Jack Hoffnung

    Jack Hoffnung - 2016-03-27

    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

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.