CubeMX ST ARM Clang linker not compatible
Hi everyone,
I’m using the new Arm Toolchain for Embedded with CMake. I generated a project template from STM32CubeMX using the following settings:
- Toolchain/IDE: CMake
- Default compiler/linker: Arm-Clang
Compilation works fine, but when linking starts, I get this error:
ld.lld: error: STM32G474XX_FLASH.ld:105: symbol not found: READONLY
It looks like the Arm toolchain (even the latest v21.1.1) doesn’t support the READONLY keyword. It’s not a big deal to adjust the .ld file - just remove the READONLY keywords - but it would be nice if the generated template worked out of the box.
Am I missing a setting somewhere? Is there an alternative/better way to obtain the linker file?
Edit: I'm using the STM32G474.
