Difference between revisions of "**OBSOLETE** Getting Started with PIC32 and UBW32"
Andrew Long (talk | contribs) (→MPLAB) |
Andrew Long (talk | contribs) |
||
Line 39: | Line 39: | ||
MPLAB can be downloaded free from Microchip [http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&dDocName=en019469&redirects=mplab here]. |
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 = |
||
When creating new projects to download to the PIC. Make sure [[Media:procdefs.ld]] linker file is in the project folder. |
|||
This link warns that if this linker file is not in the project the bootloader may be hosed. |
|||
= Microchip Files = |
= Microchip Files = |
||
= Start Up Projects = |
= Start Up Projects = |
Revision as of 16:34, 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.
Linker File
When creating new projects to download to the PIC. Make sure Media:procdefs.ld linker file is in the project folder.
This link warns that if this linker file is not in the project the bootloader may be hosed.