Skip to main content
JBren.3
Associate
November 14, 2021
Solved

FATFS not working when if FreeRTOS is enabled

  • November 14, 2021
  • 2 replies
  • 1220 views

Hello, I've a STM32 NUCLEO board (STM32F446RETx) with an SD card board connected to it.

Im using:

  • STM32CubeIDE Version: 1.7.0 Build: 10852_20210715_0634 (UTC)
  • STMicroelectronics STM32CubeMX 6.3.0.202107141111 com.st.stm32cube.common.mx
  • STM32CubeF4 Firmware Package V1.26.0 / 12-February-2021

SDIO peripheral has been configured properly (DMA for both RX and TX).

I'm executing the following code:

When executed, this code works well and generate both the directory and the file on the SD card as long as FreeRTOS is disable.

If FreeRTOS is enabled " if(f_mount(&fileSystem, "/", 1) == FR_OK)" always fails.

Any known reason for this ? Is there anything that must be done (FreRTOS or FATFS configuration) to make these two modules coexisting ?

Thanks, Joel

This topic has been closed for replies.
Best answer by JBren.3

Sorry false alarm... it was just a stack size problem.

Joel

2 replies

JBren.3
JBren.3AuthorBest answer
Associate
November 15, 2021

Sorry false alarm... it was just a stack size problem.

Joel

MBolo.1
Associate III
December 5, 2021

Hi, I have the same problem on an STM32 F446VET, what was your solution? My minimum Stack size is 1000.