Difference between EDBG and J-Link (Serial Wire Debug) debugging and flashing

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

I am currently working on a new board design with Atmel SAM S70 Cortex M7 and I am trying to figure out what is the best way to program and debug it.

The development kit with SAM V71 has EDBG chip based on Atmel UC3 MCU. It's convenient because it can be directly connected to USB. However, its connection looks rather complicated and honestly I don't understand what all the SPI and I2C connections are there for.

Also where could I get the EDBG chip programmed and functional? I haven't seen it on Atmel's website at all.

 

On the other hand, there is the Serial Wire Debug protocol supported by every ARM. If I understand it correctly, I can simply use a debugger such as Segger J-Link and via 20-pin connector connect it directly to SAM. This allows me to flash and also debug the the SAM. Would it also allow me to print message to a console over serial port like EDBG allows?

 

What are other and main differences between the two programming/debugging approaches?

 

Thanks.

 

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

EDBG is using SWD protocol. SPI, UART, I2C and GPIO are there for the data gateway, also supported by the EDBG chip. For example, EDBG also appear as a standard USB CDC COM-port, which is nice for debugging. You don't have to use them.

 

EDBG chips are not available for custom projects, so on your custom board put a standard 10-pin Cortex Debug Connector and use any SWD programmer you like.

NOTE: I no longer actively read this forum. Please ask your question on www.eevblog.com/forum if you want my answer.

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

Also, EDBG IC is used inside all other Atmel tools (like Atmel-ICE and variants). They are cheaper than J-Link, but if you already have one then it is irrelevant.

 

And no, J-Link will not have USB CDC support.

NOTE: I no longer actively read this forum. Please ask your question on www.eevblog.com/forum if you want my answer.

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

alexru wrote:
And no, J-Link will not have USB CDC support.
There's SEGGER J-Link OB that's available to OEM (silicon manufacturers, board manufacturers).

SEGGER

The Embedded Experts

J-Link Debug Probes

Model Overview

Other J-Links

J-Link OB

https://www.segger.com/jlink-ob.html

J-Link OB is a single chip microcontroller "on-board" of YOUR eval board.

...

  • Virtual COM Port (STM32F072, SAM3U)

...

"Dare to be naïve." - Buckminster Fuller