2024-08-22 03:24 AM
Hi,
I’m encountering an issue with linker file generation in STM32CubeMX for the STM32H56VGTX MCU. When I generate the code using CubeMX, it produces linker files configured for the STM32H563xx family, which has 2048 kBytes of Flash memory. However, the STM32H56VGTX has only 1024 kBytes of Flash memory.
I’ve attached the linker files in .txt format that CubeMX generates for reference.
Does anyone know why this happens? I understand that I can manually adjust the linker file to resolve the issue, but I’d prefer to fix the problem with the automatic generation to avoid potential issues and errors in the future.
Thank you in advance.
2024-08-22 07:08 AM
Hello,
I was not able to reproduce the issue. This is a part of linker file content generated with CubeMx V6.12.0 for STM32H563VGTx:
/* Memories definition */
MEMORY
{
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 640K
FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 1024K
}
The Flash is 1M and not 2M.
Attached the ioc file used to generate the linker file. Could you please check again? what CubeMx version are you using?