SoftSPI.h: No such file or directory
Veryfing code using this library in Particle Build fails with this error:
SdFat/SdSpi.h:244:21: fatal error: SoftSPI.h: No such file or directory
#include "SoftSPI.h"
^
I too am seeing this in particle Library 2.0
Flash device failed. In file included from lib/SdFat/src/SdSpiCard.h:29:0, from lib/SdFat/src/SdFat.h:30, from /src/sd.cpp:1: lib/SdFat/src/SdSpi.h:244:21: fatal error: SoftSPI.h: No such file or directory #include "SoftSPI.h"
looks like the file might have been renamed to SoftSPIParticle.h
/home/User/Particle/community/libraries/[email protected]/src/SdFat/SoftSPIParticle.h /home/User/Particle/community/libraries/[email protected]/src/SoftSPIParticle.h
SoftSPI.h is for Arduino boards. Particle now defines the symbol ARDUINO so the include for SoftSPI.h is used.
I plan only limited support for SdFat on Particle so I will likely remove the Software SPI option.
The Particle build site is not working right now so I don't want to waste time.
Try editing SdSpi.h at about line 243 and change this:
#ifdef ARDUINO
#include "SoftSPI.h"
#elif defined(PLATFORM_ID) // Only defined if a Particle device
#include "SoftSPIParticle.h"
#endif // ARDUINO
to this:
#include "SoftSPIParticle.h"
I finally got the IDE to work and uploaded a mod that seems to fix the missing SoftSPI.h problem.