This is an automated email from Gerrit.

"Thiemo van Engelen <tvanenge...@victronenergy.com>" just uploaded a new patch 
set to Gerrit, which you can find at https://review.openocd.org/c/openocd/+/7752

-- gerrit

commit 698b768e43294bcd9259c0d863eb0d655cb08363
Author: Thiemo van Engelen <tvanenge...@victronenergy.com>
Date:   Fri Jun 23 09:29:25 2023 +0200

    rtt_server: Send a hello message when a client connects
    
    The SEGGER RTT tool J-Link RTT Viewer version 7.84f requires that it
    receives a messages immediately after connecting. Otherwise it will give a
    timeout and it will not connect.
    
    Change-Id: I9240a1b6a93cd5c0fbd18292afb33b89013d78bf
    Signed-off-by: Thiemo van Engelen <tvanenge...@victronenergy.com>

diff --git a/src/server/rtt_server.c b/src/server/rtt_server.c
index df2247bacd..c3adec7c5c 100644
--- a/src/server/rtt_server.c
+++ b/src/server/rtt_server.c
@@ -51,6 +51,8 @@ static int read_callback(unsigned int channel, const uint8_t 
*buffer,
        return ERROR_OK;
 }
 
+static const char connection_hello[] = "OpenOCD RTT\r\n";
+
 static int rtt_new_connection(struct connection *connection)
 {
        int ret;
@@ -65,6 +67,8 @@ static int rtt_new_connection(struct connection *connection)
        if (ret != ERROR_OK)
                return ret;
 
+       connection_write(connection, connection_hello, 
sizeof(connection_hello));
+
        return ERROR_OK;
 }
 

-- 

Reply via email to