Uploaded image for project: 'Embedded Software & Tools'
  1. Embedded Software & Tools
  2. EXT_EP-10545

Reduce FreeRTOS configMINIMAL_STACK_SIZE and configTIMER_TASK_STACK_DEPTH

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Implemented
    • Icon: Medium Medium
    • TI Device Drivers
    • TIDRIVERS-5025
    • TIDRIVERS_5_50_02
    • TIDRIVERS_5_70_00
    • Hide
      CC32xx
      CC13x1
      CC26x1
      CC13x2
      CC26x2
      CC13x2x7
      CC26x2x7
      CC13x4
      CC26x3
      CC26x4
      CC23x0
      Show
      CC32xx CC13x1 CC26x1 CC13x2 CC26x2 CC13x2x7 CC26x2x7 CC13x4 CC26x3 CC26x4 CC23x0

      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.

       

            syncuser TI User
            syncuser TI User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: