Skip to main content
Associate
September 22, 2025
Solved

using SEGGER JLINK with cubeprogrammerCLI

  • September 22, 2025
  • 3 replies
  • 635 views

I'm trying to connect my STM32H743IGTX controller with JLINK using cubeprogrammerCLI. I am able to connect jlink with cubeprogrammer gui and able to flash. but when i tried using CLI it shows

-------------------------------------------------------------------
STM32CubeProgrammer v2.20.0
-------------------------------------------------------------------

Error: Could not connect to the J-Link/Flasher, Library not found !

im trying to use external flash using my custom loader file generated from cubeide.

the command i used is,
/home/STMicroelectronics/STM32Cube/STM32CubeProgrammer/bin/STM32_Programmer_CLI -c port=JLINK ap=0 sn=601003130 freq=4000 reset=SWrst -el /home/STMicroelectronics/STM32Cube/STM32CubeProgrammer/bin/ExternalLoader/XIP.stldr -w /home/project/build/test.hex 0x90000000 -v

Best answer by Maryem

Hello @AbubakkarSiddiq ,

 

We are aware of this issue and it will be fixed in a future CubeProgrammer release. For the time being, please rely on the GUI version. We appreciate your patience.

Internal ticket number: 218301 (This is an internal tracking number and is not accessible or usable by customers).

Maryem.

3 replies

Andrew Neil
Super User
September 22, 2025

Does it work without a custom loader?

Does the CLI work with an ST-Link ?

 

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
Associate
September 22, 2025

I'm able to flash the code using st-link in CLI with custom loader. only with jlink i find these issue

Maryem
MaryemBest answer
Technical Moderator
September 22, 2025

Hello @AbubakkarSiddiq ,

 

We are aware of this issue and it will be fixed in a future CubeProgrammer release. For the time being, please rely on the GUI version. We appreciate your patience.

Internal ticket number: 218301 (This is an internal tracking number and is not accessible or usable by customers).

Maryem.

Andrew Neil
Super User
September 22, 2025

@Maryem wrote:

For the time being, please rely on the GUI version


Or, if CLI is required, use ST-Link ?

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.