cancel
Showing results for 
Search instead for 
Did you mean: 

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

LRademacher
Associate

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

0 REPLIES 0