-
Enhancement
-
Resolution: Implemented
-
Medium
-
TI Device Drivers
-
TIDRIVERS-5025
-
TIDRIVERS_5_50_02
-
TIDRIVERS_5_70_00
-
The FreeRTOSConfig.h options configMINIMAL_STACK_SIZE and configTIMER_TASK_STACK_DEPTH are specified in words and not bytes. As a result, our default values are vastly overprovisioned. The idle task stack is currently 1kB and the daemon task stack is 2kB.
We should reduce those values down to:
#define configMINIMAL_STACK_SIZE ( ( unsigned short ) 128 )
#define configTIMER_TASK_STACK_DEPTH (configMINIMAL_STACK_SIZE)
That makes both the idle task stack and the timer (daemon) task stack 512 bytes in size.
That is enough to run the Power driver in the idle loop and minor functions in the daemon task.