2021-12-01 08:11 AM
Hi,
When I set the USB class to anything in CubeMX, the compiler gives me the error - FLASH overflow. It happens even with a completely empty main.c file, so is there a way to make it work, or should I choose MCU with 32kB flash (it will fit then)? The current one has 16kB.
Solved! Go to Solution.
2021-12-01 08:52 AM
You can try turning on optimization to see if it reduces the code size enough. Change the build configuration to Release.
Project -> Build Configurations -> Set Active -> Release
Generally, CubeMX and HAL wasn't created for chips with small FLASH sizes.
2021-12-01 08:52 AM
You can try turning on optimization to see if it reduces the code size enough. Change the build configuration to Release.
Project -> Build Configurations -> Set Active -> Release
Generally, CubeMX and HAL wasn't created for chips with small FLASH sizes.
2021-12-01 09:05 AM
That actually worked, thx