Just about to purchase a Spark Core but am interested in knowing whether it can be programmed entirely offline (i.e. from the Spark CLI). The tutorials show offline compilation with Spark but during the compilation it seems as though the CLI fetches a ‘base’ image from the Spark website. This is shown below:
@ibebbs, the Spark CLI uses the Spark Cloud’s compile server farm so it is not truly offline. When you compile an application, the final .bin file is comprised of the base core-firmware and the user program. The .bin file you see being “grabbed” from the Cloud compile servers is that final file being downloaded to your PC.
For truly offline compiling you need to create a local toolchain and clone the core firmware repos onto your PC. You can follow the instructions on the core-firmware github repo here.
i’ve got some 0.8 builds of dfu-util here and of course git and make etc. you can get via your distro’s package manager e.g: apt-get install git-core build-essential on debian or for fedora yum install git make
the gcc-arm-none-eabi page isn’t very user-friendly, so basically you need to get this file, untar it and add the bin subdirectory to your $PATH.
basically don’t install dfu-util or gcc-arm-none-eabi from the debian/ubuntu repo’s they’re hideously old and broken.
Are you using a 32 bit linux distro? I’m having trouble with the version of gcc-arm-none-eabi that I’ve downloaded, I think it’s because I’m running 64 bit debian.