Skip to main content
ali_dehbidi
Associate III
December 26, 2018
Question

FatFs in STMCUBE

  • December 26, 2018
  • 2 replies
  • 477 views

Hi,

I have tested the FatFs on the STM32Cubemx,I have tested it on two different MCU's, STM32F401RC and STM32F429IGT6, it only works in the 1Bit mode on the STMF429 part, But the same settings on the STMCUBE and the STM32F401RCT6 part would not work, I think the SDIO driver have some bugs in it, do you have any Idea what might be wrong?

Best Regards

This topic has been closed for replies.

2 replies

Tesla DeLorean
Guru
December 26, 2018

Well the SDIO/SDMMC interface doesn't like signal skewing or ringing, so a 4-bit interface has sensitivity to equivalent path lengths, and termination.

I'd probably start by validating the hardware using the examples in the HAL libraries for an assortment of DISCO and EVAL series boards. Or working with known good hardware/software, and then move to ones of less known provenance.

STM32Cube_FW_F4_V1.21.0\Projects\STM324x9I_EVAL\Applications\FatFs\FatFs_uSD

I wouldn't waste my time with fighting CubeMX issues

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
ali_dehbidi
Associate III
December 27, 2018

Thanks, I have tesetd the exact example that you have mentioned, but in that example also the SD interface is set to 1Bit mode, do you have a 4 bit working example?