[OpenTRV-dev] Compiling the Arduino sketch for the CONFIG_REV11_SECURE_SENSOR fails

Damon Hart-Davis dhd at exnet.com
Mon Nov 7 08:05:35 GMT 2016


Hi,

Have you uncommented the appropriate single line in V0p2_Generic_Config.h eg:

#define CONFIG_REV11_SECURE_SENSOR

and commented out the #define CONFIG_… lines that you don’t need?

Basic question, sorry, but just want to make sure that we’re starting off on the right foot!

Rgds

Damon

> On 6 Nov 2016, at 22:32, Mark Hanford <mark at hanfordonline.co.uk> wrote:
> 
> Hi folks.
> 
> I'm trying to compile and upload the Arduino sketch on tag TRV1.5-rv1-gE-20160919, and I'm having a spot of bother when I try to build for the CONFIG_REV11_SECURE_SENSOR.
> 
> Ubuntu 16.04
> Arduino 1.6.12
> OTAESGCM from tag TRV1.5-rv1-gE-20160919
> OTRadioLink from tag TRV1.5-rv1-gE-20160919
> OpenTRV-Arduino-V0p2 from tag TRV1.5-rv1-gE-20160919
> 
> The error I get when verifying the code in the IDE is "Board revision not defined":
> 
> Generating function prototypes...
> "/opt/arduino-1.6.12/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=1000000L -DARDUINO=10612 -DARDUINO_AVR_V0P2 -DARDUINO_ARCH_AVR   "-I/opt/arduino-1.6.12/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.6.12/hardware/arduino/avr/variants/standard" "-I/home/mark/Arduino/libraries/OTRadioLink" "-I/opt/arduino-1.6.12/hardware/arduino/avr/libraries/SPI/src" "-I/opt/arduino-1.6.12/hardware/arduino/avr/libraries/Wire/src" "/tmp/arduino_build_396587/sketch/V0p2_Main.ino.cpp" -o "/tmp/arduino_build_396587/preproc/ctags_target_for_gcc_minus_e.cpp"
> In file included from /tmp/arduino_build_396587/sketch/V0p2_Main.h:49:0,
>                 from /home/mark/opentvr/OpenTRV-Arduino-V0p2/Arduino/V0p2_Main/V0p2_Main.ino:37:
> /home/mark/Arduino/libraries/OTRadioLink/OTV0p2_Board_IO_Config.h:46:2: error: #error Board revision not defined.
> #error Board revision not defined.
>  ^
> Using library OTRadioLink in folder: /home/mark/Arduino/libraries/OTRadioLink (legacy)
> Using library SPI at version 1.0 in folder: /opt/arduino-1.6.12/hardware/arduino/avr/libraries/SPI 
> Using library Wire at version 1.0 in folder: /opt/arduino-1.6.12/hardware/arduino/avr/libraries/Wire 
> exit status 1
> Error compiling for board OpenTRV V0p2.
> 
> 
> thanks,
> 
> Mark H
> _______________________________________________
> OpenTRV-dev mailing list
> OpenTRV-dev at lists.opentrv.org.uk
> http://lists.opentrv.org.uk/listinfo/opentrv-dev



More information about the OpenTRV-dev mailing list