Make sure the arrows on the Pickit 3 and the 6 pin header are aligned. The other end of the ICSP cable (6 pin connector) plugs into the PicKit 3.
Now, connect the ICSP cable to the headers marked I1 and I2 as per the first photo in Connector Positions above. The last line of the build tab of the output window should read "Loaded C:\.\ECGMaster32-DR4r1.1-v1.3.1a.hex." which indicates that the hex file has been loaded into memory. Then, click File > Import and browse to the ECGMaster32-DR4r1.1-v1.3.1a.hex file (latest version at time of writing) and click Open. This is not a problem and just a warning that the PicKit 3 cannot "see" the chip in the DR4 yet. When MPLAB is ready you will see "PicKit 3 Connected" and possibly an error stating "PK3Err0045: You must connect to a target device to use Pickit 3". You will see some activity in the PicKit 3 tab of the output window for up to a minute or so.
Pickit 3 header download#
If it does, click OK and wait for MPLAB to download the programming firmware to the Pickit 3. Click OK to continue." may pop up at this stage. From the device drop-down list, select PIC32MX340F512H and click OK.Ī dialog saying "New firmware must be downloaded for PicKit 3 to work with the part selected. Once it has loaded, click Configure > Select Device to bring up the device selection window.
Plug your PicKit 3 into a spare USB port, then start MPLAB.