I have tried both a Telnet terminal in Eclipse, and RTT Viewer in a terminal outside Eclipse. Both seem to connect to localhost:19021 OK. I step through calls to SEGGER_RTT_Init and ....WriteString. They seem to know where the ring buffer is and write to an upBuffer. But nothing appears on the terminals.
My model is that JLink should be polling the RTT control block using SWD (or JTAG?), and writing via USB and GDB client to localhost:19021 when it finds something changed. I suppose JLink is not finding the control block?
More environment: NRF SDK v. 12, recent. Using RTT code from the <SDK>/external/seggert_rtt/. Also, using C++ compiler, but it seems to step through OK.
I saw a post about "existing session" but I don't find that setting anywhere. Maybe I just need to start the pieces in the correct order?
I have tried various settings in the Eclipse Debug Configuration, such as disable "Startup>Enable semihosting", and changing "Debugger>Telnet port" from 2333 to 19021 (probably wrong thing to do.)
My app compiles and runs OK and I can use the Eclipse debugger OK, just no RTT output. I just need some output, so maybe I should try NRF_LOG (but I haven't been able to get it to work, I'm not sure why it would use a UART?) or maybe I should try semihosting/SWO?
Later: I see that the debugger and RTT client must cooperate, and that the Windows version does have a "Connect existing session" option. I will try it without the debugger, and change the order I started them both.
My model is that JLink should be polling the RTT control block using SWD (or JTAG?), and writing via USB and GDB client to localhost:19021 when it finds something changed. I suppose JLink is not finding the control block?
More environment: NRF SDK v. 12, recent. Using RTT code from the <SDK>/external/seggert_rtt/. Also, using C++ compiler, but it seems to step through OK.
I saw a post about "existing session" but I don't find that setting anywhere. Maybe I just need to start the pieces in the correct order?
I have tried various settings in the Eclipse Debug Configuration, such as disable "Startup>Enable semihosting", and changing "Debugger>Telnet port" from 2333 to 19021 (probably wrong thing to do.)
My app compiles and runs OK and I can use the Eclipse debugger OK, just no RTT output. I just need some output, so maybe I should try NRF_LOG (but I haven't been able to get it to work, I'm not sure why it would use a UART?) or maybe I should try semihosting/SWO?
Later: I see that the debugger and RTT client must cooperate, and that the Windows version does have a "Connect existing session" option. I will try it without the debugger, and change the order I started them both.
The post was edited 1 time, last by bootchk ().