Author Topic: ATMega328P JTAG Debugger/Programmer Recommendation?  (Read 20095 times)

0 Members and 1 Guest are viewing this topic.

Offline LabSpokane

  • Super Contributor
  • ***
  • Posts: 1899
  • Country: us
ATMega328P JTAG Debugger/Programmer Recommendation?
« on: December 29, 2014, 05:57:12 pm »
What would be the best JTAG programmer for going bare-metal using the Atmega328P?  Work will be light-duty basement engineering stuff.  I don't need a commercial tool at this time.  Budget is around $100 USD or under.  I want a programmer that is pretty plug-and-play.  I'd rather focus on developing on the uC, versus developing a programmer/debugger.

Is the JTAGICE3 pretty much the only choice with this criteria?

Thanks in advance!
« Last Edit: December 29, 2014, 07:31:50 pm by LabSpokane »
 

Offline skennedy

  • Contributor
  • Posts: 38
  • Country: au
Re: ATMega328P JTAG Debugger/Programmer Recommendation?
« Reply #1 on: December 30, 2014, 01:11:28 am »
I'm pretty sure that the Atmega328p doesn't have a JTAG interface as such. Instead it has a single wire debugWire system which I've never used before and it looks like you need the AVR ONE! to use.

My suggestion would be an AVR Dragon which I have used quite a bit and think it offers pretty exceptional bang for buck. It isn't as fast as the JTAGICE3 but it will do most of what you want. Best part is they are $54.29 USD at Digi-Key http://www.digikey.com/product-search/en?x=0&y=0&lang=en&site=us&keywords=avr+dragon leaving you enough in your budget to buy some cables to connect it to your board.

Hope this helps,

Simon
 

Offline LabSpokane

  • Super Contributor
  • ***
  • Posts: 1899
  • Country: us
Re: ATMega328P JTAG Debugger/Programmer Recommendation?
« Reply #2 on: December 30, 2014, 02:04:32 am »
Will check out the dragon. Thanks!
 

Offline Jeroen3

  • Super Contributor
  • ***
  • Posts: 3369
  • Country: nl
  • Embedded Engineer
    • jeroen3.nl
Re: ATMega328P JTAG Debugger/Programmer Recommendation?
« Reply #3 on: December 30, 2014, 06:32:11 am »
You can get an AVR ISP MK2 to program the chip, or any of the clones available on the market.
You can also get an AVR JTAG ICE to do some debugging.
 

Offline picandmix

  • Frequent Contributor
  • **
  • Posts: 395
  • Country: gb
Re: ATMega328P JTAG Debugger/Programmer Recommendation?
« Reply #4 on: December 30, 2014, 09:43:25 am »
I don't need a commercial tool at this time..  I want a programmer that is pretty plug-and-play.  I'd rather focus on developing on the uC,

Then I would suggest for now you buy an Arduino Uno with its 328,  or an ebay  clone board for around $10 ,  and use its inbuilt bootloader and serial monitor for easy feedback /debugging.
 

Offline rob77

  • Super Contributor
  • ***
  • Posts: 1848
  • Country: sk
Re: ATMega328P JTAG Debugger/Programmer Recommendation?
« Reply #5 on: December 30, 2014, 10:03:10 am »
buy a arduino nano clone from china (approx $6-8) and load the AVRISP sketch into it, connect 3 LEDs  => ISP programmer for AVR chips in a instant ;) it works well with AVRdude software.
debugging on 328P ? well... AVRs are simple MCUs, so rather focus on a good software design instead of "let's debug that later" ;)
 

Offline ajb

  • Super Contributor
  • ***
  • Posts: 1698
  • Country: us
Re: ATMega328P JTAG Debugger/Programmer Recommendation?
« Reply #6 on: December 30, 2014, 08:07:38 pm »
The new Atmel-ICE is 45-85 bucks (depending on which cable kit you get with it), supports ATMega, XMega, ATTiny, and SAM devices via every Atmel debug/programming protocol except the high voltage modes.  As a first-party tool it's natively supported in Atmel Studio, and will likely be much faster than any STK clone.  That's a set of features that'll be really hard to beat.

