With the release of system firmware 0.7 for production, I am attempting to migrate our firmware from targeting 0.6.2 to 0.7.0, and am having issues.
We use the local compiler + Eclipse setup as described by @rickkas7 in the FAQ: https://docs.particle.io/faq/particle-tools/local-build/photon/#building
The issue I’m seeing is that after updating my system firmware repo to 0.7, it doesn’t appear to compile most of my user application source. The built binary is ~4.6K in size, compared to ~91K with 0.6.2.
Our project directory structure is similar to the layout described in the FAQ -
- app - src - main.cpp - other files... - build.mk - system
We use the
APPDIR env variable to point to the
/app directory. The system folder is a git clone of the particle system firmware, checked out to a specific release branch. We are using arm compiler 5.3.1.
The only thing I’m doing to switch between 0.6.2 and 0.7.0 is going into my system firmware folder and doing a
git checkout release/v0.7.0. If I do that, it stops traversing my user application source and I get the small binary. If I go back and do a
git checkout release/0.6.2 I get the normal fully-working binary again.
I looked through the 0.7.0 changelogs and didn’t see anything that talked about changes to the compilation process - do I need to change anything for 0.7.0, perhaps my
I ran builds in both 0.6.2 and 0.7.0 with
make -d enabled and when it goes to build the
user-part it looks like both builds traverse my app’s
build.mk - but in 0.7.0 it basically just stops there, while in 0.6.2 after parsing the
build.mk it traverses to my entire app tree.
Thanks in advance for any help!