cancel
Showing results for 
Search instead for 
Did you mean: 

CubeIDE 2.1.1 wrong linker script memory definitions for STM32C562RE

Kraal
Lead

Hello,

I just downloaded STMCubeIDE 2.1.1 to generate a simple project for a Nucleo-C562RE board.
I am not using CubeMX2 (for various reason, that is not the point).
The default empty project generated for STM32C562RE by the IDE has only 1 SRAM element with a size of 64K, instead of 2 SRAM elements of 64K each.
FLASH size is correct though.
Out of curiosity, if ST were to push a fix for this kind of bug, would it be a new IDE release ? or could it be a STM32C5 pack update only ?

3 REPLIES 3
Andrew Neil
Super User

Would be interesting to know if CubeMX2 does create correct linker files ... ?

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.
Souhaib MAZHOUD
ST Employee

Hello @Kraal 

Thanks for bringing this issue to our attention!

I will raise this behavior to the dedicated team.   (Ticket #0061201 This is an internal tracking number and is not accessible or usable by customers)

BR, Souhaib

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.

Kraal
Lead

I have tested with VSCode and the STM extension, and there the linker script has the correct value of 128K (albeit it is one block of 128K and not 2 blocks of 64K).

The writing differs as well, in CubeIDE size is given as "64K", while in VSCode it is "0x20000" which is less user friendly.

So I believe that MX2 would give the correct linker script (but I did not verify as I don't want to install MX2 just for that yet).