2021-08-17 07:53 PM
HI,
I am using the STM32F411E-DISCO board.
and, I'm going to read the image from SDcard and deliver it to FT800 by SPI.
The problems that have occurred are as follows.
If I use SPI without SDIO, FT800 works normally.
If I only use SDIO, I can read and write on SDcard.
However, when I try to use both SDIO and SPI, f_mount returns FR_NOT_READY.
In this case, when only SPI is turned off on CubeMX, f_mount still returns FR_NOT_READY.
After the SDIO is turned off, f_mount returns 0.
I tested as follows.
SPI_1 returns f_mount NOT_READY, and SPI_3 returns FR_DISK_ERR.
Is there a way to solve these problems?
2021-08-17 09:55 PM
The STM32F411E-DISCO doesn't have a SD Card slot
How is any of this wired up and configured?
Some conflict related to the SPI and Card Detect switch on the card fixture?
Chip selects used?
Trying to run SD Card data transfers concurrently with SPI ones?
Instrument the DISKIO layer, understand what/how the SDIO peripheral is failing, what errors/status it is reporting.
Describe some of the implementational detail.
Review code in that context.
2021-08-17 11:06 PM
Thank you for your answer.
After posting the question, I keep checking the symptoms.
Forget all of the questions above... I think you might be a little confused.
I added the CubeMX pin setting as a photo.
It's not in the picture, but I added SDIO TX and RX as DMA.
I'll talk about symptoms again.
SPI has been set up, but it is not being used.
Before entering while(), there is a problem initializing f_mount inside the main(). ( in the code, line 147)
F_mount is returning FA_NOT_READY.
I don't think it's a HW problem because using SDIO for other projects works well.