Programming Uno32 with Pickit3 and MPLABX

Post Reply
pierre
Posts: 6
Joined: Sun Jul 05, 2015 8:32 am

Programming Uno32 with Pickit3 and MPLABX

Post by pierre » Fri Apr 22, 2016 2:20 pm

I have a small assembly program for the PIC32 Starter Kit (PIC32MX360F512L) on MPLABX and would like to run it on Chipkit Uno32 (PIC32MX320F128H). It does a few basic operations such as setting the BMX registers, testing execution from Program Flash and RAM, with very basic output on LEDS. I know I probably have to change my RAM mapping and LEDs output addresses, but my main concern is how to assemble with MPLABX for a different MCU, i.e. how include data specific to the PIC32MX320F128H. The Starter Kit is recognized as such by the IDE with no Pickit in between and the IDE/compiler did the MCU-specific include work for me. This time I shall be using the Pickit3 to access the MCU and it is not clear to me how configuration settings specific to the MCU can be made. I did find a post on this subject, but it mentions a feature of the IDE, setting configuration bits, that since then (2014) I understand has changed:

viewtopic.php?f=19&t=2963&hilit=pickit+uno32

I'd be grateful for any specific advice, thanks!

Pierre

(Incidentally, having MPLABX to work reliably with the PIC32 Starter kit was quite an ordeal, I had to install it on 4 different computers running Debian before having one that a) detects the Starter Kit and b) does not occasionally freeze during MCU transfer/programming via USB. I hope that with different hw, Pickit3 and Uno32, of which I have no experience at this time, I will be rid of this frustration)

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

Re: Programming Uno32 with Pickit3 and MPLABX

Post by majenko » Fri Apr 22, 2016 3:01 pm

The main thing you have to do is select the correct microcontroller in the project's settings. Once you do that everything else should know about it. Including xc.h will automatically include the right processor header for the chip you have selected.
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".

pierre
Posts: 6
Joined: Sun Jul 05, 2015 8:32 am

Re: Programming Uno32 with Pickit3 and MPLABX

Post by pierre » Sun May 08, 2016 1:09 pm

Thank you again. I was able to test my project on Uno32 today and, as you said, it was very straightforward. And with Pickit and Uno32 I've had no MPLAB UI freezes either.

Pierre

Post Reply