cancel
Showing results for 
Search instead for 
Did you mean: 

Trying to upload firmware on stm32u5 board with CLion

pietro_corti
Visitor

I am trying to upload a firmware on an stm32uf board with the CLion IDE. I keep getting the following errors:

 

Info : clock speed 500 kHz
Info : STLINK V2J29S7 (API v2) VID:PID 0483:3748
Info : Target voltage: 3.234031
Info : [stm32u5x.cpu] Cortex-M33 r0p4 processor detected
Info : [stm32u5x.cpu] target has 8 breakpoints, 4 watchpoints
Info : gdb port disabled
CPU in Non-Secure state
[stm32u5x.cpu] halted due to debug-request, current mode: Thread
xPSR: 0xf9000000 pc: 0x080d5dcc msp: 0x20270000
** Programming Started **
Warn : Cannot identify target as an STM32C0/G0/G4/L4/L4+/L5/U5/WB/WL family devi
ce.
Error: auto_probe failed
embedded:startup.tcl:1467: Error: ** Programming Failed **
in procedure 'program'
in procedure 'program_error' called at file "embedded:startup.tcl", line 1532
at file "embedded:startup.tcl", line 1467

 

I found somebody having a similar issue stated here:

Problems using latest standard openocd build with ... - STMicroelectronics Community

 

however, when trying to add the openocd.exe from my installation of stm32CubeIde I get the following error:

pietro_corti_0-1720000746320.png

Wrong OpenOCD installation Boards configs folder (C:\ST\STM32CubeIDE_1.16.0\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.openocd.win32_2.3.200.202404091248\tools\scripts\board) is not found

the openocd location I am trying to use is the following:

C:\ST\STM32CubeIDE_1.16.0\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.openocd.win32_2.3.200.202404091248\tools\bin\openocd.exe

 

 

0 REPLIES 0