cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeMX 6.16.0: Missing STM32U375xx_FLASH.ld generation with CMake Toolchain

ZacchetG
Associate II

Hi everyone,

I am experiencing an issue with STM32CubeMX version 6.16.0 while working on an STM32U375xx based project.

When I set the Toolchain/IDE to CMake, the code generation process completes successfully, but the linker script (STM32U375xx_FLASH.ld) is missing from the project structure. I have checked both the root directory and the cmake/ folder, but the file is nowhere to be found.

Interestingly, if I switch the Toolchain to STM32CubeIDE, the .ld file is generated as expected. This suggests a potential issue or a change in behavior specifically for the CMake generator with the new U3 series in this version of CubeMX.

Environment details:

  • MCU: STM32U375xx
  • STM32CubeMX Version: 6.16.0
  • Toolchain: CMake

Has anyone else encountered this problem? Is there a specific configuration I should check in the Project Manager to ensure the linker script is included in the CMake output?

Thanks for your support!

Best regards,

Gianni
1 ACCEPTED SOLUTION

Accepted Solutions

Hello @ZacchetG 

First let me tank you for posting.

As @Andrew Neil has mentioned , please try to use the latest version of MX 6.17.0

I will be waiting for your feedback.

THX

Ghofrane

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.

View solution in original post

4 REPLIES 4
Andrew Neil
Super User

STM32CubeMX 6.17.0 released today

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.

Hello @ZacchetG 

First let me tank you for posting.

As @Andrew Neil has mentioned , please try to use the latest version of MX 6.17.0

I will be waiting for your feedback.

THX

Ghofrane

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.

ZacchetG
Associate II

Hi Ghofrane,

Thank you for your feedback.

I have updated STM32CubeMX to version 6.17.0 as suggested, and I can confirm that the linker script (STM32U375xx_FLASH.ld) is now generated correctly within the project structure when using the CMake toolchain.

The issue is resolved. Thank you and Andrew Neil for your support!

Best regards,

Gianni

Hi Andrew,

Thank you for your feedback.

I have updated STM32CubeMX to version 6.17.0 as suggested, and I can confirm that the linker script (STM32U375xx_FLASH.ld) is now generated correctly within the project structure when using the CMake toolchain.

The issue is resolved. Thank you and Andrew Neil for your support!

Best regards,

Gianni