STMicroelectronics / STM32CubeG4

STM32Cube MCU Full Package for the STM32G4 series - (HAL + LL Drivers, CMSIS Core, CMSIS Device, MW libraries plus a set of Projects running on all boards provided by ST (Nucleo, Evaluation and Discovery Kits))
Other
182 stars 98 forks source link

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

Closed Ceres-96 closed 8 months ago

Ceres-96 commented 2 years ago

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 2 years ago

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 2 years ago

ST Internal Reference: 120645

ALABSTM commented 8 months ago

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,