XMC1100 ARM g++ compile error

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Not applicable
I'm a bit baffled by an error I keep getting. I'm using DAVE 4.1.2 to attempt to build a project for the XMC1100 series. I'm using the g++ compiler instead of the gcc compiler.

The build always fails on the same line in 'XMC1100.h' on line 4177

#define CCU40_BASE 0x48040000UL

The Error message is:
XMC1100.h:4177:41: error: a cast to a type other than an integral or enumeration type cannot appear in a constant-expression
#define CCU40_BASE 0x48040000UL

Why in the world would it have an issue with this one line? It's surrounded by other lines similarly declared? Why would it have an issue with this line at all? It should just be a replacement macro.
0 Likes
0 Replies