Failed communication over IP

Go To Last Post
4 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello,

I work with SAM3S and J-link to program it. It performs well when J-link connected to USB of my PC. But now I need to debug my mcu connected to another PC which has local connection to mine. My projects are in AS7 so i tried Tools -> Add target -> J-link over IP; I entered server IP into "address". Then it appears in "Availible Tools" menu with the status "Connected". 

J-link has two Server-Client: RemoteServer and GDBServer. We used the first one on the host PC and the window waited to connection appears. I can connect to host PC with J-link applications, read memory of mcu and so on. But i need to debug. I start AS, Availible Tools -> Device programming, choose Device, click "Apply" and error pops up:

 

Unable to connect to tool J-Link over IP (192.168.0.33:)

Timestamp:    2018-01-11 13:48:58.321
Severity:        ERROR
ComponentId:    20000
StatusCode:    0

Failed to set-up tool (no context id returned).

 

Is there any suggestions what has gone wrong? Also Remote debug works in the Eclipse with GDB SEGGER J-link Debugging. Moreover i used it with both RemoteServer and GDBServer running on the host PC.

 

Will be very thankful

Last Edited: Thu. Jan 11, 2018 - 11:28 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Although you seem to have established that the fault is not with the J-Link itself,  have you tried contacting Segger?

They might be able to offer guidance on how to get the J-Link to work with Atmel Studio ... ?

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Both atmel and segger provide a guidance to work with them (e.g. http://www.microchip.com/webdoc/... ). But it says nothing about what should be done at the host PC, should I write host ports anywhere at Atmel Studio or run segger client etc. I didn't find any solutions in the google either. And Eclipse did not asked any questions about it what is weird. From it i can program my mcu over ip and debug with all those breakpoints.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

So, the remote side needs to have Remoteserver running. It should give you a port number that it is listening to (which I think you should add to the setup in Studio)

:: Morten

 

(yes, I work for Atmel, yes, I do this in my spare time, now stop sending PMs)

 

The postings on this site are my own and do not represent Microchip’s positions, strategies, or opinions.