Basically I’m duplicating the core-firmware and adding in libraries and editing just the application.cpp file.
I’d really prefer one copy of core-firmware to maintain and a dedicated location for libraries and applications (could use the Arduino terminology of sketches to help non programers)
So I’d like to see
core-common-lib
core-communication-lib
core-firmware
spark-examples
user-libraries (same structure as Arduino libraries) e.g. Code and example folders
user-sketches (with a folder per sketch)
unfortunately i’m not enough of a makefile wizard to build this out at this stage.
did you actually get it to build then? i keep getting this when i try, like its not finding /usr/include/stdlib.h
In file included from ../CC3000_Host_Driver/cc3000_common.c:46:0:
../CC3000_Host_Driver/cc3000_common.h:41:20: fatal error: stdlib.h: No such file or directory
#include <stdlib.h>
^
compilation terminated.
make[1]: *** [obj/CC3000_Host_Driver/cc3000_common.o] Error 1
make: *** [check_external_deps] Error 2
Yup i’ve basically followed the walkthrough on https://github.com/spark/core-firmware. I’ve set up the described environment on a couple of machines now with no problems. I’m on OS X.
seems newlib isn’t being found, adding -I/usr/include/newlib to CFLAGS gets me a bit further, but then it seems the debian packaged arm-none-eabi doesn’t include c++ support:
well c++ support has been enabled in the debian package now but it seems that the makefiles haven’t been tested on 64-bit linux with multilib as now i’m getting:
well not really solved, but i worked around the problem.
basically the debian packages are useless as even though they now include a c++ compiler they don’t include many libs.
so download [gcc-arm-none-eabi-4_8-2013q4-20131204-linux.tar.bz2][1], untar it and add its bin/ directory to your $PATH, then “make” will succeed. its not a great way of doing things but it works.