1.4 Basic ThreadX - PIC32CM SG00 Curiosity Pro Board

This example application blinks an LED to show the Eclipse ThreadX threads that are running in non-secure mode and to indicate status.

Description

This demonstration creates a thread which toggle an LED for every 500 ms.

Downloading and Building the Application

To clone or download this application from Github, go to the main page of this repository and then click Clone button to clone this repository or download as zip file.

Path of the application within the repository is as shown below:

TypePath
Project groupapps/threadx/basic_threadx/pic32cm_sg00/pic32cm_sg00/pic32cm_sg00_cprogroup
Secure Projectapps/threadx/basic_threadx/pic32cm_sg00/pic32cm_sg00_secure/pic32cm_sg00_cpro_secure.X
Non-Secure Projectapps/threadx/basic_threadx/pic32cm_sg00/pic32cm_sg00/pic32cm_sg00_cpro.X

To build the application, refer to the following table and open the project using its IDE.

Project NameDescription
pic32cm_sg00_cpro.X and pic32cm_sg00_cpro_secure.XMPLABX project for PIC32CM SG00 Curiosity Pro Board

Setting Up the Hardware

The following table shows the target hardware for the application projects.

Project NameDescription
pic32cm_sg00_cpro.X and pic32cm_sg00_cpro_secure.XPIC32CM SG00 Curiosity Pro Board

Setting Up PIC32CM SG00 Curiosity Pro Board

  • Connect the Debug USB port on the board to the computer using a micro USB cable.

Running the Application

  1. Build and program the application using MPLAB X IDE.
  2. Observe the LED toggles at every 500 ms.
Refer to the following table for LED name: