CHAPTER 7: AVAILABLE DEMO SOFTWARE
There are two example projects available for the board. A simple blinking LED demo and a more
complext demo that demostrates a number of features.
7.1 BLINKING LED MPLABX DEMO
This is the most basic example. It requires just MPLABX. Build info (tested with):
Board: PIC32-HMZ144 rev. B
IDE: MPLABX 3.40
Compiler: XC32 1.42
Programmer: PIC-Kit3
7.2 FULL HARMONY DEMO
This example them is more complex and uses the Harmony framework. This example demonstrates
several features of the board: LED, Button, UART, RTC, SD card, USB. The demo project should
be downloaded from the official product page of PIC32-HMZ144.
Build info (tested with):
Integrated development environment:
MPLABX v3.15
Compiler:
XC32 v1.40
Harmony framework:
v1.06.01
You can either build the project and program the board with MPLABX IDE, or use MPIPE and the
prebuilt file (PIC32-HMZ144_v2.hex). It is recommended to use the same compiler if you decide to
compile the project!
If you want to follow the messages on the console you need to use a USB ↔ serial cable (like
Olimex USB-SERIAL-CABLE-F or MOD-USB-RS232) to the UART pins of the UEXT (pin 3 is
TX, pin 4 is RX). In order to switch between the different demos push the button.
Upon reset a fast external clock test will be done to ensure that the clock is OK. After that SD card
demo would start start. It will read a file on the SD card with the name:
"FILE_TOO_LONG_NAME_EXAMPLE_123.JPG" (make sure you have such file in the card)
The program would make a copy of that file in a sub-directory named "Dir1". The generated
directory and file must not exist prior to the software test (otherwise you will receive an error).
IMPORTANT NOTE: Microchip Harmony Configurator requires write protect pin but on PIC32-
HMZ144 board there is no such pin; the one selected by default is used (PORTF1). Since we can't
set it to low level, in order to make SD card demo work properly, RF1 should be set as output in
low level! If you decide to change it make sure that the new WP pin is also low!
After the SD card demo is over you can see LED blinking with 1 Hz frequency controlled by the
RTC oscillator.
Then the USB demo gets started – the board would initialize as an USB device (mouse). When you
Page 22 of 26