cancel
Showing results for 
Search instead for 
Did you mean: 

STM32cubeIDE generates incorrect linker script for STM32U073C8T6

Jochem
Visitor

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.

 

Jochem_0-1750416445868.png

Also the description says that this device has 256k flash.

Jochem_1-1750416524327.png

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?

1 ACCEPTED SOLUTION

Accepted Solutions
KDJEM.1
ST Employee

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.

KDJEM1_0-1750418167105.png

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.

View solution in original post

3 REPLIES 3
KDJEM.1
ST Employee

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.

KDJEM1_0-1750418167105.png

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.

Andrew Neil
Super User

@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.

 

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.

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

Jochem_0-1750418887031.png

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.