USB HID device on STM32F042F4 using CubeMX - FLASH overflow.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-12-01 8: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.
- Labels:
-
Flash
-
STM32CubeMX
-
STM32F0 Series
-
USB
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-12-01 8: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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-12-01 8: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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-12-01 9:05 AM
That actually worked, thx
