Oct 27, 2020
03:24 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Oct 27, 2020
03:24 AM
Hello,
I am having problems with a MicroSD Card on the XMC4500 Relax Kit.
I can not use the full SDMMC interface but instead I chose the SPI mode of the FATFS App.
The SPI signals are allocated to:
MISO P4.0 (SDMMC_DAT0)
MOSI P3.5 (SDMMC_CMD)
SCLK P3.6 (SDMMC_CLK)
SS P4.1 (SDMMC_DAT3)
I use the demo code of the FATFS App documentation.
This code passes
res = f_mount(&fs, "0:", 1);
without problems, but the next statement
res = f_mkdir("XMC4500");
returns with "FR_DISK_ERR"
The SDcard is OK, I tried various sizes, and various SPI Clock frequencies.
Any idea??
I am having problems with a MicroSD Card on the XMC4500 Relax Kit.
I can not use the full SDMMC interface but instead I chose the SPI mode of the FATFS App.
The SPI signals are allocated to:
MISO P4.0 (SDMMC_DAT0)
MOSI P3.5 (SDMMC_CMD)
SCLK P3.6 (SDMMC_CLK)
SS P4.1 (SDMMC_DAT3)
I use the demo code of the FATFS App documentation.
This code passes
res = f_mount(&fs, "0:", 1);
without problems, but the next statement
res = f_mkdir("XMC4500");
returns with "FR_DISK_ERR"
The SDcard is OK, I tried various sizes, and various SPI Clock frequencies.
Any idea??
6 Replies
Oct 28, 2020
02:13 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Oct 28, 2020
02:13 AM
Hi,
Which version of the APP are you using?
Have you tried enabling the delay?
Regards,
Jesus
Which version of the APP are you using?
Have you tried enabling the delay?
Regards,
Jesus
Oct 28, 2020
05:06 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Oct 28, 2020
05:06 AM
Hi Jesus,
thanks for the reply.
The GUI you posted is for the SDMMC_BLOCK in SD mode. I am using SPI mode!
By the way, If I use SD mode, everything works fine on the same hardware with the same SD card.
But unfortunately I can not use the SD mode in my final hardware so I have to use SPI mode.
Regards
Matthias
thanks for the reply.
The GUI you posted is for the SDMMC_BLOCK in SD mode. I am using SPI mode!
By the way, If I use SD mode, everything works fine on the same hardware with the same SD card.
But unfortunately I can not use the SD mode in my final hardware so I have to use SPI mode.
Regards
Matthias
Oct 28, 2020
05:08 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Oct 28, 2020
05:08 AM
... the versions:
FATFS: 4.0.26
SDMMC_BLOCK: 4.0.28
SPI_MASTER: 4.3.26
FATFS: 4.0.26
SDMMC_BLOCK: 4.0.28
SPI_MASTER: 4.3.26
Attachments are accessible only for community members.
Oct 30, 2020
07:06 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Oct 30, 2020
07:06 AM
Nov 03, 2020
04:31 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nov 03, 2020
04:31 AM
Hello Jesus,
that works fine for me too, but the SPI_MASTER App you are using is version 4.3.28, a version that is not available to the public as it seams.
The latest version I can find is 4.3.26
Regards
Matthias
that works fine for me too, but the SPI_MASTER App you are using is version 4.3.28, a version that is not available to the public as it seams.
The latest version I can find is 4.3.26
Regards
Matthias
Nov 03, 2020
11:17 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nov 03, 2020
11:17 AM
Hi,
The v3.2.28 is a fix for the baudrate limitation introduced in v3.2.26. There are no changes in the code. See https://www.infineonforums.com/threads/10701-New-SPI-Master-bugged
Regards,
Jesus
The v3.2.28 is a fix for the baudrate limitation introduced in v3.2.26. There are no changes in the code. See https://www.infineonforums.com/threads/10701-New-SPI-Master-bugged
Regards,
Jesus