AVR mEDBG or EDBG tool for linux/macos/etc?

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

Is there an open-source linux or mac tool that can upload code to boards like the Xplained mini 168pb, 328p, and 328pb?   Preferably CLI-based.

It looks like avrdude is  ... stale WRT EDBG (though there have been some patches in that area), and openOCD seems to only support chips that have actual JTAG somewhere.

Atmel has a command-line tool for EDBG (sort-of; a python program), but it relies on a cmis_dap.dll file that is presumablaby windows-specific

 

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

westfw wrote:
... and openOCD seems to only support chips that have actual JTAG somewhere.
Recent addition of SAM V7 and EDBG to OpenOCD.

IIRC from a read of OpenOCD's target list, AVR is for flash programming only (iow no debugging).

SourceForge

OpenOCD - Open On-Chip Debugger / Mailing Lists

[OpenOCD-devel] [PATCH]: 4bb8cd3 topic: Atmel SAMV7x support

2015-09-06 18:42:11

http://sourceforge.net/p/openocd/mailman/message/34436962/

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

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

Sending Data to EDBG from Linux shell ( DTR needs to be High, done by socat ,hupcl=1 )

 

sleep 1; while true; do echo -en "\x01\x02"; sleep 0.1; done | socat -T1 -t1 - /dev/ttyUSB0,hupcl=1,raw,b1000000,cs8,echo=0
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Has anyone looked at this?  It's source code for command line EDBG interface to ARM CPUs but could it be used for AVR?

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

EDBG is also in Microsoft Visual Studio Code though didn't browse to locate it.

Arduino - Visual Studio Marketplace

(3/4 page)

Debugging Arduino Code preview

due to AVR Studio On Mac & Linux? | AVR Freaks

 

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