Skip to main content
pgregson1
Associate III
Aug 16, 2019 1:04 AM UTC
Question

How do set optimization that I want in the Makefile for a makefile project using STM32CubeMX?

Every time a generate the code for a makefile project, STM32CubeMX changes the optimization level to -O2. I want to be able to set it as I wish, in my current case, to -Og. How do I tell STM32CubeMX to set the optimization ion the Makefile to -Og?

This topic has been closed for replies.