@mdma,
Thanks for the explanation of the meaning off this error. I will not disturb you with simple path matters, but as far as I see the path contains: C:\particle\Toolchain\GCC-ARM\bin;
and there are all the compiler executables. I keep digging.
compliments on the improvements of Photon over Core to you and the team, OTA is even faster than DFU!
Sorry for the dumb question. Iām a little weary of all the maintenance and just want something to be easy. Where in Linux do I put my application? Add the usual single folder content to ./core-firmware/usr/src? Can it use a .ino or do I have to rename that file to application.cpp?
I think I figured it out. You do have to rename .ino to application.cpp. The stuff goes into firmware/user/src. And flash user-part.bin. Here are the details.
# process for project in ~/particle/Thermostat-Particle-Photon/myThermostat_Particle_DEV
# and device PhotonOBDHYK
cd ~/particle
cp myThermostat-Particle-Photon/myThermostat_Particle_DEV/* firmware/user/src
cp firmware/user/src/myThermostat.ino firmware/user/src/application.cpp
cd /home/davegutz/particle/firmware/main && make clean all PLATFORM=photon
cd ~/particle/firmware/build/target/user-part/platform-6-m
particle flash PhotonOBD9HYK user-part.bin
The version is a llittle old. To get this to compile I had to rollback my Particle.variable syntax:
Well Iām sure the Particle team is working hard on the Linux DEV tool which will make the following obsolete very soon, I hope (and thanks by the way).
Here is my toolchain to get setup in Ubuntu 14.04 (I create a folder called ~/particle to contain this stuff). I queried tool versions as I went so you can see just how old this is (made 12/30/2015).
cd /home/davegutz/particle/firmware/main && make clean all PLATFORM=photon
cd ~/particle/firmware/build/target/user-part/platform-6-m
cd ~/particle/firmware
particle setup
particle list
#THIS IS OK.
IT SIMPLY MEANS YOUR VIRTUAL BOX SETTINGS FOR USB ARE UNSET. THE PARTICLE CLI WILL STILL FIND THE PHOTON.
The following should now work
particle flash PhotonExp9HYK tinker
Now load your project
cd ~/particle
git clone git@github.com:davegutz/myThermostat-Particle-Photon.git
Note: Have to revert you Particle.variable statements from
Particle.variable("stat", statStr);
# to
Particle.variable("stat", statStr.c_str(), STRING);
Now the redo loop for a project:
# redo loop for project in ~/particle/Thermostat-Particle-Photon/myThermostat_Particle_DEV
# and device PhotonExp9HYK
cd ~/particle
cp myThermostat-Particle-Photon/myThermostat_Particle_DEV/* firmware/user/src
cp firmware/user/src/myThermostat.ino firmware/user/src/application.cpp
cd /home/davegutz/particle/firmware/main && make clean all PLATFORM=photon
cd ~/particle/firmware/build/target/user-part/platform-6-m
# put your photon into flash safe mode (flash purple)
particle flash PhotonExp9HYK user-part.bin
####Update from git
cd ~/particle/myThermostat-Particle-Photon
git pull