[OpenTRV-dev] Compiling the Arduino sketch for the CONFIG_REV11_SECURE_SENSOR fails
Mark Hanford
mark at hanfordonline.co.uk
Mon Nov 7 22:55:24 GMT 2016
I just checked that it's not me being daft, and I'm pretty certain it's
correct. I just build and uploaded a CONFIG_REV11_SECURE_STATSHUB firmware,
and then changed just two lines - commented out
the CONFIG_REV11_SECURE_STATSHUB line, and uncommented
the CONFIG_REV11_SECURE_SENSOR line.
They should be just what's on the TRV1.5-rv1-gE-20160919 tag.
On 7 November 2016 at 08:05, Damon Hart-Davis <dhd at exnet.com> wrote:
> 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
>
> _______________________________________________
> OpenTRV-dev mailing list
> OpenTRV-dev at lists.opentrv.org.uk
> http://lists.opentrv.org.uk/listinfo/opentrv-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opentrv.org.uk/pipermail/opentrv-dev/attachments/20161107/344a088a/attachment.html>
More information about the OpenTRV-dev
mailing list