2025-06-04 2:00 AM
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
Solved! Go to Solution.
2025-06-04 3:33 AM
It is certainly possible to use FatFS under FreeRTOS.
https://github.com/Bsm-B/Stm32-FatFs-FreeRTOS
There is also a FreeRTOS version called "FreeRTOS-Plus-FAT":
2025-06-04 2:09 AM
Note that ST are moving back to FreeRTOS as their preferred RTOS:
@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.
2025-06-04 2:58 AM
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.
2025-06-04 3:10 AM
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:
https://wiki.st.com/stm32mcu/wiki/Introduction_to_Azure_RTOS_with_STM32
The New Direction is now to integrate FileX with FreeRTOS:
But they haven't done that yet.
2025-06-04 3:20 AM
Sure, but I tried to put Fatfs in my project (from another proyect because I can't integrate it with STM32Cube) and I was getting a lot of errors like undefined variables from the libraries that I couldn't solve, so I tried with FileX and it worked eaisily. From your point of view, it's better to try to integrate Fatfs from another place (i wish if you could tell me form where) or migrate from FreeRTOS to ThreadX?
2025-06-04 3:33 AM
It is certainly possible to use FatFS under FreeRTOS.
https://github.com/Bsm-B/Stm32-FatFs-FreeRTOS
There is also a FreeRTOS version called "FreeRTOS-Plus-FAT":
2025-06-04 3:39 AM
Ok, I'll try it. Thank you!