Does OpenOCD support stm32u5a5 microcontroller?

I use xPack OpenOCD v0.12.0-3 to program stm32u585, and it works fine. However it fails with stm32u5a5. The command is:

openocd -f interface/stlink.cfg -f target/stm32u5x.cfg -c "program $(BUILD_DIR)/$(TARGET).elf verify reset exit"

The output from terminal I get is:

openocd -f interface/stlink.cfg -f target/stm32u5x.cfg -c "program Out/system_u585.elf verify reset exit"

xPack Open On-Chip Debugger 0.12.0+dev-01557-gdd1758272-dirty (2024-04-02-07:27)

Licensed under GNU GPL v2

For bug reports, read

http://openocd.org/doc/doxygen/bugs.html

Info : auto-selecting first available session transport "hla_swd". To override use 'transport select <transport>'.

Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD

Warn : The selected adapter does not support debugging this device in secure mode

Info : clock speed 500 kHz

Info : STLINK V2J40M27 (API v2) VID:PID 0483:374B

Info : Target voltage: 0.009511

Error: target voltage may be too low for reliable debugging

Info : [stm32u5x.cpu] Cortex-M33 r0p4 processor detected

Info : [stm32u5x.cpu] target has 8 breakpoints, 4 watchpoints

Info : [stm32u5x.cpu] Examination succeed

Info : starting gdb server for stm32u5x.cpu on 3333

Info : Listening on port 3333 for gdb connections

CPU in Non-Secure state

[stm32u5x.cpu] halted due to debug-request, current mode: Thread

xPSR: 0xf9000000 pc: 0xfffffffe msp: 0xfffffffc

** Programming Started **

Warn : Cannot identify target as an STM32C0/G0/G4/L4/L4+/L5/U5/WB/WL family device.

Error: auto_probe failed

** Programming Failed **

shutdown command invoked

make: *** [Makefile:214: flash] Error 1

I can connect with both targets and identify them with Cube Programmer, so the hardware seems to be OK. I found this thread:

https://community.st.com/t5/stm32-mcus-products/problems-using-latest-standard-openocd-build-with-stm32u5a9j-dk/td-p/631770

I copied openocd binaries and scripts from stm32 IDE installed on different machine but it didn't help. It gives error as below. The stlink.cfg file is in the interface directory.

openocd -f interface/stlink.cfg -f target/stm32u5x.cfg -c "program Out/system_u585.elf verify reset exit"

Open On-Chip Debugger 0.12.0+dev-00597-ga5a21219f (2024-06-03-11:04) [https://github.com/STMicroelectronics/OpenOCD]

Licensed under GNU GPL v2

For bug reports, read

http://openocd.org/doc/doxygen/bugs.html

embedded:startup.tcl:28: Error: Can't find interface/stlink.cfg

in procedure 'script'

at file "embedded:startup.tcl", line 28

make: *** [Makefile:214: flash] Error 1

Did anybody encountered similar problems?

Best Regards

Przemyslaw Wlodarczyk


Reply via email to