Skip to main content
Associate
February 14, 2025
Question

Build failing when -mstrict-align option is activated

  • February 14, 2025
  • 1 reply
  • 819 views

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.

1 reply

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 Accept as Solution on the reply which solved your issue or answered your question.