I wonder if someone can give me some guidance on a local build issue?
It's the old breathing magenta (safe mode) issue but I have followed https://github.com/spark/firmware/blob/develop/docs/build.md in detail and looked at the common issues around this (normally due to mismatch between system and app firmware versions) but no solution yet.
To keep it simple, I have checked out the latest develop branch (as I wish to test against 0.4.5 changes). Here are the steps I have taken:
Switched to develop (or latest)
Pulled latest files for develop branch
Set environment variable PARTICLE_DEVELOP=1
[dfu mode set on Photon]
cd ~/firmware/modules
make PLATFORM=photon clean all program-dfu
[dfu mode set on Photon]
cd ../main
make PLATFORM=photon APP=blank program-dfu
[Photon connects WIFI, connects to Particle, sends normal online message then I get breathing magenta]
So, if my understanding is correct, the Photon is now running the latest dev system (part1/2) and the blank app compiled with the same source version as per docs.
After the above, If I build 'blank' app using particle compile photon ... and push the bin using dfu-util to the Photon, all works fine (i.e. does not enter safe mode after checking in to Particle Cloud).
Following may be useful:
$ arm-none-eabi-gcc -v
Using built-in specs.
COLLECT_GCC=arm-none-eabi-gcc
COLLECT_LTO_WRAPPER=/opt/crosscompiler/gcc-arm-none-eabi-4_9-2015q2/bin/../lib/gcc/arm-none-eabi/4.9.3/lto-wrapper
Target: arm-none-eabi
Configured with: /home/build/work/GCC-4-9-build/src/gcc/configure --target=arm-none-eabi --prefix=/home/build/work/GCC-4-9-build/install-native --libexecdir=/home/build/work/GCC-4-9-build/install-native/lib --infodir=/home/build/work/GCC-4-9-build/install-native/share/doc/gcc-arm-none-eabi/info --mandir=/home/build/work/GCC-4-9-build/install-native/share/doc/gcc-arm-none-eabi/man --htmldir=/home/build/work/GCC-4-9-build/install-native/share/doc/gcc-arm-none-eabi/html --pdfdir=/home/build/work/GCC-4-9-build/install-native/share/doc/gcc-arm-none-eabi/pdf --enable-languages=c,c++ --enable-plugins --disable-decimal-float --disable-libffi --disable-libgomp --disable-libmudflap --disable-libquadmath --disable-libssp --disable-libstdcxx-pch --disable-nls --disable-shared --disable-threads --disable-tls --with-gnu-as --with-gnu-ld --with-newlib --with-headers=yes --with-python-dir=share/gcc-arm-none-eabi --with-sysroot=/home/build/work/GCC-4-9-build/install-native/arm-none-eabi --build=i686-linux-gnu --host=i686-linux-gnu --with-gmp=/home/build/work/GCC-4-9-build/build-native/host-libs/usr --with-mpfr=/home/build/work/GCC-4-9-build/build-native/host-libs/usr --with-mpc=/home/build/work/GCC-4-9-build/build-native/host-libs/usr --with-isl=/home/build/work/GCC-4-9-build/build-native/host-libs/usr --with-cloog=/home/build/work/GCC-4-9-build/build-native/host-libs/usr --with-libelf=/home/build/work/GCC-4-9-build/build-native/host-libs/usr --with-host-libstdcxx='-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic -lm' --with-pkgversion='GNU Tools for ARM Embedded Processors' --with-multilib-list=armv6-m,armv7-m,armv7e-m,cortex-m7,armv7-r
Thread model: single
gcc version 4.9.3 20150529 (release) [ARM/embedded-4_9-branch revision 224288] (GNU Tools for ARM Embedded Processors)
Output of 's' command from serial port (is this documented) - this after the local compile and NOT after the cloud compile of blank:
{"p":6,"m":[{"s":16384,"l":"m","vc":30,"vv":30,"f":"b","n":"0","v":4,"d":},{"s":262144,"l":"m","vc":30,"vv":28,"f":"s","n":"1","v":6,"d":},{"s":262144,"l":"m","vc":30,"vv":28,"f":"s","n":"2","v":6,"d":[{"f":"s","n":"1","v":6,"":""}]},{"s":131072,"l":"m","vc":30,"vv":28,"u":"EA5B50955411ED8A0231EBF467D3BF28909D8EDE1F5EDFE94E17478A74395128","f":"u","n":"1","v":3,"d":[{"f":"s","n":"2","v":6,"":""}]},{"s":131072,"l":"f","vc":30,"vv":30,"u":"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF","f":"u","n":"1","v":3,"d":[{"f":"s","n":"2","v":5,"_":""}]}]}
That FFFFF... looks a bit suspicious I have to say
Oh, this is on Debian 7, not Ubuntu.
If you need anything else regarding environment please shout.
Many thanks