I’ve been using the SparkDev IDE for my project with moderate success so far, but recently ran into some trouble trying to interface with my microSD card. I tried using several different SD card libraries, including SparkCore-SD library (https://github.com/technobly/SparkCore-SD), but have not been able to get any of them to work. When I try to run the example programs I get told that the compiler has either timed out or got an error (but it won’t say what the error is).
My approach so far has been to take all of the library files and put them into the same folder as my main .ino file. That doesn’t work, but when I read all of the forum posts about this library it seems that people are having no problem at all getting it working. Is there something I am missing that needs to be done in order to get the library to work?
Okay, here is a screenshot of my SparkDev window, I’ve highlighted the error messages with a red box. At the bottom it says “Compiler timed out or encountered an error”, but if I click on that then it says “There were no compile errors” at the top.
Not sure, but try to avoid extra long paths and don’t use blanks in your path.
You could also try building with CLI, maybe this way you might get more info about the reason for your problem.
What version of Spark Dev are you on?
I’m on 0.0.19 due to some issues of 0.0.20 with my Win8.1 tablet, and when building with a path containing a blank, nothing happens what-so-ever.
@TDeVries, there are multiple errors in the files where “application.h” is referred to as “Application.h”. Also other library files use the < > references instead of double quotes. You will need to go through all the files to fix those items and it should then compile.
@TDeVries, changing all the #include <Application.h> to #include “application.h” and changing the < > to " " on other #includes fixed the compile problem. The code was originally written for a local toolchain since it did not compile in the cloud so well. So much has changed since! I will chat with @BDub to discuss updating his repo.
Well, the good news is that it compiled as you said it would!
The bad news is that now I get an undefined error when trying to flash to the core. Also happens when trying to load any of my old programs that used to work.
Thanks BDub. Tried the new library and it also compiles nicely, although I’m still having problems with flashing to the core. Now even the factory reset won’t fix it. The firmware tries to load on to the Core but the lights never change to magenta.
I’m getting the same error in the IDE, but it compiles fine when I use the CLI to compile in the cloud. I’ve actually found that I prefer that workflow for two reasons:
I can compile, flash, and monitor serial all from one shell script.
Compile errors are shown in all their glory, instead of being truncated by the IDE