Skip to main content
Associate
August 19, 2025
Question

Debug Launcher: Flashing binary image via STLink/STM32CubeProgrammer with reduced swd frequency

  • August 19, 2025
  • 1 reply
  • 553 views

Dear community,

we are using custom binary images, that need to be flashed to our stm32 controllers for debugging. Images contain some additional information not contained in elf-file so flashing the elf is not sufficient.

With JLink debug launcher we can simply do this:

LRademacher_0-1755590155207.png

But with ST-Link (both STLink GDB server and OpenOCD) this is not allowed.

So I wanted to load the binary via an additional entry in "Load Image and Symbols" (which effectively calls STM32CubeProgrammer for flashing):

LRademacher_1-1755590247084.png

But with that I am facing another issue: I need to reduce SWD frequency to 3.3MHz or even 1MHz, otherwise the flashing does not work:

Error: Unable to get core ID
Error: No STM32 target found! If your product embeds Debug Authentication, please perform a discovery using Debug Authentication
2nd connect tentative with frequency (8MHz)
Error: Unable to get core ID
Error: No STM32 target found! If your product embeds Debug Authentication, please perform a discovery using Debug Authentication

I am not able to reduce swd frequency for this flashing step. Does anyone have an idea how to deal with this? I was thinking, maybe it is possible via environment variables, but I found nothing in the documentation.

STMCubeIDE Version: 1.18.0

 

Best regards

Lars

1 reply

ST Employee
August 20, 2025

Hello @LRademacher,

This post has been escalated to the ST Online Support Team for additional assistance. We'll contact you directly.

Best regards,
Maxime

​In order 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.