Solved
STM32CubeMX: How to prevent unused peripheral initialization code?
Hi everyone,
I'm working on an STM32 project using STM32CubeMX and noticed that initialization code is generated for peripherals that I don't always use.
Is there a recommended way to configure CubeMX so that only the required peripheral initialization code is generated?
Thanks!

