Solved
STM32CubeMX: Wrong Flash size in linker description file for STM32U073K8U6
Steps.
- Open STM32CubeMX. I am using version 6.12.1
- Click MCU Selector
- Select STM32U073K8U6. Note this table says the flash size is 64 kBytes
- Click Start Project
- Select the Project Manager tab
- Change the Toolchain / IDE option to makefile
- Click Generate Code. I needed to enter a project name.
- Line 63 of the generated STM32U073K8Ux_FLASH.ld file is
"FLASH (rx) : ORIGIN = 0x8000000, LENGTH = 256K"
I was expecting this line should say 64k. - I can manually edit this file to say 64k.
This is OK until I click the generate code button again which will overwrite my correction.
