Skip to main content
Associate II
October 25, 2024
Solved

STM32CubeMX: Wrong Flash size in linker description file for STM32U073K8U6

  • October 25, 2024
  • 2 replies
  • 806 views

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.
Best answer by STTwo-32

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.

PS: Issue solved on the last release of the STM32CubeMX

Best Regards.

STTwo-32

2 replies

a_userAuthor
Associate II
October 25, 2024

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

STTwo-32
STTwo-32Best answer
Technical Moderator
October 25, 2024

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.

PS: Issue solved on the last release of the STM32CubeMX

Best Regards.

STTwo-32