cancel
Showing results for 
Search instead for 
Did you mean: 

stm32f4+SDIO+FATfs+USBD

abhishek kr
Associate II
Posted on December 27, 2017 at 10:03

Hi,

I am using CubeMx v1.18 to generate the drivers for USB and SDIO.

The mass storage is detected on PC, but when write data the data is not written properly.

The same with read and write. After i delete the file it comes back again.

Right now i am not using FATfs.

Please guide me find the solution.

I have attached the .ioc file, Main.c and storage.if.c.

4 REPLIES 4
Dirk Vermaak
Associate II
Posted on December 27, 2017 at 16:17

We configured this a long time ago bit I do remember we had to up the Heap value in the Cube to make this all work. Basically, the diver ran out of allocatable memory.

It was a long time back and the driver has almost certainly changed since then.

Posted on December 27, 2017 at 18:12

I have increased the heap and stack size. It has no impact on the problem mentioned above.

abhishek kr
Associate II
Posted on December 29, 2017 at 12:22

The problem is in firmware versions 1.14 and 1.18.

I am not able initialize SDIO+FatFs using V1.14, It gives lot of error in BSP_SD_Driver.c. But i am able to work with SDIO+USBD using this firmware version.

Similarly,

I am not able to initialize SDIO+USBD using V1.18, But SDIO+FatFs Works great with this firmware.

Any solutions????

I need SDIO+USBD+FatFs

abhishek kr
Associate II
Posted on January 30, 2018 at 07:51

Even the examples from Version 1.19 does not work with STM32F469- disco Boards