Skip to main content
Hrvoje Brezak
Associate
May 22, 2019
Question

CubeMX: enables code optimizations upon code generation

  • May 22, 2019
  • 0 replies
  • 457 views

I believe I am experiencing a bug in CubeMX software which is not critical but is very annoying. Every time I re-generate project code from Cube, it automatically alters .cproject file, resetting C code optimizations to -O2 level. This then leads to funny behavior during debugging if I happen to forget to fix it manually.

I'm using CubeMX v5.2.0 and STM32F4 series package v1.24.1 in Atollic TrueStudio.

This topic has been closed for replies.