cancel
Showing results for 
Search instead for 
Did you mean: 

CubeMX 4.12 F429+FreeTos+FatFS generates HAL_Delay(1) in HAL_SD

schelven
Associate II

Posted on December 18, 2015 at 00:34

Hi,Relates to CubeMX 4.12 Firmware Package 1.10.1As a newbie i guess that the code generated in STM32F4xx_hal_sd.c is not correct when using FreeRTOS.

HAL_Delay(1) is called from the function SD_PowerON(...)

This locks the system. I changed this to osDelay(1) and then it works.. Although mount errors exist after power up. A soft reset is needed to have the SD card mounted and functioningThanksUPDATE: Solution found:

<LINK NO LONGER ACTIVE>

2 REPLIES 2
Posted on December 23, 2015 at 18:42

Hi van_schelven.rob,

Great :)

You can also refer to the example under STM32Cube_FW_F4_V1.10.0\Projects\STM324x9I_EVAL\Applications\FatFs\FatFs_uSD_RTOS.

-Shahrzad-

schelven
Associate II
Posted on December 25, 2015 at 08:16

Thanks Shahrzad, thats a good source of information i didn't noticed yet.

Merry Christmas