Skip to main content
Associate
February 14, 2025
Question

Build failing when -mstrict-align option is activated

When I activate the option "-mstrict-align" in STM32CubeIDE 1.17, I get "arm-none-eabi-gcc: error: unrecognized command-line option '-mstrict-align'; did you mean '-Wstrict-aliasing'?"

I'm using GNU tools for STM32 12.3.rel1.

This topic has been closed for replies.

1 reply

ST Technical Moderator
February 14, 2025

Hello @Jonadem 

Could you please provide more information about your system environment? 

KR, Souhaib

To give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.