cancel
Showing results for 
Search instead for 
Did you mean: 

CubeMX V4.24 with FatFS R0.12c problem to work with SD card when FreeRTOS is present

Evgeniy Vasyliev
Associate III
Posted on February 21, 2018 at 14:08

I am trying to use the latest CubeMX V4.24 with FatFS R0.12c, I am using FreeRTOS in my project. The SD card is connected using SDIO 4-bits wide bus. The MCU is STM32F427. HAL driver is V1.19.

The problem is that f_mount function is never working. Seems that a response from queue never comes in function SD_read from sd_diskio.c file:

event = osMessageGet(SDQueueID, SD_TIMEOUT);

I was able to make f_mount work OK by applying suggestions described in this post, which refers to CubeMX V4.23:

https://community.st.com/0D50X00009XkWyLSAV

, however now creation of a file does not work.

Can you suggest anything?

P.S. I know that when there is no FreeRTOS present operation with SD card is working well as provided in examples of CubeMX.

#cubemx-v4.24 #fatfs-r0.12c #cubemx-v4.24-with-fatfs-r0.12c #freertos #hal-driver-v1.19
1 REPLY 1
Evgeniy Vasyliev
Associate III
Posted on February 23, 2018 at 10:57

The problem is solved due to help of

bardeenlai

.

Here is a link to this thread:

https://community.st.com/0D70X000006SvxGSAS