Build your own AVR JTAG ICE clone

After unsuccessful attempts to run few programs who drive peripherals like USART and Timers on Atmega128 I decided to make JTAG debugger. I hope it will allow me to see what is really happening – is may atmega128 corrupted or something is really wrong with software or with hardware.

avrjtag.png

 

The most widely used AVR JTAGICE clone is AVR miniICE which is compatible with original AVR JTAGICE. AVR JTAG mainly is used for target board debugging in real world. And of course you also can program your AVR’s with it.

To build this board is very ease as its schematic is simple:

AVR_JtagICE Schematic

 

List of materials you will need:

Amount-Type-Title

2-470R-R1, R2

1-10K-R3

2-22p-C7, C8

6-100n-C1,C2,C3,C4,C5,C6

1-LED-G-D1

1-LED-R-D2

1-ATmega16L-DD1

1-MAX3232-DD2

1-7.3728 MHz-Q1

All secret in its firmware, but don’t worry – it is ready to go.

AVR MiniICE has following properties:

  • Is compatible with AVR JTAG ICE;

  • It is capable to debug and program Atmega microcontrollers with JTAG interface;

  • Real time debugging support;

  • Regular updates of firmware to support new types of AVR;

  • Updates can be done directly from AVR Studio;

  • Power supply from 2.6 to 6V;

  • Connects to AVR Studio through COM port;

  • Two LED indicators (“Power” and “Connect”).

Now AVR studio 4 supports following AVR MCU’s (may be already new ones included):

  • ATmega128, ATmega128L, AT90CAN128

  • ATmega16, ATmega16L

  • ATmega162, ATmega162L, ATmega162V

  • ATmega165, ATmega165V

  • ATmega169, ATmega169L, ATmega169V

  • ATmega32, ATmega32L

  • ATmega323, ATmega323L

  • ATmega64, ATmega64L

How to set up this adapter to be ready. Main thin is that you have to upload the firmware to it. For this you will need ISP programmer. First of all you will need to upload a Bootloader (or Alternative bootloader )to Atmega16 to be able to update firmware to newest one located in AVR Studio directory.

When bootloader is programmed program fuses like this (Using PonyProg):

Bootloader_fuses.JPG

 

Then connect AVR miniIce cable to PC COM port and start AVR Studio. In AVR Studio Tools menu locate AVR Prog. And browse for file upgrade.ebn in AVR Studio directory (by default in “C:\Program Files\Atmel\AVR Tools\JTAGICE\Upgrade.ebn ”):

avrjtag_avrstudio1.png

 

After AVR is programmed (usually you will get som error message – don’t care about it), you can program AVR fuses to its previous state – in order to disable bootloading:

JtagICE_fuses.jpg

 

This is it. You have done. If you did it correctly it should work. Here is my prototyping view:

AVR_JTAGICE_prototype.JPG

 

As I mentioned, AVR MiniICE can be used as AVR programmer as well. Goto Tools->Program AVR. Then select AVR programmer JTAG ICE and desired COM port. After this you will be directed to JTAG ICE dialog window where you can program you target AVR:

AVR program with JTAGICE

 

How to start debugging will be in following articles.

Download Another AVRICE project with SCH and PCB files as images.

 

 

 

 

 

Blogsphere: TechnoratiFeedsterBloglines
Bookmark: Del.icio.usSpurlFurlSimpyBlinkDigg
RSS feed for comments on this post
 |  TrackBack URI for this post

