ChipKIT-DP32 With Arduino

Introduction: ChipKIT-DP32 With Arduino

Hello guys,

This is to show you how we can program the ChipKIT-DP32 with Arduino IDE.

Prior to start, we will need to have the following installed:

MPLAB X IDE:

http://www.microchip.com/mplab/mplab-x-ide

Bootloader for ChipKIT-DP32:

https://reference.digilentinc.com/chipkit_dp32:ch...

Arduino IDE:

https://www.arduino.cc/en/Main/Software

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: Flashing the ChipKIT-DP32 Board

1. First open MPLAB X IDE

2. Create a prebuilt project as shown in the photo.

Step 2: Import the Bootloader File

Locate your bootloader file and import it. Make sure you chose the right device in the device drop down menu and select your debugger. In my case, its PIC32MX250F128B.

Step 3: Program the Bootloader Into the Board

Once you have your bootloader file in prebuilt files folder, press the "Make and Program device main project" button.

You should have the same output as the picture shown.

Step 4: Install Driver for Your Board(window 7)

Check your device manger see if your board is appeared as recognized device.

if not, open notepad, and paste the following code in it, then save as an inf file like the picture shown.

[Version]
Signature="$Windows NT$" Class=Ports ClassGuid={4D36E978-E325-11CE-BFC1-08002BE10318} Provider=%ProviderName% DriverVer=10/15/2009,1.0.0.0

[MANUFACTURER] %ProviderName%=DeviceList, NTx86, NTamd64

[DeviceList.NTx86] %Stk500v2%=DriverInstall,USB\VID_0403&PID_A662

[DeviceList.NTamd64] %Stk500v2%=DriverInstall,USB\VID_0403&PID_A662

[DefaultInstall] CopyInf=Stk500v2.inf

[DriverInstall] include=mdmcpq.inf CopyFiles=FakeModemCopyFileSection AddReg=LowerFilterAddReg,SerialPropPageAddReg

[DriverInstall.Services] include = mdmcpq.inf AddService = usbser, 0x00000002, LowerFilter_Service_Inst

; This adds the serial port property tab to the device properties dialog [SerialPropPageAddReg] HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider"

[Strings] ProviderName = "www.cpustick.com" Stk500v2 = "Stk500v2"

Step 5: Program in Arduino

Now we are ready to do things in Arduino.

To test it, open Arduino and click File>Preference paste the following link in Additional Boards Manager URLs

https://github.com/chipKIT32/chipKIT-core/raw/mast...

click ok then go to Tools > Board > Boards Manager type "chipkit" in the search filter.

you should find only one result. Install it!

Try it out by using the examples provided by Arduino!

Press File > Examples > 01.Basics > Blink

Click Verify and Upload.

Note: make sure you chose the right port for your board it differs from each computer

If your Arduino said "No target found", its probably you chose the wrong port or you did not install the driver for your board.

PS:When you want to change program to your board, you need to flash your board with MPLAB X again

Be the First to Share

    Recommendations

    • Tiny Speed Challenge

      Tiny Speed Challenge
    • Clocks Contest

      Clocks Contest
    • PCB Design Challenge

      PCB Design Challenge

    Discussions