cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeMX: Wrong Flash size in linker description file for STM32U073K8U6

a_user
Associate II

Steps.

  1. Open STM32CubeMX. I am using version 6.12.1
  2. Click MCU Selector
  3. Select STM32U073K8U6. Note this table says the flash size is 64 kBytes
  4. Click Start Project
  5. Select the Project Manager tab
  6. Change the Toolchain / IDE option to makefile
  7. Click Generate Code. I needed to enter a project name.
  8. Line 63 of the generated STM32U073K8Ux_FLASH.ld file is
    "FLASH (rx)      : ORIGIN = 0x8000000, LENGTH = 256K"
    I was expecting this line should say 64k.
  9. 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.
2 REPLIES 2
a_user
Associate II

Note. I originally saw this issue with version 6.12.0. Updating to 6.12.1 did not fix this issue.

STTwo-32
ST Employee

Hello @a_user 

I'm investigating this issue internally and i will be back to you with the root cause of this. I've tested even with project for CubeIDE.

Best Regards.

STTwo-32

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.