New on WinAVR Tutorial
Running TX433 and RX433 RF modules with AVR microcontrollers,
Sometimes in embedded design you may want to go wireless. Might be you will want to log various readi …
Programming AVR ADC module with WinAVR,
Most of AVR microcontrollers have Analog to Digital Converter (ADC) integrated in to chip. Such solut …
New on WinARM Tutorial
What are differences between WinARM and WinAVR,
Everyone who is working with AVR microcontrollers knows this powerful tool – WinAVR (http://win …
LPC2000 watchdog timer,
As in all microcontrollers watchdog timers purpose isto reset microcontroller after reasonable amount …

102 Responses to “Build your own AVR JTAG ICE clone”

  1. Jkx Says:

    I’m wondering why they used a Mega16, and not a smaller one like a Mega8…

    Is there a way to get the source code ?

  2. scienceprog Says:

    I guess this is because firmware is too big for atmega8. The code is provided is bootloader which for loading the main firmware and it is bigger than 8kb.
    For bootloader you can find many code examples, but JTAGICE firmware is ATMEL’s property and it only provides compiled file needed to update the firmware for atmega16.

  3. Jkx Says:

    Ok. I understand this stuff right now.

    Many thanks for your great job ! ;)

  4. luigi Says:

    Hi all,
    is there any link where I can download better images of schematic?
    You’re talking about next article on how to use it. Was it already published? Where?
    Thanks a lot.

  5. scienceprog Says:

    One of Jtag variants with many pcb formats you can download here:
    avr_jtag.zip
    I am going to write article about how to use AVRJtag step by step. I am just waiting for my development board to be finished as my previous had some failure.

  6. luigi Says:

    Hi all,
    I’ve made the circuit, then I’ve programmed my ATmega16 following the instructions above, but the JTAG hasn’t worked. I’ve wondered I’ve made some mistake while setting fuses so I’ve tried to repeat all the procedure but neither PonyProg nor a professional programmer (DataIO) has recognized the chip. Can you give some hint how to recover the chip or I have to give it a decorous burial?
    Where is the critical step in the procedure? I’d like to avoid killing another micro….
    cheers, Luigi.

  7. scienceprog Says:

    I think the only thing you might done incorrectly was fuses. If you did like in screenshots your Atmega16 at least had to be recognised by ponyprog. While working with AVRPRog be sure to uncheck BOOTSTR fuse - it is only needed when you upgrade Jtag (Atmega16) firmware.
    Of course there is probability that Atmega16 just have died. You can try to repair fuses by attaching external clock source.
    For me above steps have worked well, jus I hadn’t chance to test Jtag on target board but setting Atmega16 jtag and updating firmware went without problems.

  8. loman Says:

    I want to repace the RS232 with a USB cable ,what kind of changes are necessary, i want to build one use USB rather than serial,bcoz my computer doesnt have a serial25

  9. NyomanSad Says:

    i want to try this tools, but the schematic is to small, i can not read it .. i need a bigger schematic ..

    tanks.

  10. scienceprog Says:

    I have updated JATAG schematic. Now it is in PDF format and you can zoom it to any size.

  11. NyomanSad Says:

    Tanks for the new schematic in pdf format. I ask again.., can i replace ATmega16L-DD1 with ATMega16 or ATMega8535\ATMega8515, replace MAX3232-DD2 with MAX232, replace 7.3728 MHz-Q1 with 4 Mhz or 6.6864 Mhz or 8 MHz .., because i can not find that components .

    Tanks

  12. NyomanSad Says:

    i see the size of boot.hex = 41 KB, but the flash size of M16 = 16 KB, so .. is it enough ??

    tks

  13. scienceprog Says:

    Do not look too much at the hex file size. It is always bigger than it is burned to Flash. In hex file is more additional information which is not burned to flash.
    And yes you can interchange ATmega16L-DD1 with ATMega16 as they are same microcontrollers just supply voltages differ. Again MAX3232-DD2 and MAX232 they are pretty same, just MAX3232 is used in 3.3V systems. If you power Atmega16L with 3.3V, then use MAX3232, if you will use ATmega16 and 5V supply then use MAX232 or you have to comply the voltages with additional circuitry. I don’t think that you can use Atmega8535 instead of Atmega16 and Crystal like 4Mhz without changing and rebuilding boot file. You can find this JTAG clone built on Atmega163 if you need.

  14. scienceprog Says:

    I am still waiting for my Atmega128 dev board to be finished that I could give a try to this JTAG clone.

  15. nyoms Says:

    Firstly i try my M16 usart communication to my pc. i try, make small tester serial program in c language , observe the transmit data from M16 on the hyper terminal.., and the results is M16 usart and pc comm port is not communicate (data is not displayed in hyper terminal). For comparison, when i using the same MAX232 with the same circuit in smaller avr like at90s2313, attiny2313, at90s4433 there is no problem on communication between uart and pc comm port. Why my m16 usart can not connect to pc comm port ??, and i think my m16 is not dead, because i try the ADC and display the result in LCD (i use bascom avr) and that is run (no problem).
    Please help me ..
    Tanks ..

  16. scienceprog Says:

    Don’t be sure that your Atmega16 UART is OK. I had similar problem with Atmega128 Only ports were working properly but not other peripherals.

  17. koushik Says:

    hi,
    if i use 11.0592 MHz crystal then, do i have to change any thing on th hex file. if possible can u send the source code for the boot loader.

    Koushik

  18. koushik Says:

    hi,
    i am waiting for your reply,

    Thanks,

    Koushik

  19. scienceprog Says:

    Hy,
    Sorry for delay…
    You have to match the freq , as the Jtag program downloaded into the M16, is the Original Atmel binary , that expects a 7.3728 (or close to that)
    Some guy replaced the original 7.3728 Mhz by 7.345Mhz and worked nicely as - 280Hz difference did not change the baud rate for the UART.
    If you need you can use like a 14.746 Oscillator (TTL output) , and a flip-flop to divide the freq by 2.

    Anyway why would you change crystal?

    There are many versions of boot-loaders and I don’t really need a source code as there are ready to burn hex files. I have found one source file written in basic language. If you need I can share with you.

  20. koushik Says:

    Hi,
    Thanks for your reply but can u tell me one thing i got 7.2MHz xtal, so can i use it. And pls share the basic code with me at least i can now some thing about it.

    Thanks,

    Koushik

  21. scienceprog Says:

    7.3728-7.2=is about 1728kHz. I wouldn’t dare to predict the behaviour. You can try and let me know.
    It doesn’t seems to be a problem to get 7.3728MHz crystal as they are widely used.
    P.S. Basic file sent ;)

  22. koushik Says:

    hi,
    thanks for your help, i’ll check the code and reply asap.

    thanks,

    koushik

  23. Jan Says:

    Hi
    I have build MiniIce as above. After programming the ATmega16 the AVR-Studio gives me this message: “The OCD JTAG adapter was detected but the target device did not return a valid JTAG ID. Please check the points below…ect”
    I have checked the points below and it seems to me OK.
    One more thing, when I was programming the ‘upgrade.ebn’ in “AVRprog” window in “Device” I had “ATmega163″ but I couldn’t change it.
    Thanks for any help.
    Bye Jan

  24. nyomansad Says:

    I want to tell Mr. ScienceProg that I have been successfully built this mini JTAGICE (i am using Mega 16).
    Thanks very much for your great idea and job.
    Thank you very much.

    regards

    nyoms

  25. Jan Says:

    Hi
    I found where was my problem. After I connected to JTAG MiniIce some ATmega, it appeared that the JTAG device is working correctly.
    Thanks to Mr. ScienceProg.

    Bye

  26. crowinu Says:

    What’s the difference between the 2 bootloaders provided on this site?

  27. scienceprog Says:

    They are pretty thesame, just from different sources. Iam using Bootloader

  28. crowinu Says:

    Thanks.

  29. datk45d Says:

    I’ve used atmega16l, 7.3728 crystal and followed the above steps. But when I connect miniIce to COM port and select AVR Prog in AVR studio 4, it said that ” No supported board found, AVR Prog version 1.40″. Could you give me some hints ?

  30. scienceprog Says:

    I guess you forgot to set JTAGEN fuze on target MCU. Seems JTAG adapter is working.

  31. datk45d Says:

    No, I did. Even I’ve tried two IC, and I’ve tried twice times each IC. I haven’t used PonyProg but I’ve set the fuse exactly. After not success, I have select “ICE50 Upgrade” in menu Tools, it said that it can’t find ICE, then it begin looking for bootloader, and finalny it can’t find bootloader. Have you ever met the same problem?

  32. blackeagle Says:

    I’d met the same problem.I updated one time, but trying again AVRstudio message “No supported board found, AVR Prog version 1.40″. Fortunately, jtag works well. How can I update again?

  33. datk45d Says:

    Hi Mr blackEagle ! I don’t understand what you said. You’ve met the same problem, then you tried other times and got the JTAG work. Is it right? And now what do you want to update?

  34. scienceprog Says:

    “No supported board found, AVR Prog version 1.40″ message means that Jtag adapter is OK and it tries to communicate to target board. so I would look for problems there. Might be wrong connector or some error in target board.

    But its hard to say why ICE upgrade cant find bootloader. I would look for hardware mistakes first (is crystal 7.3728 Mhz, is there PCB OK, is COM OK, is Connector OK), then I would check if the AVR Studio is with newest update, and again I would check the fuses. As I didn’t face that problem I can only guess.

  35. datk45d Says:

    I use 7.3728MHz Crystal, and I made the circuit on plastic board. The crytal is connected between pin 12 and 13. Two 22p capacitors connect those pins to GND(pin 11). Also have 10k+10u for Reset, 0.1u between pin 31 and GND. Pins 30, 32, 38, 10 are conneted to Vcc (5V). And there are for 10u for max232,…. When I selected “AVR Prog”, I saw that there some signal on RXD of AVR, but there is nothing on TXD. I have checked the fuses, but there is no wrong. I use AVR Studio 4.12. I have done the same for all my three AVRs, but the results are the same.

  36. datk45d Says:

    Hi Mr.Scienceprog ! My board has operated OK. That was my mistake, I have forgotten the resistor between Pin17 and GND. Thank you very much for you idea !

  37. datk45d Says:

    I think you should load the flash after you update using “AVR Prog”, so shorten the steps of making JTAGICE

  38. scienceprog Says:

    datk45d, glad you made it.
    - I didnt understand what do you mean by “load after update”…

  39. Luis Says:

    Great article, I just used to program a ATmega16 and all ok. Now I will try to start debugging with it.

  40. Sarshar Says:

    my target board uses Atmega8 which seems doesn’t support JTAG port at all, right ?
    so I think I don’t need jtagice programmer …

  41. scienceprog Says:

    No Atmega8 doesn’t have JTAG port.

  42. rom Says:

    Is possible to replace mega16 by mega168?

  43. scienceprog Says:

    With this firmware and AVRStudio upgrades - not.

  44. Muralidhara S.N. Says:

    Is possible to replace mega16 by mega162?

  45. scienceprog Says:

    Is possible to replace mega16 by mega162?
    No these devices aren’t compatible.

  46. Denis Says:

    Can I change max232 to FTDI232??? I saw one LED, what LED is show??

  47. scienceprog Says:

    I don’t know if debugging software would treat virtual RS232 port normally. Cant say for now.
    LED in circuit indicates JTAG activity.

  48. Denis Says:

    Can I programme mega16 by Byte-Blaster with AVReal?
    And I have clone JTAGICE but placed FTDI instead MAX, and it was worked any times, and now refuse… what do me???

  49. Adrian Gin Says:

    Hey nice work scienceprog!! I haven’t yet made it, but its a great idea.
    To hell with the $500 Atmel programmer!!!

  50. crowinu Says:

    I am trying to upgrade the firmware through avrprog, and when avrprog is loaded the device is set to atmega163 instead of atmega16 BOOT. What can i do?

  51. scienceprog Says:

    I cant say exactly for now, but once I had such situation. Maybe you have burnt atmega163 bootloader instead of atmega16. Or there is something wrong with detection with your adapter.

  52. crowinu Says:

    i burnt this bootloader : http://www.scienceprog.com/wp-content/uploads/2006/11/boot.zip

    what adapter are you referring to?

    when i tried the other bootloader , this error popped up “No supported board found, AVR Prog version 1.40″.

  53. crowinu Says:

    AVR JTAG ICE clone working. I still got the Atmega163 instead of atmega16 BOOT.

    Thanks.

  54. Delta Says:

    Hi,
    I found your PDF file was defferent from the SCH files
    as images.What is more,the original SCH seem to
    used as a JTAG ICE tool and JTAG programmer.
    On#13 ,MAX3232 is used in 3.3V systems,but it is also
    used in 5v systems refered to Maxim’s datasheet. If you
    use ATmega128,I suggest MAX3232 is used.

  55. Martin Says:

    Hi, i suppose its possible to replace the ATmega16 with a ATmega32?
    And what does the bootloader do? As i understand it, once the bootloader is in place, my circuit is like an empty JTAG ICE ready to recieve firmware update through rs232? I get the “No supported board found, AVR Prog version 1.40″ message”, when selecting AVRProg from the tools menu, I have no other MCU connected to the JTAG (target debug IDC10) which may be the problem, but I was thinking that after the bootloader is installed (using AVRISP mkII), next step would be to update firmware (which shouldnt need anything connected to “IDC10″?. Also datk45d mentioned selecting ICE50 upgrade from the tools menu? is this correct?

  56. loman Says:

    when i try to load the bootloader in to mega16, it comes with an error message “write failed” after it write. it that something wrong here? or just the way it is???

  57. nyomansad Says:

    Dear Sir,

    I make a litte test program(Led Blink) and then i download to my ATMega128 using this JTAG-ICE. I have been success download this program to the Mega128 status message: micro is detected, programming success, and verify also success), but the micro is not work. But when I debug the Mega128 using this JTAG in AVRStudio, the micro is work (led can blink). So, what is the problem (in debug mode->micro is work.., but when download success->micro is not work) ?? May be I wrong arrange the Mega128 settings when I download ??
    Please help me.

    Thanks.

  58. nyomansad Says:

    Dear Sir,

    Where is your article about how to use AVRJtag step by step (specially about JTAG as programmer and target is Mega128) ??

    Thanks.

  59. scienceprog Says:

    I hope you read this article as there I put some steps on working with Jtag Clone.
    Working with Jtag clone

    (in debug mode->micro is work.., but when download success->micro is not work) ??

    This is strange behavior. After entering debugging mode stop debugger and remove JTAG cable. Restart circuit. Is it working. Seems like there are problems with programming mode. FYI: when debugging program is also uploaded to flash and remains here.

  60. nyomansad Says:

    Dear Sir,

    1. After removing JTAG cable, the Mega128 circuit is still not working. Would you like show me the Mega128 fuse setting when you download a program (Led hex) to the Mega128 ??
    2. In my JTAG menu ,in first tab (General tab) ,I see the Programming Mode combo is blank (why ??), so i am not select anything in this combo. Do you think this condition is the cause of the problem ?
    3. On your article “Working with Jtag clone ” I see there is no boot hex in the zip file. Are there differences boot hex in that article againts boot hex on this article (Build your own AVR JTAG ICE clone, bread board version) ?

    Thanks.

  61. scienceprog Says:

    Hy nyomansad,
    3. Yes yo uare right i didn’t put boot.hex in package - now I did.
    Other questions I wil answer as soon as I get to my board. Probably it is better to shift this discussion to forum Forum
    as I will need to post some pictures and it is easier to track messages.

  62. Adrian Says:

    Hi there,
    I am impressed by your AVR JTAG DIY programmer.
    I would like to build one, however I only have MEGA32’s at hand. I’m sure that the MEGA32 can be used as a substitute, since it has larger memory space etc.

    I am aware of differences between the MEGA32 and MEGA16, however I am having some trouble getting the JTAG software recognised, I have gotten the Bootloader working however.

    Would it be possible for you to download your an Intel HEX file off the working JTAG programmer and email me a copy? It would greatly help and I am close to getting it working on the ATMEGA32. I can get the EBN file uploaded, and I have edited it accordingly in an attempt to get it working.

    However to do this, I needed to use a disassembler to get it back into ASM code. At this stage there are some ‘broken’ links and some strange commands that I would like to compare with a working program.

    (Since the interrupt vectors and boot memory for the 16 are different to the 32, it would help if I could work off a ‘working’ copy)

    Regards,
    Adrian

  63. sangeet Says:

    hi scienceprog,

    i wanted to kno if the miniICE u hav developed above is compatible with the Atmel JtagICE mkII used for the at90usb series. i’m working with an at90usb1287 and am lookin for a jtag circuit for the same. please help!!!

    rgds,
    Sangeet

  64. scienceprog Says:

    No this adapter won’t work with JtagICE mkII.

  65. SwK Says:

    Hi ScienceProg,

    Really a nice engineering work. I am trying to use mega32 instead of mega16 will it be a problem and also In India, in my local town i am really finding hard to get that crystal, so my question is if i change the bootloader source code according to crystal i select, will the AVR ICE work?

    ~SwK

  66. Muralidhara S.N. Says:

    Hi
    Science program
    This really good work building the JTAG ICE Debugger. I am using Win AVR for compiling codes it will generate. coff (make Extcoff)files and loading in AVR Studio (Version 4.12) and I am able connect to target board with help of JTAG ICE . Once I will start run or debugging the program the debugging pointer will show’s in Dissembler window. I am not able to debug in C source code window.
    At present it showing Hardware version 0xC2, Software version 0×7F. Please help me how can I set up for debugging with C source code

    Thanks
    Muralidhara

  67. tuanpa Says:

    Thanks, It works!

  68. tuanpa Says:

    Hi,

    This JTAG clone works with the atmega16L target as I tested. However, It can not find the target if connecting to the atmega128L.

    Do you have any experience on this (eg., firmware update)?

    Thanks

  69. scienceprog Says:

    It worked for me check out http://www.scienceprog.com/avrjtag-clone-in-action/

  70. Wang Yanchun Says:

    Can i replace 7.3728MHz crystal with 8 crystal in your AVR_JTAGICE schematic?

  71. scienceprog Says:

    No you cant do this because this will lead to adapter communication errors with computer.

  72. Wang Yanchun Says:

    First of all,thank your reply. If i replace 7.3728MHz crystal with 8 crystal in your AVR_JTAGICE schematic ,will it affect USART and will it affct my simution ?I have used your schematic ang boot.hex ,but jtag_ice can not link to com1. can you give me a boot.hex which comptile with your schematic?

  73. Wang Yanchun Says:

    why do not your schematic compatile wiht your boot.hex? Can you give me a boot.hex?

  74. tuanpa Says:

    Hi, the problem is my atmega128 board, not your jtag clone. Now, it works!

  75. Wang Yanchun Says:

    tuanpa,do you use boot.hex or alternatine boot.hex ? when you input your boot.hex into mega16 ,is the led is lignt?

  76. hiutopor Says:

    Hello

    Very interesting information! Thanks!

    G’night

  77. tuanpa Says:

    hi Wang Yanchun, I use boot.zip in the article. I didnt notice that the led light or not.
    My current Jtag-clone using prototype board. I’m working on the PCB for the new one. When completing and programming the boot.hex. I will notice and tell you if the led light.

  78. Wang Yanchun Says:

    Thanks a lot

  79. Wang Yanchun Says:

    hi tuanpa,is it necessary for comptileing the fuse of the mega16 in the aim board ?

  80. Wang Yanchun Says:

    Who can help me?

  81. Wang Yanchun Says:

    hi ,tuanpa,can you tell me your QQ to me?My QQ is 154293949.

  82. tuanpa Says:

    2 Wang Yanchun:
    I just follow the arcle step by step and it works.

    2 scienceprog:
    I got some Atmega1280. Do you know any clone circuit that can program the device?

  83. david Says:

    hi there ,

    can you tell me if i can program an arm32 chip’s with this jtag ice clone or can you give me one that can do it other than the wiggler i have an avrisp mk2 already but the price of a jtagice is unbelievable help me please

    cheers

    david

  84. Wang Yanchun Says:

    0K!my jtag ice have worked!
    sorry,I have not haved any clone circuit that can program the device.

  85. Martin Says:

    Sorry about that.

    Anyway, i was rambeling about my finds on this programmer.

    I am trying to build it and i, like many, fail on the avrprog issue.”No supported board found”
    I get this error even when i have no programmer connected to my system.

    Inorder to build it, i have loaned a mkII. Therefor i wonder if i MUST use ISP-programming, or if JTAG is ok.

    If it is ok, would it be possible to add the correct fuse settings screenshot from avrstudio aswell?

    I am also confused about the schema and BOM. The dont match compleatly, if im not misstaken. I only see one LED in the shema, but there are two in the BOM. Also the names and values of the capacitors and resistors dont appear to match.

    Apart from that, everything seems great. When I get this to work, i can add a mechanical outline for a veloboard/stripboard that fits nicely in a cheap plastic box. looks almost professional :-)

    // Martin

  86. scienceprog Says:

    Adapter from this thread
    http://www.scienceprog.com/avrjtag-clone-in-action/
    should work without problem. At least it worked until I somehow damaged it.
    Martin, about which circuit are you talking as there you may find few of them.

  87. Martin Says:

    Hi again scienceprog.

    From the top of this page( http://www.scienceprog.com/build-your-own-avr-jtagice-clone/)
    i find a link ( http://www.scienceprog.com/wp-content/uploads/2006/11/jtag.pdf)

    Just below that link i find the BOM.

    Should i use a diffrent schematic?

    // Martin

  88. scienceprog Says:

    I was building this:
    avr_jtag_clone.zip
    from http://www.scienceprog.com/avrjtag-clone-in-action/
    The circuit you pointed served as reference, but it also sould work.

  89. Martin Says:

    I am starting to get the feeling that i must have done something seriously wrong i my layout.

    I will redo it on a breadboard.

    Darn it

    // Martin

  90. Martin Says:

    It is perhaps a good idea to mention that the COMport used by AVRprog will only be COM1 to COM4. No other comports will be probed.

    // Martin

  91. Atmega16 debugging with JTAG Says:

    [...] is available in binary from Atmel. There is a project which aims to create a cheap JTAG ICE clone - Build your own JTAG ICE clone. If you have no time to build a PCB or do soldering, you can get your clone from here - you can [...]

  92. kiko Says:

    i want to say to scienceprog
    i have made the circuit and it is worked well:)

    and i would like to thank him very mush

  93. XavierGr Says:

    Hello, I am trying to recover an atmega16 that is ‘bricked’ because I set the fuses wrong.

    Will this programmer be able to program it if the jtagen fuse is disabled because of a mistake?

    Please clarify this because I will have to built a parallel programmer instead in order to save the unit.

    Thanks.

  94. SwK Says:

    Hi Guys,
    I have made a USB version of this JTAG clone, if intrested please post a request. i will send you the link. and the complete hex files + ckt.

    Thanks to scienceprog for his contribution.

    ~SwK

  95. scienceprog Says:

    Hy SwK, Of course we are interested. Feel free to post link here. It would be nice to write short review here on how to build and run it. If you are interested, use contact form: http://www.scienceprog.com/contact-form/

  96. MykeX Says:

    hi, sienceprog does this JTAG suport debuging wire in ATtiny 2313 ?

  97. Corwin Says:

    debugWire in tiny2313 is totaly different from JTAG. this device cannot be used for dW.
    you gonna need Dragon or orig. JTAG mkII

  98. MykeX Says:

    my attiny 2313 ’stuck’ in debuging wire mode and i
    I just want to reeneable ISP . and i have no debuger just ISP programer and a max232 RS232 to TTL level konverter. please help…

  99. Corwin Says:

    to disable dw you need
    - AVR Dragon or JTAGICE mkII to connect via dw line and disable it
    or
    - parallel programmer, to disable dw fuse

    or you can get new avr :)

  100. Sim Says:

    is there any firmware for atmega32 version? so pity I don’t have any atmega16 while have a lot atmega32s

  101. mago Says:

    where i can find the firmware for JTAG ice clone? i was searching this page but i cant see any link to download the firmware. Do i need to register or something?

  102. loman Says:

    Hi sir

    Thank you your great article, i made this JTAG long time ago, but recently, i upgrade the avr studio tp 4.14. the JTAG device only can program through the jtag port, so i decide to upgrade the firmware as well. After I try many times, i decide to reload the bootloader and start from the beginning.

    problems c0me after i program the M16L. I can open the AVRprog and get the upgrade.ebn, but it comes with a error message “..file doesnt fit into flash” when i try to program the flash.

    I never seen this before and it seens nobody has this kind of experience. Anyway, the chip is good, because i got the same result with different M16.

Leave a Reply