Directions to Load Files to PIC32 with HID Bootloader

From Mech
Revision as of 16:23, 9 July 2009 by Andrew Long (talk | contribs)
Jump to navigationJump to search

On UBW32, simultaneously hold down and release the 'reset' and 'prg' buttons. LED 2 and LED 3 will turn on and USB LED and LED 1 will flash. This means the board is in bootload mode.

While in bootload mode, open the HID Bootloader. It should say 'Device attached.' if in bootload mode.

Click on the 'Open Hex File' and locate the desired HEX file.

Click on Program/Verify.

It will say:

  • Erase Started (no status update until complete, may take several seconds)
  • Erase Complete
  • Programming Started
  • Programming Complete
  • Verify Running
  • Erase / Program / Verify Completed Successfully

Occasionally, the bootloader application will get stuck in the 'Verify Running' section. The application uses 95-100% of the CPU. The only solution I have discovered is to manually terminate the bootloader using the task manager. Fortunately, the program has already been downloaded to the PIC.

Click on Reset Device. The program should be running on the PIC.