STM32CubeG4 icon indicating copy to clipboard operation
STM32CubeG4 copied to clipboard

The GNU Link Script in STM32CubeG4/Projects/NUCLEO-G491RE/Templates/STM32CubeIDE/STM32G491RETX_FLASH.ld defines wrong RAM size

Open Ceres-96 opened this issue 3 years ago • 2 comments

The RAM size(128KB) defined in template gnu link script exceed the real value, which should be 112 KB according to the g491 datasheet. This wrong parameter might cause hard fault during function call, since the sp register point to an illegal address.

/* Memories definition */ MEMORY { CCMSRAM (xrw) : ORIGIN = 0x10000000, LENGTH = 16K RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 128K ROM (rx) : ORIGIN = 0x08000000, LENGTH = 512K }

Ceres-96 avatar Dec 30 '21 09:12 Ceres-96

Hi @Ceres-96,

Thank you this report. An internal bug tracker has been already opened. The fix will be made available in the frame of a future release.

Thank you once more for your report.

With regards,

RKOUSTM avatar Jan 11 '22 13:01 RKOUSTM

ST Internal Reference: 120645

RKOUSTM avatar Jan 11 '22 13:01 RKOUSTM

Hi @Ceres-96,

The issue you reported has been finally fixed and made available in the frame of release 1.5.2. Thank you for your patience and thank you again for having reported.

With regards,

ALABSTM avatar Dec 25 '23 10:12 ALABSTM