Introduction: Setting Up ChipKIT Dp32 to Use Arduino IDE

Do you know you can program your chipKIT board or any PIC32 chip using Arduino IDE? It’s actually quite easy. This tutorial will demonstrate how to set up your chipKIT dp32 to use Arduino IDE to develop it. Note that this tutorial including screen captures was done using a Windows® 10 PC.

To complete this task, you will require the following:


1. ChipKIT DP32 board (User manual:

2. ChipKIT programmer

3. One micro USB cable

4. One mini USB cable


1. You need MPLAB X to set up your chipKIT. To make MPLAB X work you will need to download:

(a) The latest version of MPLAB X IDE: --> Downloads --> Choose the download title MPLAB® X IDE v3.26 depending on your operating system (Windows/ Linux/ Mac)

(b) The XC32 compiler: --> Downloads --> Choose MPLAB® XC32 Compiler v1.40 for your operating system (Windows/ Linux/ Mac)

(c) Finally, you will also need: --> Current Download--> MCC MPLAB® X Plugin --> Downloads --> MPLAB® Harmony Integrated Software Framework v1.07.01 (Windows/ Linux/ Mac)

2. To make Arduino IDE work you will need to download :

(a) Arduino IDE: --> Arduino IDE 1.6.7

Click “chipKIT core” from Install the chipKIT core --> Follow the instructions given on “Auto install via URL from within Arduino IDE”

(b) The bootloader (To enable Arduino to work on the dp32 board): --> Design Resources--> Bootloader

Step 1: Connect Hardware Tools

Connect your hardware tools as shown in the picture and then connect the USBs to your PC/laptop.

Step 2: Open MPLAB X

Open MPLAB X--> “File” --> “New Project” --> “Microchip Embedded” --> “Prebuilt (Hex, Loadable Image Project)” and press “Next”

Step 3: Click Browse

Click “Browse” and choose the Bootloader file that you downloaded and click “Open”.

Step 4: Choose Your Device

Choose your device: PIC32MX250F128B (You can find your microprocessor name typed on it) and choose your Hardware Tool which can be found under “Licensed Debugger” or under “PICkit” and click “Next”

Step 5: Select Project Name and Location

Select Project Name and Location and select “Set as main project” and then click “Finish”. You can see that your project appears the left of the main MPLAB X window under the title “Projects”

Step 6: Make and Program Main Project

Now click “Make and Program Device Main Project” which you can find on the top of the main window as highlighted and pointed in the picture

Step 7: MPLAB X Set Up Is Complete

You will see your device programming and verifying, wait until it says “Verify complete”. You are done setting up MBLAB X for this project, keep MBLAB X running in background while you work on Arduino IDE. Do not close it.

Step 8: Open Arduino IDE

Next, open the Arduino software. Before moving to the next step, make sure you have selected your hardware and the USB port you are using by clicking on “Tools” --> “Board: ChipKIT DP32” and “Port: (Your specific USB port)”

Arduino software has many built-in examples to try from. Since this is an instruction on how to use Arduino for chipKIT boards, I will just demonstrate by showing a sample from the built-in examples. You can also write your own codes to manipulate the device.

Step 9: Choose "Blink" and Verify It

Now click “File” --> “Examples”--> “01.Basics”--> “Blink”. A file with the codes for Blinking will open. Click the tick mark (verify) below “File”.

Step 10: Upload

After the file is verified, click arrow pointing right --> “upload”) below “Edit”. You had to keep MPLAB X running for this step to work. If this step gives you “Target not found” error you may need to reflash the bootloader from MPLAB X and repeat steps 8-10.

Step 11: LED Flashing on Your Board

When the file is done uploading, you can now see a LED flashing on your board. This shows that you have successfully used Arduino IDE on your chipKIT dp32.

Thanks for your time! Hope you enjoyed it.


wold630 made it! (author)2016-04-07

Thanks for sharing!