cancel
Showing results for 
Search instead for 
Did you mean: 

using SEGGER JLINK with cubeprogrammerCLI

AbubakkarSiddiq
Associate II

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

4 REPLIES 4
Andrew Neil
Super User

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.
AbubakkarSiddiq
Associate II

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

Maryem
ST Employee

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.

 

Maryem.


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

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