2025-08-19 1:05 AM - edited 2025-08-19 1:06 AM
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:
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):
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