From: openocd-gerrit <ope...@us...> - 2025-03-09 13:27:48
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "Main OpenOCD repository". The branch, master has been updated via b2016dc44319ec6a872efbb656d32999f6732382 (commit) via b7ad702bc884e6c37002b41afcac1dfdb6b030ee (commit) from c81cb4aa2d2b85a513f58d2ddbc492f606473c77 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit b2016dc44319ec6a872efbb656d32999f6732382 Author: Daniel Goehring <dgo...@os...> Date: Wed Mar 5 17:48:01 2025 -0500 target/target: fix RTOS thread awareness support This prior patch replaces "LOG_xxx()" with "LOG_TARGET_xxx()" to indicate which target the message belongs to. commit 7f2db80ebc16 ("rtos/hwthread: Use LOG_TARGET_xxx()") To support this change for hardware thread awareness, the target command name needs to be established before calling the "target_configure()" routine. Change-Id: I0dc70c23b84e983a2ee694fb5b9d01758f5c84a3 Signed-off-by: Daniel Goehring <dgo...@os...> Reviewed-on: https://review.openocd.org/c/openocd/+/8800 Tested-by: jenkins Reviewed-by: Antonio Borneo <bor...@gm...> diff --git a/src/target/target.c b/src/target/target.c index 0e41f0d10..ce468cc90 100644 --- a/src/target/target.c +++ b/src/target/target.c @@ -5829,6 +5829,16 @@ static int target_create(struct jim_getopt_info *goi) target->gdb_port_override = NULL; target->gdb_max_connections = 1; + cp = Jim_GetString(new_cmd, NULL); + target->cmd_name = strdup(cp); + if (!target->cmd_name) { + LOG_ERROR("Out of memory"); + free(target->trace_info); + free(target->type); + free(target); + return JIM_ERR; + } + /* Do the rest as "configure" options */ goi->is_configure = true; e = target_configure(goi, target); @@ -5865,19 +5875,6 @@ static int target_create(struct jim_getopt_info *goi) target->endianness = TARGET_LITTLE_ENDIAN; } - cp = Jim_GetString(new_cmd, NULL); - target->cmd_name = strdup(cp); - if (!target->cmd_name) { - LOG_ERROR("Out of memory"); - rtos_destroy(target); - free(target->gdb_port_override); - free(target->trace_info); - free(target->type); - free(target->private_config); - free(target); - return JIM_ERR; - } - if (target->type->target_create) { e = (*(target->type->target_create))(target, goi->interp); if (e != ERROR_OK) { commit b7ad702bc884e6c37002b41afcac1dfdb6b030ee Author: Nishanth Menon <nm...@ti...> Date: Thu Sep 28 03:37:03 2023 -0500 tcl/board: Add MSPM0 Launchpad support Add basic connection details for TI's MSPM0 Launchpad series of evaluation kits: https://www.ti.com/tool/LP-MSPM0L1306 https://www.ti.com/tool/LP-MSPM0C1104 https://www.ti.com/tool/LP-MSPM0G3507 Change-Id: I33499f2d5fef846185ff6c330f9bfd0251117eb6 Co-developed-by: Henry Nguyen <h-n...@ti...> Signed-off-by: Henry Nguyen <h-n...@ti...> Signed-off-by: Nishanth Menon <nm...@ti...> Reviewed-on: https://review.openocd.org/c/openocd/+/8386 Reviewed-by: Antonio Borneo <bor...@gm...> Tested-by: jenkins diff --git a/tcl/board/ti_mspm0_launchpad.cfg b/tcl/board/ti_mspm0_launchpad.cfg new file mode 100644 index 000000000..132fdc2a3 --- /dev/null +++ b/tcl/board/ti_mspm0_launchpad.cfg @@ -0,0 +1,14 @@ +# SPDX-License-Identifier: GPL-2.0-or-later +# Copyright (C) 2023-2025 Texas Instruments Incorporated - https://www.ti.com/ +# +# TI MSPM0L1306 LaunchPad Evaluation Kit +# https://www.ti.com/tool/LP-MSPM0L1306 +# TI MSPM0C1104 LaunchPad Evaluation Kit +# https://www.ti.com/tool/LP-MSPM0C1104 +# TI MSPM0G3507 LaunchPad Evaluation Kit +# https://www.ti.com/tool/LP-MSPM0G3507 +# + +source [find interface/xds110.cfg] +adapter speed 10000 +source [find target/ti_mspm0.cfg] ----------------------------------------------------------------------- Summary of changes: src/target/target.c | 23 ++++++++++------------- tcl/board/ti_mspm0_launchpad.cfg | 14 ++++++++++++++ 2 files changed, 24 insertions(+), 13 deletions(-) create mode 100644 tcl/board/ti_mspm0_launchpad.cfg hooks/post-receive -- Main OpenOCD repository |