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 1ms, 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 | r5fss0-0 nortos |
r5fss0-0 freertos |
m4fss0-0 nortos |
m4fss0-0 freertos |
Toolchain | ti-arm-clang |
Board | am64x-evm |
Example folder | examples/kernel/dpl/hello_world/ |
Steps to Run the Example
See Also
Driver Porting Layer (DPL)
Sample Output
Shown below is a sample output when the application is run,
[HWI] Hwi post ...
[HWI] Hwi post ... DONE !!!
[CLOCK] Sleep at time 2611 us ...
[CLOCK] Wakeup at time 103441 us ... DONE !!!
[CACHE] Running cache operations ...
[CACHE] Running cache operations ... DONE !!!
[HEAP] Free size = 1984 bytes
[HEAP] Allocated 1023 bytes @ 0x7000ec80, free size = 896 bytes
[HEAP] Allocated 511 bytes @ 0x7000f0c0, free size = 320 bytes
[HEAP] Free'ed 1023 bytes @ 0x7000ec80, free size = 1408 bytes
[HEAP] Allocated 121 bytes @ 0x7000ec80, free size = 1216 bytes
[HEAP] Free'ed 511 bytes @ 0x7000f0c0, free size = 1792 bytes
[HEAP] Free'ed 121 bytes @ 0x7000ec80, free size = 1984 bytes
All tests have passed!!