Introduction
This example shows a simple application, which setups the CPU and the underlying RTOS or no-RTOS environment on the supported SOC.
The example does the below
- Setup a timer with system tick of 2ms, setup MPU and cache (if available)
- Create a RTOS task (in RTOS example)
- Trigger a ISR and signal a semaphore from ISR to main task
- Show usage of clock delay
- Show usage of cache APIs
- Show usage of heap APIs
Supported Combinations
Parameter | Value |
CPU + OS | m4fss0-0 freertos |
Toolchain | ti-arm-clang |
Boards | xWRL6432-evm |
Example folder | examples/kernel/freertos/task_switch |
Using SDK with SysConfig
A GUI tool SysConfig is used to configure different modules and peripherals of the example. Using this tool, users can select and customize different modules and peripherals. The SysConfig tool will generate the code for initializing and configuring these modules. This configuration is saved to a file called example.syscfg for every example. To know more about how to use SDK with SysConfig, Visit this page
Using SDK with SysConfig
Steps to Run the Example
See Also
Driver Porting Layer (DPL)
Sample Output
Shown below is a sample output when the application is run,
[DPL] Hwi post ...
[DPL] Hwi post ... DONE !!!
[DPL] Sleep for 2 msecs ...
[DPL] Sleep ... DONE (Measured time = 2004 usecs, CPU cycles = 0 ) !!!
[DPL] Running cache operations ...
[DPL] Running cache operations ... DONE !!!
[DPL] Heap free size = 1984 bytes
[DPL] Allocated 1023 bytes @ 0x00409200, heap free size = 896 bytes
[DPL] Free'ed 1023 bytes @ 0x00409200, heap free size = 1984 bytes
All tests have passed!!