Difference between revisions of "**OBSOLETE** Getting Started with PIC32 and UBW32"
Andrew Long (talk | contribs) (→MPLAB) |
Andrew Long (talk | contribs) (→MPLAB) |
||
Line 37: | Line 37: | ||
MPLAB is the software used for editing, compiling, debugging code. This software creates the HEX files to download to the PIC. |
MPLAB is the software used for editing, compiling, debugging code. This software creates the HEX files to download to the PIC. |
||
MPLAB can be downloaded free from Microchip |
MPLAB can be downloaded free from Microchip [http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&dDocName=en019469&redirects=mplab | here]. |
||
= Linker File = |
= Linker File = |
Revision as of 16:31, 9 July 2009
Follow these steps to get the UBW32 started.
Driver for UBW32
Download the driver to your computer from here.
Plug a miniUSB cord into the UBW32 and into the computer.
The New Hardware Wizard should appear. The driver is for a COM PORT. Complete wizard and select driver you downloaded.
The UBW32 should now communicate with the computer.
Open a terminal (I used HyperTerminal) and type 'v'. The Firmware version should appear.
Bootloader
An advantage of the UBW32 is that a bootloader has already been installed. This means you do not need to a programmer to put new programs on the PIC32.
The HID bootloader v2.4 executable can be downloaded here.
This bootloader is used to put HEX files on the PIC32.
NOTE: occassionally, the bootloader will get stuck verifying that the program is running. (There must be a bug in the bootloader application code) It will take 90-100% of CPU. End task manually with the task manager if this happens.
Firmware
There is already firmware installed on the PIC32. This firmware should be updated.
The HEX for Firmware version 1.1 can be downloaded here.
The Files for the Firmware can be downloaded here. It is not necessary to download these files unless you want to modify the Firmware. It is NOT recommended to modify the firmware.
Using the HEX downloaded above, use directions here to download the hex with the bootloader to the PIC.
MPLAB
MPLAB is the software used for editing, compiling, debugging code. This software creates the HEX files to download to the PIC.
MPLAB can be downloaded free from Microchip | here.