This is an automated email from Gerrit.

"zapb <[email protected]>" just uploaded a new patch set to Gerrit, which you can 
find at https://review.openocd.org/c/openocd/+/9660

-- gerrit

commit 5753fe54addcad354c0b42c0b256b418dc3cc32b
Author: Marc Schink <[email protected]>
Date:   Wed May 13 01:03:48 2026 +0200

    adapter/cmsis-dap: Improve TCP backend error reporting
    
    When no IP address or hostname is specified, failures to connect to a
    remote CMSIS-DAP adapter are not clearly explained. The only visible
    output is:
    
      Open On-Chip Debugger 0.12.0+dev-01509-gf9212ff31 (2026-05-13-13:52)
      Licensed under GNU GPL v2
      For bug reports, read
            http://openocd.org/doc/doxygen/bugs.html
      Info : Listening on port 6666 for tcl connections
      Info : Listening on port 4444 for telnet connections
      Error: unable to find a matching CMSIS-DAP device
    
    The real cause is only reported in a debug message. Promote this log
    message to LOG_ERROR() and reword it for better clarity.
    
    Change-Id: Id767b477e6d820733dd2f955ff8323b6356fe796
    Signed-off-by: Marc Schink <[email protected]>

diff --git a/src/jtag/drivers/cmsis_dap_tcp.c b/src/jtag/drivers/cmsis_dap_tcp.c
index 0c86f94564..6efd6b5d1f 100644
--- a/src/jtag/drivers/cmsis_dap_tcp.c
+++ b/src/jtag/drivers/cmsis_dap_tcp.c
@@ -119,7 +119,7 @@ static int cmsis_dap_tcp_open(struct cmsis_dap *dap,
 {
        // Skip the open if the user has not provided a hostname.
        if (!cmsis_dap_tcp_host) {
-               LOG_DEBUG("No TCP hostname, skipping open.");
+               LOG_ERROR("The hostname or IP address of the CMSIS-DAP adapter 
must be specified");
                return ERROR_FAIL;
        }
 

-- 

Reply via email to