From a9c05018260889e7675c80a85ae03b2bed7bdc03 Mon Sep 17 00:00:00 2001 From: deadprogram Date: Wed, 18 Mar 2026 09:15:35 +0100 Subject: [PATCH] targets: add stm32u585 openocd commands for flashing on Arduino UNO Q This adds the specific OpenOCD commands needed for flashing the onboard STM32U585 MCU directly from the Arduino UNO Q board. Thanks to https://github.com/jesdev-io/arduino-uno-q-pio-toolchain for the infor on how to do this. Signed-off-by: deadprogram --- targets/arduino-uno-q.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/targets/arduino-uno-q.json b/targets/arduino-uno-q.json index 89b0689f7..8309d2ca6 100644 --- a/targets/arduino-uno-q.json +++ b/targets/arduino-uno-q.json @@ -3,5 +3,6 @@ "build-tags": ["arduino_uno_q"], "serial": "uart", "openocd-interface": "stlink", - "openocd-target": "stm32u5x" + "openocd-target": "stm32u5x", + "openocd-commands": ["adapter driver linuxgpiod adapter gpio swclk -chip 1 26 adapter gpio swdio -chip 1 25 adapter gpio srst -chip 1 38 transport select swd adapter speed 1000 reset_config srst_only srst_push_pull"] }