RA Flexible Software Package Documentation
Release v5.6.0
|
|
RTOS Context Management for RA MCUs.
Add this module to a secure TrustZone project to allow the associated non-secure project to use an RTOS. It is used by an RTOS port for RA MCUs (for example, the FreeRTOS Port (rm_freertos_port), which is automatically added to RA projects when FreeRTOS is selected during project creation).
Configuration | Options | Default | Description |
---|---|---|---|
Process Stack Slots | Value must be a non-negative integer greater than 0 | 8 | The maximum number of threads that can allocate a secure context. For applications using FreeRTOS, the Idle task requires 1 context as well. |
Process Stack Size | Value must be a non-negative multiple of 8 | 256 | The maximum stack size of all non-secure callable functions. |
This module does not use peripheral clocks.
This module does not use I/O pins.
When using an RTOS in a TrustZone project, Arm recommends keeping the RTOS in the non-secure project. Tasks may call non-secure callable functions if the task has allocated a secure context. To allocate a secure context, reference the documentation for the RTOS port used. For example, reference TrustZone Integration when FreeRTOS is used.
This module seals each process stack by placing the value 0xFEF5EDA5 above the stack top. For more information, refer to section 3.5 "Sealing a Stack" in "Secure software guidelines for ARMv8-M": https://developer.arm.com/documentation/100720/0300.