Skip to main content
Associate II
June 4, 2025
Solved

FreeRTOS vs ThreadX for STM32U575

  • June 4, 2025
  • 2 replies
  • 733 views

Hi!

I want to build a project for STM32U575. I want to use FreeRTOS, but it seems like there are some functions that won't work with it (like the SD). Is there any place where I can see what works or doesn't with each one? Or if  I can use FreeRTOS anyways and still use the SD?

 

Thanks

2 replies

Andrew Neil
Super User
June 4, 2025

Note that ST are moving back to FreeRTOS as their preferred RTOS:

https://community.st.com/t5/stm32-mcus-embedded-software/freertos-replacing-threadx-as-the-main-kernel-may-2025-stm32/m-p/802609

 


@ire wrote:

it seems like there are some functions that won't work with it (like the SD).


What makes you say that? It certainly is possible to have SD Cards working with FreeRTOS.

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
ireAuthor
Associate II
June 4, 2025

I say that because, when I try to configure my board on STM32Cube, FILEX(for using the SD) is avaiable if I choose ThreadX, but not with FreeRTOS.

ire_0-1749031023160.png

ire_1-1749031094349.png

 

 

Andrew Neil
Super User
June 4, 2025

That's not a limitation of SD itself.

That's because FileX is part of the ThreadX (formerly "Azure RTOS") suite;

For FreeRTOS, FatFS was used as the filesystem component:

AndrewNeil_0-1749031685098.png

https://wiki.st.com/stm32mcu/wiki/Introduction_to_Azure_RTOS_with_STM32

 

The New Direction is now to integrate FileX with FreeRTOS:

https://community.st.com/t5/stm32-mcus-embedded-software/freertos-replacing-threadx-as-the-main-kernel-may-2025-stm32/m-p/802616/highlight/true#M63432

But they haven't done that yet.

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
ireAuthor
Associate II
June 4, 2025

Ok, I'll try it. Thank you!