avrdude and jtagice

Go To Last Post
6 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1


I have JTAGICE programmer and I'm trying to program my atmega164p with it and avrdude(7.0 version).

And all my attempts are vain cause there always is getsync() error code -1.

How to manage with it? Or are there any other tools for programming through jtag ice on linux?

p.s. there are my error and programmer's photo in attachments.

thank you in advance

 

Moderator - here are the picture attachments inlined..

 

 

Attachment(s): 

This topic has a solution.

flamesky

Last Edited: Mon. Jul 4, 2022 - 05:11 PM
This reply has been marked as the solution. 
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

avrdude -c? shows

  jtag1            = Atmel JTAG ICE (mkI)
  jtag1slow        = Atmel JTAG ICE (mkI)
  jtag2            = Atmel JTAG ICE mkII
  jtag2avr32       = Atmel JTAG ICE mkII im AVR32 mode
  jtag2dw          = Atmel JTAG ICE mkII in debugWire mode
  jtag2fast        = Atmel JTAG ICE mkII
  jtag2isp         = Atmel JTAG ICE mkII in ISP mode
  jtag2pdi         = Atmel JTAG ICE mkII PDI mode
  jtag2slow        = Atmel JTAG ICE mkII
  jtag2updi        = JTAGv2 to UPDI bridge
  jtag3            = Atmel AVR JTAGICE3 in JTAG mode
  jtag3dw          = Atmel AVR JTAGICE3 in debugWIRE mode
  jtag3isp         = Atmel AVR JTAGICE3 in ISP mode
  jtag3pdi         = Atmel AVR JTAGICE3 in PDI mode
  jtagkey          = Amontec JTAGKey, JTAGKey-Tiny and JTAGKey2
  jtagmkI          = Atmel JTAG ICE (mkI)
  jtagmkII         = Atmel JTAG ICE mkII
  jtagmkII_avr32   = Atmel JTAG ICE mkII im AVR32 mode

 

Your photo looks like a JTAGICE-1 clone.   So you should choose -c jtag1 or -c jtagmkI

 

Oh,  the JTAGICE-1 will not work with ATmega164P.

It only works with older chips like ATmega16, 32, 64, 128

 

David.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

"Dare to be naïve." - Buckminster Fuller

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Welcome!

FlameSky wrote:
Or are there any other tools for programming through jtag ice on linux?
Yes if you're willing to move to EDBG.

Debugging AVR microcontrollers on Linux, with Bloom | AVR Freaks

 

"Dare to be naïve." - Buckminster Fuller

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Oh, thank you very much for quick answer. It is really as you have said. By the way, how do you differ jtag1 from jtag2 and 3? Just cause there are not recognition symbols on this programmer. And there were no documentation about it in the internet market where I ordered it. Just "jtag ice" and it's all.

flamesky

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

Thanks, i didn't know that

flamesky