SD card problems "Writing to SD card failed"

01 Jun 2018

Hi, everyone. I essentially have a problem with the SD Card. I use a Nucleo L152RE in combination with a SunFunder Ethernet Shield W5100 (in which there is a slot for the SD card in which I've inserted a 8 GB SD card). I've found an SDFileSystem library with which the program is compiled with no errors. When I load the program on the Nucleo it is shown on the terminal the following: "Writing to SD card failed!". What is the problem linked with? Any suggestion?

03 Jun 2018

Check that the SPI pin assignments for the SD Card on the SunFounder shield match the ones that you are using when you call the SDFileSystem library.