I am using two CIs to test po-util’s building capabilities by building the Tinker firmware. However, when I use the “latest” branch of the Particle Firmware, I am getting build errors on Photon and P1.
It has something to do with SystemClass. View the full CI log here https://travis-ci.org/nrobinson2000/po-util/jobs/163895391#L1001
Here’s the full error for a Photon:
/usr/local/Cellar/gcc-arm-none-eabi/20150925/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/ld:linker_stm32f2xx_common.ld:114: warning: memory region `BACKUPSRAM' not declared
text data bss dec hex filename
13492 324 11144 24960 6180 ../build/target/bootloader/platform-6-lto/bootloader.elf
In file included from ./inc/application.h:51:0,
from /Users/travis/build/nrobinson2000/po-util/build-test/firmware/main.cpp:21:
/Users/travis/build/nrobinson2000/po-util/build-test/firmware/main.cpp: In constructor 'startup0::startup0()':
/Users/travis/build/nrobinson2000/po-util/build-test/firmware/main.cpp:34:16: error: 'class SystemClass' has no member named 'enable'
STARTUP(System.enable(SYSTEM_FLAG_WIFITESTER_OVER_SERIAL1));
^
../wiring/inc/spark_wiring_startup.h:27:37: note: in definition of macro 'STARTUP__'
struct name##id { name##id() { code; } }; static name##id __instance_##name##id;
^
../wiring/inc/spark_wiring_startup.h:21:23: note: in expansion of macro 'STARTUP_'
#define STARTUP(code) STARTUP_(startup, __COUNTER__, code)
^
/Users/travis/build/nrobinson2000/po-util/build-test/firmware/main.cpp:34:1: note: in expansion of macro 'STARTUP'
STARTUP(System.enable(SYSTEM_FLAG_WIFITESTER_OVER_SERIAL1));
^
/Users/travis/build/nrobinson2000/po-util/build-test/firmware/main.cpp:34:23: error: 'SYSTEM_FLAG_WIFITESTER_OVER_SERIAL1' was not declared in this scope
STARTUP(System.enable(SYSTEM_FLAG_WIFITESTER_OVER_SERIAL1));
^
../wiring/inc/spark_wiring_startup.h:27:37: note: in definition of macro 'STARTUP__'
struct name##id { name##id() { code; } }; static name##id __instance_##name##id;
^
../wiring/inc/spark_wiring_startup.h:21:23: note: in expansion of macro 'STARTUP_'
#define STARTUP(code) STARTUP_(startup, __COUNTER__, code)
^
/Users/travis/build/nrobinson2000/po-util/build-test/firmware/main.cpp:34:1: note: in expansion of macro 'STARTUP'
STARTUP(System.enable(SYSTEM_FLAG_WIFITESTER_OVER_SERIAL1));
^
make[3]: *** [../build/target/user/platform-6-m/firmware/main.o] Error 1
make[2]: *** [user] Error 2
make[1]: *** [modules/photon/user-part] Error 2
make: *** [main] Error 2