I don't know how it compares to the JTAGICE3, since the latter is still priced higher it must have some advantage, but for basement engineering I'd probably go for the versatility of the Atmel-ICE, unless you really need HVPP/HVSP, in which case the Dragon is the way to go. 
 

Offline larsdenmark

  • Regular Contributor
  • *
  • Posts: 89
  • Country: dk
Re: ATMega328P JTAG Debugger/Programmer Recommendation?
« Reply #7 on: December 31, 2014, 08:50:29 am »
The new Atmel-ICE is 45-85 bucks (depending on which cable kit you get with it)

Yes, the Atmel ICE is the latest addition to the line of debuggers (this is hard to tell from looking at the Atmel website).

Atmel has produced a video on how it works (which I can't find at the Atmel website at all):

 

Offline Simon

  • Global Moderator
  • *****
  • Posts: 14029
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
Re: ATMega328P JTAG Debugger/Programmer Recommendation?
« Reply #8 on: January 01, 2015, 11:36:48 am »
Ah yes atmel edge, started on the right foot got very content free and waffle rich and then got cancelled with no explanation. Could have been a nice show but judging from atmels video output the department is run on attention deficit and they keep trying to be clever and spend more time making it look good with minimal content and lots of waffle from people who look like they don't really want to be on camera but have to to make it look like atmel is massive with all of these people and it looks horrible contrived. Paul Rako was the first genuine looking one and dissapered as fast as he got started after boring us to death in hist last known episode waffling about what he didn't like about a sprinkler timer and never got round to the promised redesign.

I really wonder what atmel are playing at with their youtube channel, looks like it's micro managed and keeps changing manager every week.

I have an atmel ICE, they confused the hell out of everyone with and ICE 1, 2 &3 that were not cheap and then realized that they needed to get in with the game and launched the cheap ICE (ICE 4?) which as a name scheme just made it confusing and declared that they beleived in cheap affordable tools and always had, yea right, while microchip had the pickit for under £20 atmel were selling the AVRJTAG that looked just like the AVRISP for over £200.........

I use atmel but I'm not a fan boy, I just got fed up with microchip antiquities.
https://www.simonselectronics.co.uk/shop
Varied stock of test instruments and components including EEVblog gear and Wurth Elektronik Books.
Also, if you want to get ripped off: https://www.ebay.co.uk/usr/simons_electronics?_trksid=p2047675.l2559
 

Offline Brutte

  • Frequent Contributor
  • **
  • Posts: 608
Re: ATMega328P JTAG Debugger/Programmer Recommendation?
« Reply #9 on: January 01, 2015, 03:10:39 pm »
What would be the best JTAG programmer for going bare-metal using the Atmega328P?
First of all why would anyone want to use AVRs any more?? Are you some kind of historian, mastering avrcheology??
As mentioned, those (facelift) ATTinyxx8 series do not have JTAG. Tinies use proprietary dW (debug wire) which offers limited functionality w.r.t. proper (JTAG'ed) ATMegas.
The JTAGICE (a.k.a. JTAGICE-Mk1 ) does not service dW at all. It is their JTAGICE-Mk2 and -Mk3 that does dW debugging. Atmel also offers "drag-on", and most notable "avr-once" (600$ fail). Search AVRFreaks for that.

As for their newest "at-me-lice" tools, it is also proprietary, custom chip, afaik it works only with their visual studio and only with their uCs.
Quote
which as a name scheme just made it confusing and
Looks like you have never heard about their "STK600" ($200) rip-off. They advert  supporting JTAG but after unboxing you realize it actually supports only programming of the flash but no debugging capabilities..
 

Offline Simon

  • Global Moderator
  • *****
  • Posts: 14029
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
Re: ATMega328P JTAG Debugger/Programmer Recommendation?
« Reply #10 on: January 01, 2015, 03:16:06 pm »
Well I will tell you one thing, at least they have far more functionality and don't present stupid silicone bugs on some of their most popular parts like microchip do. Their history of tools been expensive and by the sounds of it with poor functionality is what has hampered them so far. I don't understand the ins and outs of all of the interfaces but to be fair does the pickit support other chips and software interfaces? They have at last come up with a single tool for the whole range of chips which seems to do everything for a decent price. Were you expecting it to work with microchip as well? Most people supporting microchip claim that the extras you get on AVR are not necessary well if you don't mind I will be the judge of that.
https://www.simonselectronics.co.uk/shop
Varied stock of test instruments and components including EEVblog gear and Wurth Elektronik Books.
Also, if you want to get ripped off: https://www.ebay.co.uk/usr/simons_electronics?_trksid=p2047675.l2559
 

Offline alank2

  • Super Contributor
  • ***
  • Posts: 2003
Re: ATMega328P JTAG Debugger/Programmer Recommendation?
« Reply #11 on: January 01, 2015, 04:09:47 pm »
If you are using AS6 the ICE is the way to go, it is very fast and works well in the 328 debugging I've done.

I also made a 100mil adapter board for it to get away from those 50mil connectors:

 

Offline LabSpokane

  • Super Contributor
  • ***
  • Posts: 1899
  • Country: us
Re: ATMega328P JTAG Debugger/Programmer Recommendation?
« Reply #12 on: January 01, 2015, 04:30:42 pm »
What would be the best JTAG programmer for going bare-metal using the Atmega328P?
First of all why would anyone want to use AVRs any more?? Are you some kind of historian, mastering avrcheology??
Simplicity. Ubiquity. I don't need much for what I'm playing with. I also played with the ARM and quickly realized that was the wrong places to start out. It's a good place to end up, but for now, I'd rather have faster results on antiquated technology.
 

Offline janoc

  • Super Contributor
  • ***
  • Posts: 2978
  • Country: fr
Re: ATMega328P JTAG Debugger/Programmer Recommendation?
« Reply #13 on: January 01, 2015, 04:58:28 pm »
If you want to debug ATMegas, you must stick to the Atmel tools - i.e. JTAGICE or AVR Dragon for a low cost options.

Mega328 doesn't have JTAG at all (only Atmel-specific DebugWire). The Megas which do have JTAG (e.g. ATMega32) use a proprietary variant of the commands that is not documented, so a generic JTAG adapter won't work. If you want to use AVRs, you are pretty much stuck with Atmel tools.

 

Offline Simon

  • Global Moderator
  • *****
  • Posts: 14029
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
Re: ATMega328P JTAG Debugger/Programmer Recommendation?
« Reply #14 on: January 01, 2015, 05:04:25 pm »
What would be the best JTAG programmer for going bare-metal using the Atmega328P?
First of all why would anyone want to use AVRs any more?? Are you some kind of historian, mastering avrcheology??
Simplicity. Ubiquity. I don't need much for what I'm playing with. I also played with the ARM and quickly realized that was the wrong places to start out. It's a good place to end up, but for now, I'd rather have faster results on antiquated technology.

Quite, plus the AVR is sturdier than the ARM's. Find me an ARM to work over 85C...... some people need to understand that there are applications broader than their own and just because they have no use for one does not mean someone else does not.
https://www.simonselectronics.co.uk/shop
Varied stock of test instruments and components including EEVblog gear and Wurth Elektronik Books.
Also, if you want to get ripped off: https://www.ebay.co.uk/usr/simons_electronics?_trksid=p2047675.l2559
 

Offline Jeroen3

  • Super Contributor
  • ***
  • Posts: 3369
  • Country: nl
  • Embedded Engineer
    • jeroen3.nl
Re: ATMega328P JTAG Debugger/Programmer Recommendation?
« Reply #15 on: January 01, 2015, 05:17:22 pm »
Quite, plus the AVR is sturdier than the ARM's. Find me an ARM to work over 85C...... some people need to understand that there are applications broader than their own and just because they have no use for one does not mean someone else does not.
They are made on a different lithograph size. That is why they have so few peripherals, withstand 5V, and cannot run very fast.
Above 85 degree your "application and gadget" processors found in the <50$ dev boards are not represented in big numbers. However, there are still plenty capable of 125 degree. Yet, these are more expensive in both part and development cost, and will probably require a call to get bulk. Those temperature numbers aren't the maximum capabilities, just a legal precaution.
 

Offline Simon

  • Global Moderator
  • *****
  • Posts: 14029
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
Re: ATMega328P JTAG Debugger/Programmer Recommendation?
« Reply #16 on: January 01, 2015, 05:21:07 pm »
I can get an ATMega168 in -55 to 150 spec for £4.5 for 5, but Atmel don't do an ARM uC that will match that range. Yes in my case it's more for legal cover, I'd be nuts using an 85C chip at over 85C in a safety critical device.........
https://www.simonselectronics.co.uk/shop
Varied stock of test instruments and components including EEVblog gear and Wurth Elektronik Books.
Also, if you want to get ripped off: https://www.ebay.co.uk/usr/simons_electronics?_trksid=p2047675.l2559
 

Offline MrAureliusR

  • Supporter
  • ****
  • Posts: 366
  • Country: ca
  • frozenelectronics.ca
    • Frozen Electronics
Re: ATMega328P JTAG Debugger/Programmer Recommendation?
« Reply #17 on: January 03, 2015, 09:28:21 am »
DO NOT BUY AN AVR DRAGON!

There are so many reports of it failing, mine included!! I'm still pretty pissed that I paid for a ZIF socket, and now the thing just does not work at all. I've tried hacking on it to no avail. Firmware updates make no difference.

Seriously, cough up the cash for the JTAGICE3! Or, on Newark, I noticed there's a JTAGICE-BASIC for almost the same price as the AVR Dragon...

Just my two cents.
--------------------------------------
Amateur Radio operator VA3XMR
-.-. --.-  -.. .  ...- .- ...-- -..- -- .-.
 

Offline Simon

  • Global Moderator
  • *****
  • Posts: 14029
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
Re: ATMega328P JTAG Debugger/Programmer Recommendation?
« Reply #18 on: January 03, 2015, 09:33:07 am »
Seriously, cough up the cash for the JTAGICE3! Or, on Newark, I noticed there's a JTAGICE-BASIC for almost the same price as the AVR Dragon...

Just my two cents.

The ICE is the latest one out. I have not used mine much but it works fine I don't know if you realise that you're referring to 2 different products. Their latest is just called ICE whereas in the past they made an ICE 1, 2 & 3. I'm not sure if there is any difference I think they just made case cheaper. They are obviously trying to compete with the PICkit
https://www.simonselectronics.co.uk/shop
Varied stock of test instruments and components including EEVblog gear and Wurth Elektronik Books.
Also, if you want to get ripped off: https://www.ebay.co.uk/usr/simons_electronics?_trksid=p2047675.l2559
 

Offline Brutte

  • Frequent Contributor
  • **
  • Posts: 608
Re: ATMega328P JTAG Debugger/Programmer Recommendation?
« Reply #19 on: January 03, 2015, 01:30:32 pm »
The ICE is the latest one out.
I have never tried their at-me-lice but I recommend to be extremely cautious when buying any tools from this company. Before you buy - read all tiny seventeen asterisks on the EULA what BASIC really means. Then study the forums, ask the (avrfreaks) users about the exact tool and exact revision.
My experience says that for Atmel the "BASIC" does not mean the cheaper case as you suggest, but rather that the tool is going to die even sooner than their standard junk.
 

Offline janoc

  • Super Contributor
  • ***
  • Posts: 2978
  • Country: fr
Re: ATMega328P JTAG Debugger/Programmer Recommendation?
« Reply #20 on: January 03, 2015, 01:57:30 pm »
My experience says that for Atmel the "BASIC" does not mean the cheaper case as you suggest, but rather that the tool is going to die even sooner than their standard junk.

Not sure whether die, but e.g. Dragon was crippled to be able to only debug parts with with <32kB of memory, probably in order to not compete with the much more expensive ICE line. They have removed this limitation in 2013 or so, but it wouldn't surprise me if something similar was going on here again.

 

Offline Simon

  • Global Moderator
  • *****
  • Posts: 14029
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
Re: ATMega328P JTAG Debugger/Programmer Recommendation?
« Reply #21 on: January 03, 2015, 01:58:28 pm »
The ICE is the latest one out.

My experience says that for Atmel the "BASIC" does not mean the cheaper case as you suggest, but rather that the tool is going to die even sooner than their standard junk.

Why don't you get a firm grip on some facts. As I said I am not a fan boy but you seem to be quite misinformed. I haven't read the user licence but I did look at the various options available. Basic refers to just the actual unit with the simplest required cable to connect it to the targets. Other options include further cables and adapters for different connectors and chips and possibly a fancy case I don't remember but there are 2 or 3 options.

While the Atmel ice looks a lot like the Atmel ice 3 they made the case for the ice cheaper with no metallised coating.
« Last Edit: January 03, 2015, 02:05:08 pm by Simon »
https://www.simonselectronics.co.uk/shop
Varied stock of test instruments and components including EEVblog gear and Wurth Elektronik Books.
Also, if you want to get ripped off: https://www.ebay.co.uk/usr/simons_electronics?_trksid=p2047675.l2559
 

Offline alank2

  • Super Contributor
  • ***
  • Posts: 2003
Re: ATMega328P JTAG Debugger/Programmer Recommendation?
« Reply #22 on: January 03, 2015, 09:29:40 pm »
The ICE is the latest one out.

The "ATMEL ICE" it the latest one out, see my picture above.  No one should buy a dragon these days, they are many generations of devtool behind.
 

Offline LoyalServant

  • Regular Contributor
  • *
  • Posts: 65
  • Country: us
Re: ATMega328P JTAG Debugger/Programmer Recommendation?
« Reply #23 on: January 05, 2015, 09:24:21 am »
DO NOT BUY AN AVR DRAGON!

There are so many reports of it failing, mine included!! I'm still pretty pissed that I paid for a ZIF socket, and now the thing just does not work at all. I've tried hacking on it to no avail. Firmware updates make no difference.


Dragonslayer!  >:D
Been there, done that... have killed 3 myself.  ::)


I also made a 100mil adapter board for it to get away from those 50mil connectors:

OH I have to do this too.... those 50 mil connectors bug the hell out of me.
Very nice.


Just want to point out that if you get them from Atmel they are cheaper than via a distributor... might ship slower.
I have generally received stuff from Atmel within a week so it's not that bad.
 

Offline janoc

  • Super Contributor
  • ***
  • Posts: 2978
  • Country: fr
Re: ATMega328P JTAG Debugger/Programmer Recommendation?
« Reply #24 on: January 05, 2015, 11:13:12 pm »
The AVR Dragon problems are well documented - along with a fix:

http://www.aplomb.nl/TechStuff/Dragon/Dragon.html

It is a shame that Atmel couldn't be bothered to fix these design problems after so long, but it is hardly a show stopper, IMO.

I am pulling mine out only if I need to program some peculiar chip or don't have ISP wired up for some reason (or it doesn't work because of fuse settings) - i.e. very rarely. And then I am fairly careful, being aware of the issues described in the linked article. I don't actually think I have ever used it to debug any AVR - I have mostly used PICs and ARMs in the cases where debugger was required.

