Skip to main content
Associate
March 22, 2024
Solved

Wrong default linker FLASH STM32L412

  • March 22, 2024
  • 1 reply
  • 988 views

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 !

 

This topic has been closed for replies.
Best answer by STTwo-32

Hello @svalsesia 

Bienvenue à la Communauté :smiling_face_with_smiling_eyes:.

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 

1 reply

STTwo-32
STTwo-32Best answer
Technical Moderator
March 22, 2024

Hello @svalsesia 

Bienvenue à la Communauté :smiling_face_with_smiling_eyes:.

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 

svalsesiaAuthor
Associate
March 22, 2024

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 !