The GNU Link Script in STM32CubeG4/Projects/NUCLEO-G491RE/Templates/STM32CubeIDE/STM32G491RETX_FLASH.ld defines wrong RAM size
Ceres-96 opened this issue · 3 comments
Ceres-96 commented
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 }
RKOUSTM commented
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 commented
ST Internal Reference: 120645