The Godfather talking
Share your stuff or I will make you regret it.
Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
April 19, 2024, 02:34:27 02:34


Login with username, password and session length


Pages: [1]
Print
Author Topic: AVR debugger  (Read 4964 times)
0 Members and 1 Guest are viewing this topic.
mr_byte31
Hero Member
*****
Offline Offline

Posts: 594

Thank You
-Given: 68
-Receive: 144



« on: July 11, 2017, 09:35:56 09:35 »

Hi All,

I try to build a debugger for ATMega328.
I found ATMEL-ICE debugger very expensive but it supports most of MCU.


I tried to search for a cheaper solution. I found this programmer :

it only supports :  ATMega16, ATmega16L, ATMega162, ATmega162V, ATmega165, ATmega165V,  ATMega169, ATmega169V, ATMega32, ATMega323, ATmega323L, ATmega32L, ATMega64,  ATmega64L, ATMega128, ATmega128L, AT90CAN128

MY AVR is not part of them.

do any body have a success in this context  ?
I prefer to build my debugger rather than buy it
Logged

Do not trifle with the Moderators , as you are small, and crunchy, and taste good with ketchup.
Mega32
Active Member
***
Offline Offline

Posts: 179

Thank You
-Given: 183
-Receive: 37


« Reply #1 on: August 14, 2017, 08:34:31 20:34 »

You can't use that "programmer/debugger" for debugging a M328 , that debugger seems to support JTAG debugging only.

A M328 uses a protocol known as debugWire for debugging (not jtag) , so the "debug/programmer" needs to support that.

The cheapest "Official" debugger for a M328 is probably the AVR Dragon (it doesn't support all avr's , but quite a lot)
http://www.newark.com/microchip/atavrdragon/in-circuit-debug-prog-jtag-spi/dp/68T2063

http://www.atmel.com/tools/avrdragon.aspx

You would need Atmels AVR Studio software (Windows only) to control the Dragon debugger


Most (all) Atmel debug protocols are proprietary, and NOT made public.
This is why there's no "DIY clones".

The JTAG clone you have shown above, are all made with a M16 chip.
The protocol wasn't published , but Atmel forgot to enable the protection fuses on one of their old debuggers , using a M16.
That chip was read out, and used for cloning the old hw debugger that only supported the chips you mentioned.

Making a debugwire compatible debugger would be a huge job.

Well , it seems line someone claims to have built a debugwire device here , but it looks crippled and i'd bet there's no AVR Studio support.
https://github.com/dcwbrown/dwire-debug

Mega32
« Last Edit: August 14, 2017, 09:04:46 21:04 by Mega32 » Logged
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright © 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC