Skip to main content
Graduate
February 21, 2025
Solved

POSIX support in FreeRTOS on STM32

  • February 21, 2025
  • 1 reply
  • 2238 views

Hello,
As far as I know,
STM32 does not support the POSIX abstraction layer for FreeRTOS.

That means I can not use functions like:

  • Interact with tasks through: 'pthread_create', 'pthread_join'..
  • Use POSIX glue elements like: 'pthread_mutex'...
  • Etc

If I am porting a big FreeRTOS project that is using POSIX to STM32:  what I need to do? Is there a way of achieving it painlessly?

Thanks,

Carles

    This topic has been closed for replies.
    Best answer by mƎALLEm

    Hello,

    I don't think POSIX-FreeRTOS is supported natively by STM32 but I think you need to do it yourself. See https://www.freertos.org/Documentation/03-Libraries/05-FreeRTOS-labs/03-FreeRTOS-plus-POSIX/00-FreeRTOS-Plus-POSIX

    https://github.com/FreeRTOS/Lab-Project-FreeRTOS-POSIX

    1 reply

    mƎALLEmAnswer
    Technical Moderator
    February 21, 2025

    Hello,

    I don't think POSIX-FreeRTOS is supported natively by STM32 but I think you need to do it yourself. See https://www.freertos.org/Documentation/03-Libraries/05-FreeRTOS-labs/03-FreeRTOS-plus-POSIX/00-FreeRTOS-Plus-POSIX

    https://github.com/FreeRTOS/Lab-Project-FreeRTOS-POSIX

    Graduate
    February 22, 2025

    Thanls @mƎALLEm ,

    I will try to use this FreeRTOS Lab Project and will see if it works (and then I will set it as 'Accept as Solution'.

    Many thanks!