cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeProgrammer cannot connect to MCU using j-link

UniverGao
Associate

Version: v2.16.0

I`ve downloaded and installed the latest application and was told that the CubeProgrammer could support J-Link now.

the GUI shows that JLink device can be selected:

UniverGao_0-1715412382353.png

 

I clicked the connect bottom, the chip select window of JLink was popped out:

UniverGao_1-1715412644768.png

UniverGao_2-1715412669475.png

after correct chip was selected, the error window showed below:

UniverGao_3-1715412735928.png

the error logs like this:

 

 

 

  15:30:23 : UR connection mode is defined with the HWrst reset mode
  15:30:23 : 20730746
  15:30:23 : Error: J-Link - Connection to target failed
  15:30:23 : Error: J-Link - Reading CPUID failed
  15:30:23 : Voltage     : 3.30V
  15:31:20 : Error: Database cannot be found. DatabasePath = D:\ProgramFiles\STMicroelectronics\STM32Cube\STM32CubeProgrammer\bin/../Data_Base/STM32_Prog_DB_0xFFF.xml
  15:31:20 : Error: flash loader cannot be loaded. FlashLoaderPath = D:\ProgramFiles\STMicroelectronics\STM32Cube\STM32CubeProgrammer\bin/FlashLoader/0xFFF.stldr
  15:31:20 : Error: Database cannot be found. DatabasePath = D:\ProgramFiles\STMicroelectronics\STM32Cube\STM32CubeProgrammer\bin/../Data_Base/STM32_Prog_DB_0xFFF.xml

 

 

 

 I wander if the app support jlink probe, if not, why I can select it?

13 REPLIES 13

and you're sure it's a genuine J-Link - not a fake/clone?

Yes, it was bought on Segger's site.

Meganita
Associate II

I didn't solve the issue with the J-Link, but I can now program the STM32. I actually found a Nucleo-L433RC and have been able to program the STM32(L052K8) via ST-Link. 

So there is something wrong with your J-link and/or its setup and/or connections.

Probably best to take that up with Segger:

https://forum.segger.com/index.php/Board/3-J-Link-Flasher-related/