cancel
Showing results for 
Search instead for 
Did you mean: 

FATFS not working when if FreeRTOS is enabled

JBren.3
Associate

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

1 ACCEPTED SOLUTION

Accepted Solutions
JBren.3
Associate

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

Joel

View solution in original post

2 REPLIES 2
JBren.3
Associate

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

Joel

MBolo.1
Associate III

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