The PPA appears not to include an appropriate build for Ubuntu 13.10, however 3 potentially relevant packages are already part of the archive:
gcc-arm-linux-androideabi - cross toolchain and binutils for Android/Bionic on ARM
gcc-arm-linux-gnueabi - The GNU C compiler for armel architecture
gcc-arm-linux-gnueabihf - The GNU C compiler for armhf architecture
Are any of these appropriate for rebuilding the Spark Core firmware?
My intention is to incorporate pulseIn() so I can use an existing sketch for a Shinyei dust sensor. Alternative approaches welcome, in particular any that donāt require rebuilding the firmware.
@timb has a beta version of pulseIn() working that you can find in this thread:
Since this was created, the Spark cloud connection has been modified to take advantage of any delay() calls that you have. I donāt think this version of pulseIn() takes that into account yet.
Iām sorry if Iām being thick, but I really donāt understand what youāre suggesting. How do I use the Web IDE to deliver timbās pulseIn() code to the device?
So you can simply copy the pulseIn() code and paste in the Web IDE. The Web IDE also allows the creation of .h and .cpp files for users with more libraries to manage
Sorry I missed that you had already seen Timās code. Delay is relevant in that a more cloud-friendly implementation of pulseIn() would use interrupts and not block the cloud connection.
The ābuildā button you linked to is the web-based IDE where you can compile and download to your core over-the-air. You can cut-and-paste Timās code into your program their and be done in minutes.
Are you looking for instructions on doing a local build even though you donāt need to? Those are here:
I am finding the need to deal with a Web IDE uncomfortable so would like to avoid it where possible, but am happy to make use of it to get over the current hump. It wasnāt until Kennethās message above that I realised that C++ and wiring code could be mixed in the source file so, setting aside that I donāt wish to include Spark Cloud in the first place, yes, this looks workable.
My initial question was about the instructions that you refer to; they just say GCC for ARM, they donāt specify which architecture (armel or armhf).
The next piece of awesomeness is clearly outside of Sparkās control, but I didnāt know about it until just now. After failing to connect to WiFi using the app, I switched to USB and:
** Even though the CC3000 supposedly supports WEP,
** we at Spark have never seen it work.
** If you control the network, we recommend changing it to WPA2.
I can now add yet another WEP network where it doesnāt work I have another router lying around but itāll have to wait until morning.
I had the same issue with Ubuntu 13.10, I had to install it from 13.03 repo, here is how I did it:
sudo sh -c āecho ādeb Index of /terry.guo/gcc-arm-embedded/ubuntu raring mainā >/etc/apt/sources.list.d/terry_guo-gcc-arm-embedded-saucy.listā
sudo sh -c āecho ā# deb-src Index of /terry.guo/gcc-arm-embedded/ubuntu raring mainā >>/etc/apt/sources.list.d/terry_guo-gcc-arm-embedded-saucy.listā
sudo apt-get update
sudo apt-get -y --force-yes install gcc-arm-none-eabi