Atmel Studio not working with J-Link/SAM-ICE on SAME54

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

Hello All,

 

I've been trying, without any success, to get the SAME54XPLAINED board to work with my SAM-ICE programmer.  Programming it appears to work at first and the IDE says it is "Running", but pausing just causes things to hang.  I have used the J-Link drivers/DLL that came with Atmel Studio 7.0.2389 along with the latest versions from Segger, still no luck.  Any debug steps I could take would be greatly appreciated.

 

I also have a custom board that it does not work with, thought I would try it with a known good board first.  The custom board and the Xplained board can be programmed uisng Atmel-ICE programmer without any issues.  But I would like to use the SWO feature to avoid having to use a serial port if at all possible.  Looks like Atmel-ICE does not really work with SWO, at least I can't find anything that says it does.  If all else fails, I would like to use Segger's RTT with the SAM-ICE, which would give me the same capabilities.

 

Any suggestions or ideas would be greatly appreciated.  Have wasted a couple of days on this already and have not made much progress.

Thanks in Advance!

 

-Tom

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

I use a Segger J-Link Base at work and the J-Link Edu for personal projects at home.  Both allow for a virtual serial port through the J-Link programmer but only during a debug session.  The board needs to be configured properly at the SWD pins to work and connected to a UART on the chip.  But no external connectors or level convertors are needed.  The debug port shows up as a virtual comm port, piggybacking on the J-Link USB connection to the programmer.

 

As far as tips with the programmer, be sure to use the SWD interface from the programming dialog box, not the JTAG interface.  An easy way to check things is from within Atmel Studio's menu, Tools->Device Programming to bring up the dialog box.  Select the proper tool and device (J-Link and ATSAME70Q20 in my case).  Be sure the Interface is SWD as stated above, then press the Apply button.  If successful, you can press the Device Signature Read button to confirm the connection is valid. Then on to the Device Information->Read button, or Memories tab for reading/erasing/writing/verifying and so on.