Skip to content

error: reinterpret_cast from integer to pointer #11

@vaughanatworld

Description

@vaughanatworld

I'm having problems compiling Motate on Ubuntu 64 and gcc-arm-none-eabi-6-2017-q2 with the following error:
../../motate/cmsis/TARGET_Atmel/sam3x/include/sam3x8e.h:500:21: error: reinterpret_cast from integer to pointer
It seems this is a pretty well documented issue (arm launchpad) but no simple solution is provided:
"References to memory mapped registers"
https://answers.launchpad.net/gcc-arm-embedded/+question/259010

It looks like the git cloned Motate used gcc-arm-none-eabi-5_4-2016q2 when last committed to github. This compiler also violates the new C language standard.

Given your on going work on g2core, you must have solved the problem. Can you share the solution?

Many thanks.
Brian

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions