SD card in SDIO mode

It's all about the code!
Post Reply
Piter.W
Posts: 4
Joined: Tue May 04, 2021 7:57 pm
Github Username: Piter.W

SD card in SDIO mode

Post by Piter.W »

I am working with the STM32F407 board. Same as the link: https://github.com/mcauser/BLACK_F407VE. Is it possible to use an SD card in SDIO mode? (The board does not support SPI for SD CARD). Do you need to change anything in the FW? I found this link but it doesn't tell me much https://github.com/rusefi/rusefi/issues/683. Thank you.
mck1117
running engine in first post
running engine in first post
Posts: 1493
Joined: Mon Jan 30, 2017 2:05 am
Location: Seattle-ish

Re: SD card in SDIO mode

Post by mck1117 »

Yes, the firmware is compiled for either SDIO or SPI. You need to define EFI_SDC_DEVICE when compiling, and configure the pins to the correct alternate function in board.h.
Piter.W
Posts: 4
Joined: Tue May 04, 2021 7:57 pm
Github Username: Piter.W

Re: SD card in SDIO mode

Post by Piter.W »

Could you give me a example of code to configure pins in board.h file, please?
I'm novice in programming :roll:
dbh97
contributor
contributor
Posts: 84
Joined: Sat Jul 19, 2014 10:43 pm
Location: 67867
Github Username: chuckwagoncomputing
Slack: dbh97

Re: SD card in SDIO mode

Post by dbh97 »

http://www.cplusplus.com/ is a great source of tutorials for learning C++.
board.h contains preprocessor directives, so you should read the article on that so you have some idea what you're working with.
There are a lot of board.h files you can look at for examples. I'm not sure if any of them use SDIO.
mck1117
running engine in first post
running engine in first post
Posts: 1493
Joined: Mon Jan 30, 2017 2:05 am
Location: Seattle-ish

Re: SD card in SDIO mode

Post by mck1117 »

Post Reply