cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeProgrammer J-Link issue

colinmurphygc
Associate

I'm trying to use the STM32CubeProgrammer with the newly supported J-Link settings, but can't seem to get it to work.

I'm using:

  • STM32CubeProgrammer: v2.17.0
  • STM32H573I-DK
  • SEGGER J-Link PLUS: SEGGER J-Link Commander V8.10c (Compiled Oct 16 2024 16:20:30)

I have set the External Debug jumper JP1, and have connected my SEGGER to the DK. I can connect to the DK via the SEGGER using JLinkExe, can debug using JLinkGDBServer, etc. JP4 is set to USB-PD, and I have a usb cable plugged into CN17.

I'm trying to connect to the board using the STM32CubeProgrammer, but am running into issues. With the GUI, I get the following:

```

16:30:49 : UR connection mode is defined with the HWrst reset mode
16:30:54 : xxxxxxxx ---> (have removed SN here, it does show valid number)
16:30:54 : Error: J-Link - Connection to target failed
16:30:54 : Error: J-Link - Reading CPUID failed
16:30:54 : Voltage : 3.31V
16:30:54 : Error: Database cannot be found. DatabasePath = /Applications/STMicroelectronics/STM32CubeProgrammer/STM32CubeProgrammer.app/Contents/MacOs/bin/../Data_Base/STM32_Prog_DB_0xAAA.xml
16:30:54 : Error: flash loader cannot be loaded. FlashLoaderPath = /Applications/STMicroelectronics/STM32CubeProgrammer/STM32CubeProgrammer.app/Contents/MacOs/bin/FlashLoader/0xAAA.stldr
16:30:54 : Error: Database cannot be found. DatabasePath = /Applications/STMicroelectronics/STM32CubeProgrammer/STM32CubeProgrammer.app/Contents/MacOs/bin/../Data_Base/STM32_Prog_DB_0xAAA.xml

```

With the CLI:

```

./STM32_Programmer_CLI -c port=JLINK mode=UR reset=HWrst freq=4000
-------------------------------------------------------------------
STM32CubeProgrammer v2.17.0
-------------------------------------------------------------------

Connecting to J-Link Probe
Error: J-Link - Connection to target failed
Error: J-Link - Reading CPUID failed

```

Any ideas what I can try? I'm using an M1 mac, if you think that might be an issue/something extra I should configure?

0 REPLIES 0