Skip to main content
Associate
Feb 14, 2025 12:09 PM UTC
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
Feb 14, 2025 3:48 PM UTC

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.