I'm trying to use the Sdfat library by greiman ( https://github.com/greiman/SdFat ) but I'm not able to compile it successfully.
I'm compiling the example "SdInfo.ino" from the example folder.
the error is
Code: Select all
C:\Users\LAPTOP\Documents\Arduino\libraries\SdFat\src\SpiDriver\SdSpiSTM32.cpp: In member function 'uint8_t SdSpiAltDriver::receive(uint8_t*, size_t)': C:\Users\LAPTOP\Documents\Arduino\libraries\SdFat\src\SpiDriver\SdSpiSTM32.cpp:78:44: error: void value not ignored as it ought to be return m_spi->dmaTransfer(nullptr, buf, n); ^ C:\Users\LAPTOP\Documents\Arduino\libraries\SdFat\src\SpiDriver\SdSpiSTM32.cpp:83:1: warning: control reaches end of non-void function [-Wreturn-type] } ^
BTW, I successfully compiled and tested the built-in SD library not the SDfat one.
Do you have any sugestion or work around on this or I just use the built-in sd library at the moment?
OS: Windows 10
IDE : Arduino IDE 1.8.9
Core : stevstrong core (https://github.com/stevstrong/Arduino_STM32)
Board settings: Generic STM32f407V series
USB Configuration: USB Serial (CDC)
Upload method : ST link (im using jlink to upload the bin file)