cancel
Showing results for 
Search instead for 
Did you mean: 

Wrong default linker FLASH STM32L412

svalsesia
Associate II

Hi,

I think I may have found an error.

When generating a project for STM32L412K8TX (not a board) the default linker file define a RAM LENGTH of 40K.

The STM32L412K8TX have 40K divided in two parts, 32K in RAM1 (0x20000000) and 8K in RAM2 (0x10000000).

Package STM32L4 version 1.17.2
CubeMX version 6.8.1

Here is the header generated, also wrong:

** @brief : Linker script for STM32L412K8Tx Device from STM32L4 series
** 64Kbytes FLASH
** 40Kbytes RAM
** 8Kbytes RAM2

 

"SRAM1_SIZE_MAX" in stm32l412xx.h is ok, with a value of 0x8000.

 

Have a good day !

 

1 ACCEPTED SOLUTION

Accepted Solutions
STTwo-32
ST Employee

Hello @svalsesia 

Bienvenue à la Communauté 😊.

I confirm this typo and I will escalate it to the concerned team for correction (under ticket number 176949 which is just an internal tracking number)

Best Regards.

STTwo-32 

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

2 REPLIES 2
STTwo-32
ST Employee

Hello @svalsesia 

Bienvenue à la Communauté 😊.

I confirm this typo and I will escalate it to the concerned team for correction (under ticket number 176949 which is just an internal tracking number)

Best Regards.

STTwo-32 

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.

Hello,

Merci pour l'accueil.

Careful, there is the "header typo", but also a wrong value in the code.
So the linker think there is 40K too.

 

Thanks for the fast answer !