> The current script does not work, for starters the STM32WBA has different 
> JTAG/SWD IDs.

Have you tried adding the relevant STM32WBA ID(s) to the  `stm32wbx.cfg` script?
(I presume that the 'x'  in the name is a placeholder so that script should - 
eventually, if not right now - also support STM32WBA?).

> STM32WBx is a dual core chip with one M4 and one M+, the new STM32WBA is a 
> single core M33 chip

The  `stm32wbx.cfg` script only defines a single Cortex-M target.

https://github.com/openocd-org/openocd/blob/78688fea984b69d1986b6b730ff2935668cc9208/tcl/target/stm32wbx.cfg#L47


---

**[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 01:00 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.


Reply via email to