Skip to content

FreeRTOS OS abstraction maximum stack size #3

@jasr93

Description

@jasr93

I have verified that there is a maximum possible task stack size of 64KB as a result of casting the thread_def->stacksize variable as uint16_t in file fsl_os_abstraction_free_rtos.c

line 386: (uint32_t)((uint16_t)thread_def->stacksize / sizeof(portSTACK_TYPE)), /* task stack size /
line 403: (configSTACK_DEPTH_TYPE)((uint16_t)thread_def->stacksize / sizeof(portSTACK_TYPE)), /
task stack size */

Sometimes a stack size larger than 64KB is required, so it is advisable to remove that casting

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions