2025-06-20 3:49 AM
When starting a new project in the STM32cubeIDE and selecting the STM32U073C8T6 as the microcontroller, which has 64k flash and 40k RAM, the generated linker script uses 256k flash and 32k RAM.
Also the description says that this device has 256k flash.
Is this a bug and if so how can this be fixed?
How can the linker script be updated to use the correct flash and RAM size?
Solved! Go to Solution.
2025-06-20 4:19 AM
Hello @Jochem and welcome to the community;
Could you please precise which STM32CubeIDE and STM32CubeMX versions are you using?
I'm unable to reproduce the issue with STM32CubeIDE 1.18.0 version and with STM32CubeMX 6.14.1 version to generate the code.
I recommend you to download the latest versions of STM32CubeIDE and STM32CubeMx toolchains.
Thank you.
Kaouthar
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.
2025-06-20 4:19 AM
Hello @Jochem and welcome to the community;
Could you please precise which STM32CubeIDE and STM32CubeMX versions are you using?
I'm unable to reproduce the issue with STM32CubeIDE 1.18.0 version and with STM32CubeMX 6.14.1 version to generate the code.
I recommend you to download the latest versions of STM32CubeIDE and STM32CubeMx toolchains.
Thank you.
Kaouthar
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.
2025-06-20 4:19 AM
@Jochem wrote:How can the linker script be updated to use the correct flash and RAM size?
It's just a plain text file; you can edit it in any text editor - including the IDE's text editor.
2025-06-20 4:30 AM
I was on version 1.17.0 of the STM32cubeIDE, I'm now upgrading and will check again then.
I noticed when I make a project with this setting
In version 1.17.0 the linker script is correct.
After updating to version 1.18.1 the linker script is also correct when selecting STM32Cube.
Thanks for the help.