Loading...
 

Zephyr project on STM32

   Zephyr Workbench, a VSCode extension to manage Zephyr on STM32.
It enables users to easily create, develop, and debug Zephyr applications.
Main features:
  • Install host dependencies.
  • Import toolchain and SDK.
  • Create, configure, build and manage apps.
  • Debug STM32.
You can directly download it from the VSCode marketplace
For more details, visit the Zephyr Workbench

System Workbench for STM32


Multiple targets flashing with openocd

Hi,

not really sure how you can flash all of the available devices using just OpenOCD, but I have this config to select specific boards:


interface hla
hla_serial 066CFF485457725187111418



So, for each new ST-Link I have to find their USB device ID, create a new %ID%.cfg file with the text above (using the new USB_ID instead of 066CFF485457725187111418.

I guess you can develop a program to scan for all USB devices with the ST-Link PID and VID, get their serial number and use it to create a new .cfg file and call openocd again.

If you find a solution thet just uses a .cfg file let me know, I never had to do this but it seems interesting.

EDIT

I use ((https://www.nirsoft.net/utils/usb_devices_view.html|USBDeview ))with Windows 10 to get the serial numbers. I’ve attached a screenshot of what an ST Link shows using that program.