Skip to main content
nicolas
Senior II
May 22, 2025
Solved

Creating CMake project for STM32U5 divide memory

  • May 22, 2025
  • 2 replies
  • 494 views

I'm using STM32CubeIDE 1.18.1 and when i create a new STM32 CMake Project for a STM32U5, the generated ld file contain only half the memory.

For example here what is generated in STM32U575ZITXQ_FLASH.ld:

MEMORY
{
 RAM	(xrw)	: ORIGIN = 0x20040000,	LENGTH = 512K /* Memory is divided. Actual start is 0x20000000 and actual length is 768K */
 SRAM4	(xrw)	: ORIGIN = 0x28000000,	LENGTH = 16K
 FLASH	(rx)	: ORIGIN = 0x08100000,	LENGTH = 1024K /* Memory is divided. Actual start is 0x08000000 and actual length is 2048K */
}

This doesn't happens when creating a classic STM32 project.

Best answer by Mahmoud Ben Romdhane

Hello @nicolas ,

 

Let me thank you for bringing this issue to our attention.

An internal ticket is submitted to the Development Team (Ticket Number: 210768).

 

Thanks.

Mahmoud

2 replies

Technical Moderator
May 22, 2025

Hello @nicolas 

First let me thank you for posting.

Your request is under investigation, and I will get back to you ASAP.

 

Thanks.

Mahmoud

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.
nicolas
nicolasAuthor
Senior II
May 23, 2025

I have also found differences in the startup file. Some IRQ handler doesn't have the same name (GPDMA1_ChannelX_IRQHandler vs GPDMA1_CHX_IRQHandler).

nicolas
nicolasAuthor
Senior II
May 23, 2025

Here are my project files

Technical Moderator
May 26, 2025

Hello @nicolas ,

 

Let me thank you for bringing this issue to our attention.

An internal ticket is submitted to the Development Team (Ticket Number: 210768).

 

Thanks.

Mahmoud

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.