I have searched information on Bit-Banding in Cortex-M3 and M4 with the GNU GCC ARM EABI NONE, I have seen basic examples on the internet but none works with GNU GCC also seems that no intention to have such feature implemented.
Can someone tell me if the LD via memory remapping really work? the best approach?
What is the best way?
Jens (jensbauer), I am using the ARM GNU GCC GNU ARM Embedded Toolchain in Launchpad , Keil also uses the same compiler? I think no!
Nope.
GCC is one compiler.
ARM's own compiler is a different compiler
and clang is a third compiler.
Previous versions of Keil uses ARM's own compiler.
Newer versions of Keil uses clang.
-So GCC, which is used for almost every system, which is not Windows, does not have the __attribute__((bitband)) available.
However, I'd like to encourage you to try the linker script and remember to prefix every variable you use with bitbanding by 'volatile'.
If that fails, you can still use bitbanding the old way (by using predefined macros).
If you're using STM, I know ST-Microelectronics have macros defined in STM32Cube.