STM32 HAL Peripherals Using too Much FLASH Memory
Hi Folks,
I am using a STM32F070F6P6 microcontroller for a very basic/simple project to help learn the STM32 platform, etc.
I am getting an error when I attempt to build my project that my code overflows FLASH memory by quite a bit. I did a test on a new project, and even without any personal code of my own, if I try to compile the exact same build, the USB middleware overflows my FLASH memory by a ton. I am only using I2C and USB peripheral in my project.
Does this seem abnormal? Am I doing something wrong? It doesn't seem right to me that these add-ins themselves should be enough to overflow the FLASH memory size when I haven't even written a single line of code.
Are there any steps you usually take to optimize the code?





