From 34e4070adfad32d4893438b14d69dc412de6bcd3 Mon Sep 17 00:00:00 2001 From: Alexandre Bailon Date: Wed, 27 Nov 2024 10:41:10 +0100 Subject: [PATCH] boards: cc1352p7_lp: Adds a way to select the board to flash This updates openocd.cfg file to support flashing multiple boards attached to the host computer. Signed-off-by: Alexandre Bailon --- boards/ti/cc1352p7_launchpad/support/openocd.cfg | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/boards/ti/cc1352p7_launchpad/support/openocd.cfg b/boards/ti/cc1352p7_launchpad/support/openocd.cfg index 8be969b1819bde..e66d88411047dd 100644 --- a/boards/ti/cc1352p7_launchpad/support/openocd.cfg +++ b/boards/ti/cc1352p7_launchpad/support/openocd.cfg @@ -1 +1,7 @@ +# Serial could be found using the following command: +# lsusb -d 0451:bef3 -v | grep -i iserial +if { [info exists _ZEPHYR_BOARD_SERIAL] } { + adapter serial $_ZEPHYR_BOARD_SERIAL +} + source [find board/ti_cc26x2x7_launchpad.cfg]