Tell me more ×
Electrical Engineering Stack Exchange is a question and answer site for electronics and electrical engineering professionals, students, and enthusiasts. It's 100% free, no registration required.

I'm having a problem programming a PIC18F97J60 with pk2cmd.exe. Using the same hex file I can program the device fine with MPLAB and the PicKit2 programming utility, but I'd like to be able to program the chip from the command line. The chip will program, but verify fails. I should mention that I have the code protect bits set on the PIC18F97J60.

Original Configuration:
- PK2CMD.EXE v1.20
- Device File v1.55.00
- PICkit2 Firmware v2.32.00

share|improve this question

1 Answer

up vote 2 down vote accepted

Apparently there is a problem with the device file that comes with v1.20 of pk2cmd.exe.
Reverting to the device file that comes v1.01b of pk2cmd.exe fixes the issue.

Working configuration:
- PK2CMD.EXE v1.20
- Device File v1.42.00 (Comes with PK2CMD.EXE v1.01b)
- PICkit2 Firmware v2.32.00

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.