Skip to content
This repository has been archived by the owner on Aug 2, 2021. It is now read-only.

Programming The Device

chrishajduk84 edited this page Apr 15, 2015 · 2 revisions

In order to program the device, you must have setup your account according to the Setup section. You should also refer to the Schematics and Board Design section for the ports required to complete the programming process. You will require an ICD 3 or a similar programming device.

When using the MPLAB X GUI the process to program the device is as follows:

    1. Ensure the project you wish to program is the main project.
    2. Connect a cable to the programming port. The pins that should be part of the programming port are MCLR, PGD1, and PGC1.
    3. Click the "Make and Program Device" button in the top toolbar. Optionally, you can also press the debug button to use the debugging features of MPLAB X.

When using your own editor and compiling from the command line:

    1. Have the binary file ready for programming.
    2. Connect a cable to the programming port. The pins that should be part of the programming port are MCLR, PGD1, and PGC1.
    3. Open the MPLAB IPE interface.
    4. Select your chip model.
    5. For the source option, browse to your binary file.
    6. Press program and wait. Then optionally also use the verify option (recommended).

If you are using both chips of the PICpilot, ensure you correctly set the chip identifier pre-compiler in the main.h file, and ensure you program both chips.