This means it cannot find the compiler. You will need to setup your path to include the location of the ARM gcc tools. Once setup, typing
arm-none-eabi-gcc --version
should give you output like
arm-none-eabi-gcc (GNU Tools for ARM Embedded Processors) 4.8.4 20140725 (release) [ARM/embedded-4_8-branch revision 213147]
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
PS: You’ll want to be careful about changing the minimum cooling time - this is set to preserve the compressor in your fridge.
It would be better that you change the Kp, Ki, and Kd constants to better match your fridge with the fan rather than hacking the code. This will help avoid overshoots.
That’s good to hear. I would really like to have these min heat/cool constants configurable like the other settings. Questionable if this is possible on the arduino, but definitely can be done on the spark. This will also be needed for mashing support. cc: @Elco
I thought the compiler was sorted but running “arm-none-eabi-gcc --version” gets:
-bash: /home/pi/bin/gcc-arm-embedded/gcc-arm-none-eabi-4_9-2015q1/bin/arm-none-eabi-gcc: cannot execute binary file
I have checked the permissions and user and group can execute.
Ok so I should have used the Armhf version of arm-none-eabi-gcc which I have now installed after upgrading libmpfr4 to libmpfr4_3.1.2-3.
It nearly compiles now but stops at:
…/…/firmware/platform/spark/modules/Platform.cpp:5:27: fatal error: ymodem/ymodem.h: No such file or directory #include "ymodem/ymodem.h"
Not sure whether it should be there or got lost in the clone
Pretty close to a compile now having removed the include modem/ymodem.h line it nearly completes but now complains about the size.
/usr/bin/…/lib/gcc/arm-none-eabi/4.8.4/…/…/…/…/arm-none-eabi/bin/ld: …/…/firmware/platform/spark/target/brewpi.elf section .text' will not fit in regionFLASH’
/usr/bin/…/lib/gcc/arm-none-eabi/4.8.4/…/…/…/…/arm-none-eabi/bin/ld: region `FLASH’ overflowed by 25872 bytes
collect2: error: ld returned 1 exit status
…/build/module.mk:143: recipe for target ‘…/…/firmware/platform/spark/target/brewpi.elf’ failed
make[1]: *** […/…/firmware/platform/spark/target/brewpi.elf] Error 1
make[1]: Leaving directory '/home/brewpi/spark-firmware/main’
makefile:11: recipe for target ‘run_make’ failed
make: *** [run_make] Error 2
I have deleted the firmware directory and started from clean and the same result.
source path ../../firmware
using 0.2.10-0-g2312560 as build name
make[1]: Entering directory `~/prj/brewpi/spark-firmware/main'
In file included from ../../firmware/app/controller/DeviceManager.h:31:0,
from ../../firmware/app/controller/PiLink.h:25,
from ../../firmware/app/controller/Brewpi.cpp:32:
../../firmware/app/devices/OneWire/OneWire.h:2:20: fatal error: BrewPi.h: No such file or directory
#include "BrewPi.h"