Skip to main content
Associate
September 2, 2025
Solved

Bugs in the Memory Management Tool of STM32CubeMX v6.15.0

  • September 2, 2025
  • 3 replies
  • 922 views

Hi,

I am using the following environment and found two bugs.

  • OS : Ubuntu 20.04 LTS
  • STM32CubeMX : 6.15.0
  • Toolchain / IDE : CMake
  • Board : NUCLEO-H563ZI


Bug 1 : After reconfiguring the memory address and size with Memory Management Tool following code generation, the .ld file does not follow the configuration.

This bug can be reproduced by following the steps below:

  1. Configure the FLASH region on MMT. 
  2. Generated code and .ld files
  3. Update the FLASH configuration on MMT. (e.g. change the start address of the FLASH region)
  4. Re-generated code and .ld files

 

Bug 2 : The vector table offset value is not updated from 0x00U even if the ISR vector checkbox is enabled and the start address of the FLASH region is changed from 0x08000000

The VECT_TAB_OFFSET value in system_stm32h5xx.c is not updated after generating code. I think this value should be updated according to FLASH region configuration.

/************************* Miscellaneous Configuration ************************/
/*!< Uncomment the following line if you need to relocate your vector Table in
Internal SRAM. */
/* #define VECT_TAB_SRAM */
#define VECT_TAB_OFFSET 0x00U /*!< Vector Table base offset field.
This value must be a multiple of 0x200. */

 

Best answer by Mahmoud Ben Romdhane

Hello @Fumihiko ,

 

I was able to reproduce your request.

Thank you for bringing this issue to our attention.

An internal Ticket was submitted to the Development Team (Internal Ticket Number: 216812).

I will keep you up to date when the problem is solved.

 

Thanks. 

Mahmoud

3 replies

Technical Moderator
September 2, 2025

Hello @Fumihiko 

 

First let me thank you for posting and welcome to the ST Community.

Your request is under investigation, and I will get back to you ASAP.

 

Thanks.

Mahmoud

 

 

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
Technical Moderator
September 3, 2025

Hello @Fumihiko ,

 

I was able to reproduce your request.

Thank you for bringing this issue to our attention.

An internal Ticket was submitted to the Development Team (Internal Ticket Number: 216812).

I will keep you up to date when the problem is solved.

 

Thanks. 

Mahmoud

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
hooper_chen
Visitor II
February 23, 2026

Hi @Mahmoud Ben Romdhane

I encountered the same issue with version 6.16.1. When can it be fixed.

Thanks.

hooper_chen
Visitor II
February 27, 2026

Hello @Mahmoud Ben Romdhane 

This is the file.

Thanks,

Hooper

Technical Moderator
February 27, 2026

Hello @hooper_chen 

Further to your comment, you need to enable under Code Generation Configuration on the Memory Management Settings: 

Apply Application Regions Settings to Peripheral

Apply Application Regions to Linker Files

Thanks.

Mahmoud

 

 

 

 

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
hooper_chen
Visitor II
March 4, 2026

Hello @Mahmoud Ben Romdhane 

After I enable the switch.

The ld file regenerate as below.

 
image.png
It seems not right.
 
Thanks,
Hooper
Technical Moderator
March 4, 2026

Hello @hooper_chen 

Further to your comment and while generating the project with CubeMX 6.17.0, the start address and size have been correctly updated in STM32H743XX_FLASH.ld.

Thanks

Mahmoud

 

 
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.