user65919: I am using STM32F103C8 and I am triing to compile a code with SDFat library. The problem is I need to use the second channel of the SPI1 (pins PB5,PB4,PB3, PA15):

I found out that is possible to use SDFat lib and include SPIClass inside its constructor. Then I could use this code:
SPIClass SPI_1(PB5,PB4,PB3, PA15);
SdFat sd(&SPI_1); 

The problem is this compliation error:
no matching function for call to 'SdFat::SdFat(SPIClass*)'

Do you have any idea how to solve this error or how to work with SD card on different pins?
Here is source code of this library:
https://github.com/greiman/SdFat/blob/master/src/SdFat.h


user65919: Ok, I found out that the sdFat library is not supported on stm32 bluepill (sd card HAL peripherals are not enabled), so I decided to use basic Arduino SD library (it uses SPI commands, not HAL).
Also I have to change pins (from SPI1_1 to SPI1_2) in variant.h and PeripheralPins.c files of bluepill board. - And finally it works (SPI1_2).

65919: <p>I am using STM32F103C8 and I am triing to compile a code with SDFat library. The problem is I need to use the second channel of the SPI1 (pins PB5,PB4,PB3, PA15):</p>
<p><a href="https://i.stack.imgur.com/OcNO1.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/OcNO1.jpg" alt="enter image description here" /></a></p>
<p>I found out that is possible to use SDFat lib and include SPIClass inside its constructor. Then I could use this code:</p>
<pre><code>SPIClass SPI_1(PB5,PB4,PB3, PA15);
SdFat sd(&amp;SPI_1); 
</code></pre>
<p>The problem is this compliation error:</p>
<pre><code>no matching function for call to 'SdFat::SdFat(SPIClass*)'
</code></pre>
<p>Do you have any idea how to solve this error or how to work with SD card on different pins?</p>
<p>Here is source code of this library:
<a href="https://github.com/greiman/SdFat/blob/master/src/SdFat.h" rel="nofollow noreferrer">https://github.com/greiman/SdFat/blob/master/src/SdFat.h</a></p>
<p><a href="https://i.stack.imgur.com/3mcwO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3mcwO.png" alt="enter image description here" /></a></p>
 65919: <p>Ok, I found out that the sdFat library is not supported on stm32 bluepill (sd card HAL peripherals are not enabled), so I decided to use basic Arduino SD library (it uses SPI commands, not HAL).</p>
<p>Also I have to change pins (from SPI1_1 to SPI1_2) in variant.h and PeripheralPins.c files of bluepill board. - And finally it works (SPI1_2).</p>