« Last Edit: January 05, 2015, 11:21:12 pm by janoc »
 

Offline funycat

  • Newbie
  • Posts: 1
  • Country: lt
Re: ATMega328P JTAG Debugger/Programmer Recommendation?
« Reply #25 on: August 28, 2015, 10:39:24 pm »
If you are using AS6 the ICE is the way to go, it is very fast and works well in the 328 debugging I've done.

I also made a 100mil adapter board for it to get away from those 50mil connectors:



Thanks for the great design!
And here is my contribution for those who buy the Atmel ICE debugger in the bare PCB form:
Have designed an enclosure for printing on 3D printer.
You can find it published on thingiverse.com at this address: http://www.thingiverse.com/thing:983293

 

Offline alank2

  • Super Contributor
  • ***
  • Posts: 2003
Re: ATMega328P JTAG Debugger/Programmer Recommendation?
« Reply #26 on: August 29, 2015, 02:37:42 am »
Your case turned out great funycat!
 

Offline ebclr

  • Super Contributor
  • ***
  • Posts: 1990
  • Country: 00
Re: ATMega328P JTAG Debugger/Programmer Recommendation?
« Reply #27 on: June 22, 2016, 10:23:26 am »
Found this on taobao appear to be a good accessorize

https://world.taobao.com/item/527019081571.htm?fromSite=main
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf