greiman / SdFat

Arduino FAT16/FAT32 exFAT Library
MIT License
1.08k stars 510 forks source link

SDFAT compatibility with Arduino Giga #457

Open MoveElectricMobility opened 11 months ago

MoveElectricMobility commented 11 months ago

This library appears to not be compatible with the Arduino Giga Microcontroller based on the STM32H747 MCU. If you guys could add compatibility with this popular board it would be greatly appreciated! :)

greiman commented 11 months ago

People are making SdFat work with Giga. See the Arduino Giga forum.

I don't have a Giga and am too busy to try helping people. It should work on SPI, the first port, without modification.

To use the second port, SPI1, it should be possible by adding a SPI1 argument to SpiConfig like this:

#define SPI_CLOCK SD_SCK_MHZ(50)
#define SD_CONFIG SdSpiConfig(SD_CS_PIN, DEDICATED_SPI, SPI_CLOCK, &SPI1)

Looks like this post has the SPI1 method above.