Skip to main content
YBAYR.1
Associate III
Dec 18, 2025 12:58 PM UTC
Question

How can I create the STM32WBA55CGUX_FLASH.ld file?

I'm using STM32CubeIDE 2.0 and CubeMX 6.16.1. When I create a project in CubeMX, it doesn't create the STM32WBA55CGUX_FLASH.ld file. It creates the makefile when I select it in the Toolchain/IDE section, but then gives an error.

YBAYR1_0-1766062724359.png

 

10 replies

ST Technical Moderator
Dec 18, 2025 1:21 PM UTC

Hello @YBAYR.1 

Thank you for bringing this up!

Could you please check the project directory to confirm if the STM32WBA55CGUX_FLASH.ld file is not present?

KR, Souhaib

To give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.
YBAYR.1
YBAYR.1Author
Associate III
Dec 18, 2025 1:42 PM UTC

The STM32WBA55CGUX_FLASH.ld file doesn't exist initially.

I can create it using CubeMX with toolchain/ide:makefile, but I get an error in the compiler.

ST Technical Moderator
Dec 18, 2025 2:46 PM UTC

CubeMX should add linker file titled "STM32WBA55xx_FLASH.ld" instead of "STM32WBA55CGUX_FLASH.ld".

can you check please?

To give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.