Basic ThreadX
This example application blinks an LED to show the Azure RTOS ThreadX threads that are running and to indicate status
Description
This demonstration creates a task which toggle an LED for every 500ms.
Downloading and building the application
To clone or download these applications from Github, go to the main page of this repository and then click Clone button to clone this repository or download as zip file. This content can also be downloaded using content manager by following these instructions
Path of the application within the repository is apps/threadx/basic_threadx/firmware/
To build the application, refer to the following table and open the project using its IDE.
Azure RTOS ThreadX Application
Project Name | Description |
---|---|
sam_c21n_xpro.X | MPLABX Project for SAM C21N Xplained Pro Evaluation Kit |
Setting up SAM C21N Xplained Pro Evaluation Kit
- Connect the Debug USB port on the board to the computer using a micro USB cable
Running the Application
- Build and program the application using the MPLAB X IDE
- The LED indicates the success or failure.
- The LED toggles on success i.e. for every 500 ms.
Refer to the following table for LED name:
Board | LED Name |
---|---|
SAM C21N Xplained Pro Evaluation Kit | LED0 |