English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

2 answers

I have used a JTAG ICE mk II on ATtiny44's with success using Studio 4 & IAR workbench. What problems do you have?

Several problems I had to resolve.

1.)Proper JTAG connection to correct pins. I use a 3x2 header on wirewrap circuits and a CHIP CLIP for SOIC PCB interface.
2.) Use of 12V 500Ma power supply to suppliment USB power to JTAG ICE prevents corruption of uC during programming.
3.) Low power during programming can scramble configuration fuses causing internal oscillator to be deselected. Requires STK500 to reset with high voltage programming (see #2 above to prevent from happening)
4.) Need to use series resistors to keep attached circuits from loading down JTAG signals.
5.) Before powering down device make sure you have exited DEBUG mode other with you won't be able to reestablish communication. There is a DOS command to direct the JTAG ICE MKii to reset the DEBUG fuse otherwise Studio 4 won't be able to reestablish communications.
6.) JTAG need control over reset pin so you can't use the reset pin for anything meaningful or have the reset pin disabled.
7.) You need to use a slower ISP frequency than the STK500 frequency. Change these settings when connecting via the Board TAB. ISP freq should be 1/4th of STK500 freq. Try slowing these frequencies down and keep the 1:4 ratio (or further slow the ISP freq)
8 Confirm communication by reading the signature bytes .(ADVANCED TAB)


For further assistance check out the AVR forum (see link)

Also look into the free version of the IAR C compiler

AVR embedded Workbenck ( do a search on teh IAR site "AVR Workbench")
This is a limited version of the full program (The disassembler plus floating point math is not supported and there is a 4K compile limit) You can call unlimited assembler (written in Studio4) from within the IAR C code via functions

2007-10-10 12:09:03 · answer #1 · answered by MarkG 7 · 0 0

Hi,

atmel site has a very good collection of application notes.
And it is very easy to make your own programming cable.

2007-10-10 05:28:28 · answer #2 · answered by devidasbhonde 2 · 0 0

fedest.com, questions and answers