You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use static FreeRTOS task creation for forte threads
Migrates CFreeRTOSThread to xTaskCreateStatic(), explicitly allocating stack memory (StackType_t array via new) and TCB (StaticTask_t via pvPortMalloc). This eliminates reliance on FreeRTOS's internal heap for task creation, improving determinism and avoiding heap fragmentation.
On systems with PSRAM (e.g. ESP32-S3), the stack can be placed in PSRAM while the TCB is guaranteed to remain in internal SRAM via pvPortMalloc(), which FreeRTOS requires. Internal SRAM is scarce; future extensions (OPC-UA for example) will require moving more data to the heap — controllers in the field will otherwise stop working once SRAM is exhausted.
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
0 commit comments