Externalize mEDBG signals ... ? Breadboard 328p

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

All,

 

Question. Is it possible to use the mEDBG facility in the X-plain 328p(b) to debug via debug-wire an external AVR328p circuit on a bread board?

 

Thanks,

 

Randy
 

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

I am sure that you can just send the signals off to an external chip. i.e. just cut the XMINI lines to the onboard AVR.

It seems a pointless exercise. The XMINI can take standard Arduino shields. You are better off doing your prototyping with Arduino add-ons.
The onboard EDBG is incredibly slow. If you have a lot of development to do, buy an ATMEL-ICE.

David.

Last Edited: Mon. Oct 5, 2015 - 08:00 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

David,

 

Yes I quite see your point, I am seeing the mEDBG being very slow to program, and the back channel UART only goes to 38,400 baud for me.

 

However, if you are content to just observe/debug some static running code, and don't have to do a lot or re-compiles, then it is well worth the effort.

 

Thanks so much for the consideration of your reply,

 

Rando

Last Edited: Tue. Oct 6, 2015 - 07:33 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I know this is an old thread, but it came up at the top of a recent search for using the mEDBG of an ATtiny416 Xplained Nano board to program/debug an off-board target.

 

https://www.avrfreaks.net/forum/mplab-program-attiny1614-using-attiny416-xplained-nano-medbd

 

The  ATtiny416 Xplained Nano does advertise this facility but, AFAIK, the ATmega328P Xplained Mini documentation makes no claim to support off-board programming or debug:

 

https://www.microchip.com/DevelopmentTools/ProductDetails/PartNO/ATMEGA328P-XMINI

 

However, this thread describes how to "hack" an ATmega328P Xplained Mini to do this: 

 

https://www.avrfreaks.net/forum/low-cost-debugger-xplained-kits

 

 

Hope that may help anyone else who ends up here when searching on this topic.

 

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...