Skip to main content
Eralp
Associate III
February 4, 2022
Solved

How can i use J-Link Open Flashloader with STM32CubeIDE while debugging?

Hi, i have a custom board with STM32H750 with qspi flash and want to debug with j-link debugger. Before i used it with st-link and my custom flashloader while debugging. Now i want to write open loader for my project but i didn't see any settings how to add this loader to STM32CubeIDE.

For example, when i select st-link in debug configurations i can select and load my custom external loader under misc section.

This topic has been closed for replies.
mattias norlander
ST Employee
February 7, 2022

I have not played with this feature at all. But assuming you have a working Open flashloader you should be able to execute it from inside CubeIDE debug launch flow in two ways:

  1. Debug config > Debugger > Use J-Link script file
  2. Or setup an external tools configuration to let J-Flash manage execute your loader before the debug configuration is launched

11 replies

mattias norlander
ST Employee
February 7, 2022

I have not played with this feature at all. But assuming you have a working Open flashloader you should be able to execute it from inside CubeIDE debug launch flow in two ways:

  1. Debug config > Debugger > Use J-Link script file
  2. Or setup an external tools configuration to let J-Flash manage execute your loader before the debug configuration is launched

Eralp
EralpAuthor
Associate III
March 1, 2022

Thanks for reply Mattias.

SMoon.2
Associate III
May 23, 2023

I have the exact same scenario. @Eralp​ what solution did you end up using?

Tesla DeLorean
Guru
May 23, 2023

Relatively broad and expanding subset of customized .STLDR external loaders for pin and flash combinations.

https://github.com/cturvey/stm32extldr

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..