XMC4700 : MicroSD with FatFs connected in SPI mode

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
User18035
Level 1
Level 1
Hi, we're working on a project built around a XMC4700 with external RAM on EBU bus and need to use a microSD card as memory storage with FatFs.

The card works well if connected through SDMMC interface (and CMSIS-MCI driver), we're able to read and write files, but the EBU bus shares some pins (P4_0) so we need to move the SD on another port.

We're trying to use the microSd in spi mode on SPI5 (P4_7 MOSI ,P4_6 MISO ,P4_2 CLK ,P3_0 SS) but the fmount function returns always "fsmediaerror".

Any idea or working example?

Thank you,

Luca
0 Likes
1 Reply
User18035
Level 1
Level 1
We've solved the problem adding 10kohm pull-up resistors on DI, DO, CS and the unused pin of SD card when connected in SPI mode (DAT1 and DAT2).

Luca
0 Likes