Position: Index > Unclassified >

AVRJTAG clone in action

2017-12-23 21:21  
Declaration:We aim to transmit more information by carrying articles . We will delete it soon, if we are involved in the problems of article content ,copyright or other problems.

Building AVR Jtag clone

Finally I found some time to finish AVRJTAG clone. It was hanging for a while on a breadboard with bunch of wires. I have made an Eagle CAD project with PCB layout you will find at the bottom of article.

AVR_JTAG_clone.jpg

 

I didn’t change the circuit very much from previous, just added ISP header(but didn’t have a chance to test it) and transferred to Eagle project as I didn’t find one ready to build:

AVRjtag_SCH.png

 

Description on how to update firmware is in previous article <Build your own AVR JTAG ICE clone>.

Testing AVR Jtag in action

Let’s give a test run. Using Jtag is easy as using AVR Studio simulator. Difference is only that you have to connect JTAG adapter to target board. Im my case I am using Atmega128L Piconomic board.

AVR_JTAG_clone_to_atmega128.jpg

In the board there is a connector for Jtag adapter/debugger. Second option is to set JTAGEN fuse for target MCU.

Atmega128_for_Jtag.jpg

Otherwise AVR Studio will throw an error:

Jtag_Valid_ID.jpg

After hardware is ready lets try with sample project. For this create AVR-GCC project in AVRStudio environment. Then select debugger platform (JTAG ICE) and AVR MCU(in my case Atmega128):

debug_platform.png

Write a simple program which controls a button and LED: button_led.c

Compile program and start debugger with run command. You can work with JTAG debugger as with simulator a€“ stepping, auto-stepping, break-points, memory views, changing register and memory values and so on.

debugging.png

One difference that program is running in real world. So it is easy to debug platform with additional peripherals connected to MCU. And of course real time execution.

Project files for Eagle CAD and boot-loader are here: avr_jtag_clone.zip

Good luck.

 


Reprinted Url Of This Article:
http://www.scienceprog.com/avrjtag-clone-in-action/