I try to connect stm32F103C to sdcard using the rSD library and get these errors:
Is it possible to modify the library to work with STM32 as well ?
Verifying...
C:\Program Files (x86)\Arduino\libraries\SD\src\utility\Sd2Card.cpp: In function 'void spiRec(uint8_t*, int)':
C:\Program Files (x86)\Arduino\libraries\SD\src\utility\Sd2Card.cpp:112:33: error: no matching function for call to 'SPIClass::transfer(uint8_t*&, int&)'
SDCARD_SPI.transfer(data, size);
^
C:\Program Files (x86)\Arduino\libraries\SD\src\utility\Sd2Card.cpp:112:33: note: candidate is:
In file included from C:\Program Files (x86)\Arduino\libraries\SD\src\utility\Sd2Card.cpp:31:0:
C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F1\libraries\SPI\src/SPI.h:291:11: note: uint8 SPIClass::transfer(uint8) const
uint8 transfer(uint8 data) const;
^
C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F1\libraries\SPI\src/SPI.h:291:11: note: candidate expects 1 argument, 2 provided
exit status 1
Is it possible to modify the library to work with STM32 as well ?