Segger RTT and Telnet shows connection refused..

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at https://www.dialog-semiconductor.com/support . We’ll be fixing bugs / optimising the searching and tagging over the coming days.
8 posts / 0 new
Last post
vinio
Offline
Last seen: 3 years 11 months ago
Joined: 2018-07-02 13:27
Segger RTT and Telnet shows connection refused..

Hi,

I managed to build Segger RTT (to redirect printf on Segger JLink terminal) within my code baseline to try to use the inner terminal of SmartSnippets. When I the flash the image with Segger RTT support and start with JLink connected, I should be able to start a Telnet terminal.
But I get this error message for Telnet : connection refused : connect
I used localhost with port 19021 as described in the documentation..

Is this fully functionnal ? Could this come from something like a firewall?

Thanks
Vince

Device: 
MHv_Dialog
Offline
Last seen: 1 year 4 months ago
Staff
Joined: 2013-12-06 15:10
Hi Vince,

Hi Vince,

I have asked our SDK team to investigate. We should receieve an answer shortly.

/MHv

vinio
Offline
Last seen: 3 years 11 months ago
Joined: 2018-07-02 13:27
Hi !

Hi !

I was just thinking about the fact that using a release or debug version of the DA14681-01 USB library could have an impact (used at linking stage). Like enabling Telnet just for the Debug one..

MHv_Dialog
Offline
Last seen: 1 year 4 months ago
Staff
Joined: 2013-12-06 15:10
Hi Vince,

Hi Vince,

I received the following response from the team:

connection refused would mean:

  1. The port is not open on the destination machine.
  2. The port is open on the destination machine, but its backlog of pending connections is full.
  3. A firewall between the client and server is blocking access.

Note that RTT terminal can be active or get enabled without enabling the debugger at the same time.
For the RTT Control Block address you need to put the value of _SEGGER_RTT variable found in the binary MAP file (_SEGGER_RTT)
Also make sure that in the RTT Viewer window the options “Input -> Sending -> Send on Enter”
and “Input -> End of line -> Windows format” are checked.
This allows input strings which are sent by the RTT Viewer to be interpreted properly by DA14680.

 

I hope this helps

/MHv

 

vinio
Offline
Last seen: 3 years 11 months ago
Joined: 2018-07-02 13:27
Hi,

Hi,

I did open the port and allowed connections explicitly on Windows on port 19021 used by Telnet and Rtt client

RTT Control Block Address : is this in the code ? I found the _SEGGER_RTT to have 0xa8 but where should this RTT control block address be set ? May be I missed it in the doc

Thanks
Vincent

MHv_Dialog
Offline
Last seen: 1 year 4 months ago
Staff
Joined: 2013-12-06 15:10
Please see attached... /MHv

Please see attached...

/MHv

Attachment: 
vinio
Offline
Last seen: 3 years 11 months ago
Joined: 2018-07-02 13:27
Hi,

Hi,

Ok thanks I'll give a try and let you know as soon as I have something interesting. May take a while, cause I'm on holidays soon :-)

Vince

MHv_Dialog
Offline
Last seen: 1 year 4 months ago
Staff
Joined: 2013-12-06 15:10
I had to look up the word

I had to look up the word "holiday". Sounds wonderful ;o)

/MHv