Sorry my bad, I still had the cfg file edited, with ap_num 1 we get further, still not entirely happy: ~~~ /usr/bin/openocd -c "tcl_port disabled" -c "gdb_port 3333" -c "telnet_port 4444" -s /usr/share/openocd/scripts -f /home/jan/Projekte/Experimente/Elektronik/stm32wba52cg-test/openocd.cfg -c "init;reset init;" -c "echo (((READY)))" Open On-Chip Debugger 0.12.0 Licensed under GNU GPL v2 For bug reports, read http://openocd.org/doc/doxygen/bugs.html srst_only separate srst_nogate srst_open_drain connect_deassert_srst
Info : STLINK V3J11M3B5S1 (API v3) VID:PID 0483:374F Info : Target voltage: 3.244533 Info : Unable to match requested speed 500 kHz, using 200 kHz Info : Unable to match requested speed 500 kHz, using 200 kHz Info : clock speed 200 kHz Info : stlink_dap_op_connect(connect) Info : SWD DPIDR 0x0be12477 Info : [stm32wbax.cpu] Cortex-M33 r0p4 processor detected Info : [stm32wbax.cpu] target has 8 breakpoints, 4 watchpoints Info : starting gdb server for stm32wbax.cpu on 3333 Info : Listening on port 3333 for gdb connections [stm32wbax.cpu] halted due to debug-request, current mode: Thread xPSR: 0xf9000000 pc: 0x08029ff8 msp: 0x20001000 (((READY))) Info : tcl server disabled Info : Listening on port 4444 for telnet connections Info : accepting 'gdb' connection on tcp/3333 Error: Failed to read memory at 0x40015800 Info : device idcode = 0x10006492 (STM32WBA5x - Rev A : 0x1000) Info : TZEN = 0 : TrustZone disabled by option bytes Info : RDP level 0 (0xAA) Info : flash size = 1024 KiB Info : flash mode : single-bank Error: Failed to read memory at 0x40015800 Info : device idcode = 0x10006492 (STM32WBA5x - Rev A : 0x1000) Info : TZEN = 0 : TrustZone disabled by option bytes Info : RDP level 0 (0xAA) Error: invalid bank base address Error: auto_probe failed Error: Connect failed. Consider setting up a gdb-attach event for the target to prepare target for GDB connect, or use 'gdb_memory_map disable'. Error: attempted 'gdb' connection rejected com.jetbrains.cidr.execution.debugger.backend.gdb.GDBDriver$GDBCommandException: Remote connection closed Debugger disconnected Process finished with exit code 0 GDB Server stopped, exit code 137 ~~~ --- **[tickets:#398] Status of STM fork and adding support for new STM32 silicon** **Status:** new **Milestone:** 0.11.0 **Created:** Wed May 31, 2023 11:05 AM UTC by Jan Henke **Last Updated:** Wed May 31, 2023 02:48 PM UTC **Owner:** nobody Hi, I have purchased a STM32WBA52CG nucelo board and noticed OpenOCD does not yet has support for these newer chips STM released in the last months (they released several new series). I stumbled across a fork of OpenOCD created by STM: https://github.com/STMicroelectronics/OpenOCD They have added support for the STM32WBA family to that fork's flash driver along with some other of the new chips (but unfortunately no target config file yet). So I have two questions: 1. What is the status of that fork? Was there any discussion between STM32 and the OpenOCD project in that regard? With OpenOCD being GPL-2 licenced I would assume it is no problem to just cherry picks the relevant commits from that fork back to main OpenOCD? 2. I am struggling with creating a working target config file for the STM32WBA chip. The support was added to the STM32L4x flash driver (which already supports several STM32 families). Is it enough to copy the existing STM32l4x target config and updating the JTAG and SWD values with the correct ones from the STM32WBA reference manual? Best regards Jan Henke --- Sent from sourceforge.net because openocd-devel@lists.sourceforge.net is subscribed to https://sourceforge.net/p/openocd/tickets/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/openocd/admin/tickets/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.