andysworkshop / stm32plus

The C++ library for the STM32 F0, F100, F103, F107 and F4 microcontrollers

Home Page:http://www.andybrown.me.uk

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build error

xhybb opened this issue · comments

commented

BigEndianCrc.h:31:33: error: invalid conversion from 'int' to 'stm32plus::Endian' [-fpermissive]

GNU ARM Embedded Toolchain version is 5-2016-q3-update

To solve this issue for the moment just remove all occurrings of -Werror in the SConstruct.
To

Hi, I also ran into this issue with GCC 5.4.1 (https://launchpad.net/gcc-arm-embedded/5.0/5-2016-q2-update).

The problem was that LITTLE_ENDIAN and BIG_ENDIAN were defined by macros in machine/endian.h in libc.
I have no idea how to fix this, but just FYI.

Fixed. Macros should never have been invented.