-->
Page 1 of 3

SD library 1.0.9 and 1.1.0 causing errors

PostPosted: Sat Dec 17, 2016 10:14 pm
by rudy
I did an update through the library manager. I had been using SD library 1.0.8 and it was working. The update manager showed that 1.1.0 was available so I installed it. No joy after that. I was getting errors. I then deleted 1.1.0 and tried 1.0.9 and I also had errors. (below)

I am using Arduino 1.6.12 and I using 2.3.0 with a file updated for faster WiFi download speed, I think just a buffer size change. The errors below are from compiling the example SDWebServer.ino sketch. No changes to it, exactly as it comes.

Has anyone else had any problems?

Code: Select allArduino: 1.6.12 (Windows 10), Board: "Generic ESP8266 Module, 160 MHz, 40MHz, QIO, 115200, 4M (3M SPIFFS), ck, Disabled, None"

In file included from C:\Users\Rudy\Documents\Arduino\libraries\SD\src/utility/Sd2Card.h:26:0,

                 from C:\Users\Rudy\Documents\Arduino\libraries\SD\src/utility/SdFat.h:29,

                 from C:\Users\Rudy\Documents\Arduino\libraries\SD\src/SD.h:20,

                 from C:\Users\Rudy\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WebServer\examples\SDWebServer\SDWebServer.ino:35:

C:\Users\Rudy\Documents\Arduino\libraries\SD\src/utility/Sd2PinMap.h:510:2: error: #error Architecture or board not supported.

 #error Architecture or board not supported.

  ^

Multiple libraries were found for "SD.h"
 Used: C:\Users\Rudy\Documents\Arduino\libraries\SD
 Not used: C:\Users\Rudy\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\SD
 Not used: C:\Program Files (x86)\Arduino\libraries\SD
exit status 1
Error compiling for board Generic ESP8266 Module.

Re: SD library 1.0.9 and 2.1.0 causing errors

PostPosted: Sun Dec 18, 2016 5:44 am
by erhardd
Hi,rudi!
Add this in Sd2PinMap.h:
line20:
#if defined(__arm__) || defined(__XTENSA__) || defined(ESP32) // Arduino Due Board follows
;)

Re: SD library 1.0.9 and 2.1.0 causing errors

PostPosted: Sun Dec 18, 2016 9:06 am
by rudy
I updated to 1.1.0 and then did the change. Now the error is the following.


Arduino: 1.6.12 (Windows 10), Board: "Generic ESP8266 Module, 160 MHz, 40MHz, QIO, 115200, 4M (3M SPIFFS), ck, Disabled, None"

C:\Users\Rudy\Documents\Arduino\libraries\SD\src\utility\Sd2Card.cpp: In function 'void spiRec(uint8_t*, int)':

C:\Users\Rudy\Documents\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:\Users\Rudy\Documents\Arduino\libraries\SD\src\utility\Sd2Card.cpp:112:33: note: candidate is:

In file included from C:\Users\Rudy\Documents\Arduino\libraries\SD\src\utility\Sd2Card.cpp:31:0:

C:\Users\Rudy\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\SPI/SPI.h:64:11: note: uint8_t SPIClass::transfer(uint8_t)

uint8_t transfer(uint8_t data);

^

C:\Users\Rudy\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\SPI/SPI.h:64:11: note: candidate expects 1 argument, 2 provided

Multiple libraries were found for "SD.h"
Used: C:\Users\Rudy\Documents\Arduino\libraries\SD
Not used: C:\Users\Rudy\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\SD
Not used: C:\Program Files (x86)\Arduino\libraries\SD
exit status 1
Error compiling for board Generic ESP8266 Module.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Re: SD library 1.0.9 and 2.1.0 causing errors

PostPosted: Sun Dec 18, 2016 9:45 am
by rudy
I looked at SPIClass Class Reference http://links2004.github.io/Arduino/da/d ... 341716dd3c
and there is no matching function just as the compiler says.

error: no matching function for call to 'SPIClass::transfer(uint8_t*&, int&)'