Skip to main content
Eralp
Associate III
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 Technical Moderator

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

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

11 replies

mattias norlander
ST Technical Moderator

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

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.
Eralp
EralpAuthor
Associate III

Thanks for reply Mattias.

SMoon.2
Associate III

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

Tesla DeLorean
Guru

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..