I have same error today with code that worked few days ago.
My binary was 77k.
I have UHD resolution and if I maximize Particle Dev window, I can see error:
Build didn’t produce binary Error: Command failed: /spark/compile_service/shared/workspace/6_photon_0.4.6_19_1/firmware/…
My code had: "Spark.variable("result", &resultstr, STRING);"
I changed it to "Spark.variable("result", resultstr, STRING);" and compile started to work!
Just to be prepared if some other “cryptic” messages pop up in future, due to the transition from Spark.IO to Particle.IO a while back the keyword Spark will be deprecated and changed over to Particle.
So try to already replace things like Spark.function() with Particle.function() - currently it should work both ways on the Core but I don’t think the old version still works on the Photon.
Hi,
I’m trying to run from Particle Dev, a software on the Photon, but I’m getting the “Build didn’t produce binary error”. How Can I fix it? The software is .ino extension.
One that we keep bumping into is the size of our binary. How many kb was the last binary you were able to compile? If your new binary is greater than 128kb you would get this error.
Another cause of “Build didn’t produce binary” with no error listed is that the directory containing the .ino file contains more than one .ino file. It doesn’t just build the file you have open, it builds all of the .cpp and .ino files in that directory so you can use libraries.
Thank you for your reply. In my project there a some different library, so I have multiple cpp and h file, with just one .ino file. I always get that problem...
I had this same problem today and after I chose a device, the error went away. For those with no compile problems perhaps this would help with your issue.
What version were you targeting?
AFAIK with more recent versions you should get an explicit warning/error when providing too long names.
If this wasn’t the case with the most recent version, we might have found a regression.
But I do get
In file included from ../wiring/inc/spark_wiring.h:48:0,
from ./inc/application.h:36,
from _inttest.cpp:2:
../wiring/inc/spark_wiring_cloud.h: In instantiation of 'static bool CloudClass::function(const T&, Types ...) [with T = char [14]; Types = {int (*)(String)}]':
_inttest.cpp:25:41: required from here
../wiring/inc/spark_wiring_cloud.h:188:9: error: static assertion failed:
In Particle.function, name must be less than 12 characters
Although it should actually be In Particle.function, name length must be equal or less than 12 characters
I’m also getting this error, using an brand new Electron 2G. When I click on the message, Particle-dev tells me “There were no compile errors.” My project has a .cpp and .h file in the project directory alongside my .ino file, which has a #include “mylib.h” at the top of it.
Using Particle-dev to comipe and generate a binary seems to work fine on a trivial stand alone .ino file in its own directory (i.e. with an empty setup and loop).
Are multi-file projects just not yet supported in Particle-dev? This documentation would lead me to believe it was…