Nov 17, 2019
08:57 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nov 17, 2019
08:57 PM
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
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
1 Reply
Nov 22, 2019
07:35 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nov 22, 2019
07:35 AM
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
Luca