Arduino IDE and the Chipkit PGM Programmer

shebychev
Posts: 7
Joined: Wed May 03, 2017 5:28 pm

Arduino IDE and the Chipkit PGM Programmer

Post by shebychev » Wed May 03, 2017 5:31 pm

Hi everyone,

I've been trying to program using the Chipkit PGM programmer and Chipkit-core and Arduino IDE. Problem is that my computer does not seem to see the PGM programmer as a COM port, rather as an HID compliant vendor-defined device. It works fine and is listed under "other debugger" when using MPLAB X but Arduino and MPLAB IDE do not see it at all.

When I try to find it under "Devices and Printers" it is listed under "Unspecified devices".. I've tried installing the FTDI drivers to no avail.

Any help is appreciated.

Thanks!

User avatar
majenko
Site Admin
Posts: 2164
Joined: Wed Nov 09, 2011 7:51 pm
Location: UK
Contact:

Re: Arduino IDE and the Chipkit PGM Programmer

Post by majenko » Wed May 03, 2017 6:42 pm

You can't use a programmer with the Arduino IDE.

UECIDE does, though, provide some support for it with one of its programmer plugins, but it's fragile. Also using a programmer wipes out the bootloader and sketches have to be compiled with the right linker script, which UECIDE does but the Arduino IDE can't.

UECIDE uses the `mdb.jar` file from an MPLAB-X installation, which you have to manually point to in the settings.
Why not visit my shop? http://majenko.co.uk/catalog
Universal IDE: http://uecide.org
"I was trying to find out if it was possible to only eat one Jaffa Cake. I had to abandon the experiment because I ran out of Jaffa Cakes".

shebychev
Posts: 7
Joined: Wed May 03, 2017 5:28 pm

Re: Arduino IDE and the Chipkit PGM Programmer

Post by shebychev » Wed May 03, 2017 7:06 pm

I see. Thanks! Looks like I'll stick with MPLAB then.

EDIT: Actually, on the product website it does say it can be used to edit MPIDE sketches? How does that work then? http://store.digilentinc.com/chipkit-pg ... platforms/

lstandage
Posts: 17
Joined: Fri Sep 06, 2013 6:03 pm

Re: Arduino IDE and the Chipkit PGM Programmer

Post by lstandage » Wed May 03, 2017 7:54 pm

The Arduino IDE and MPIDE cannot do debug themselves. The pass the task of programming off to another program, which can communicate with the bootloader on the board. The Arduino IDE can't go through the chipKIT PGM, as far as I know, as I don't think the pic32prog tool supports it.

You can use the MPLAB X IDE, with the new chipKIT Sketch Importer plugin, to debug through chipKIT PGM, or any programming/debug tool supported by the IDE. These include:
  • chipKIT PGM
    PICkit 3
    ICD 3
    Real ICE
    SEGGER J-Link

shebychev
Posts: 7
Joined: Wed May 03, 2017 5:28 pm

Re: Arduino IDE and the Chipkit PGM Programmer

Post by shebychev » Wed May 03, 2017 9:35 pm

Thanks! I actually just did that, I ported my project to UECIDE and compiled it successfully. When I try to install the chipKIT import plugin, it keeps asking for the plugin jna platform and plugin jna (see attached image).
Capture.PNG
Capture.PNG (34.22 KiB) Viewed 433 times
I couldn't find JNA for mplab (or netbeans, for that matter), any idea where i should properly install it? Is it just a matter of setting my PATH variable to the .jar files?



Thanks again! This community is great.

lstandage
Posts: 17
Joined: Fri Sep 06, 2013 6:03 pm

Re: Arduino IDE and the Chipkit PGM Programmer

Post by lstandage » Wed May 03, 2017 10:16 pm

This is a dependency the plugin currently has with the version of the IDE in use. What version of MPLAB X do you have?

shebychev
Posts: 7
Joined: Wed May 03, 2017 5:28 pm

Re: Arduino IDE and the Chipkit PGM Programmer

Post by shebychev » Wed May 03, 2017 11:08 pm

I'm using MPLAB X v3.60

lstandage
Posts: 17
Joined: Fri Sep 06, 2013 6:03 pm

Re: Arduino IDE and the Chipkit PGM Programmer

Post by lstandage » Mon May 08, 2017 11:08 pm

We're working to fix it on this end. It looks like the plugins for 3.55 and 3.60 got swapped.

I'll post again as soon as it is working.

User avatar
majenko
Site Admin
Posts: 2164
Joined: Wed Nov 09, 2011 7:51 pm
Location: UK
Contact:

Re: Arduino IDE and the Chipkit PGM Programmer

Post by majenko » Tue May 09, 2017 10:34 am

Yeah, I saw this the other day while reinstalling too. You need a proper repository system like UECIDE uses... ;)
Why not visit my shop? http://majenko.co.uk/catalog
Universal IDE: http://uecide.org
"I was trying to find out if it was possible to only eat one Jaffa Cake. I had to abandon the experiment because I ran out of Jaffa Cakes".

lstandage
Posts: 17
Joined: Fri Sep 06, 2013 6:03 pm

Re: Arduino IDE and the Chipkit PGM Programmer

Post by lstandage » Thu May 11, 2017 12:21 am

We've posted a new version of the plugin, so you should see an update available in the IDE.

This one won't have the version dependencies, so it will work on any MPLAB X from 3.55 on up.

Post Reply