problem programming attiny167 via isp with jtagice2 using avrdude

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

Hi,

 

I am having problems programming a tiny167 with the jtagice2 in isp mode using avrdude (version 6.2).    The 167 was missing in the avrdude.conf so I had added it from here: https://github.com/TCWORLD/ATTinyCore/issues/15

 

I get the error message "bad response to set parameter command: RSP_FAILED".

 

When checking the signals with a scope I can see the reset going low (pin 6) but there is no clock on pin 1.   Reset goes high again after about 800ms, so I think avrdude has given up at that stage.    I tried two different jtagice2 with the same result.   I believe the SCK does not require a pull-up.

 

I have a few questions now:

1. does the avrdude.conf file has an influence on the signals i.e. can a faulty entry be the cause of the clock missing?

2. if yes, can anybody confirm that he/she succesfully programmed a 167 in isp mode with the config file contents in the link above?

3. does avrdude 6.2 support the Atmel-ICE?   I tried that a few weeks ago without sucess although I believe I have all the relevant udev files modified correctly.

 

Regards,

H.

This topic has a solution.
Last Edited: Wed. Sep 21, 2016 - 02:57 PM
This reply has been marked as the solution. 
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Ok, I did a bit of digging.

 

First thing I dug out is an AVR Dragon.   This at least created some ISP signals that make sense.   The first programming command 0xa5 0x53 0x00 0x00 I could see, the next sequence came too late (or too fast) for my dodgy scope to see.    The signature was still not read correctly.   Slowing down the dragon from the default bitrate using '-B xxxx' fixed the problem for me although the documentation says -B only works with the JTAGE ICE...

 

Don't know what is wrong with the JTAGICE2; find it unlikely that both are dead (they work fine with other AVR in JTAG and PDI mode) but I would consider this programming problem as solved.
 

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

-B works with most intelligent programmers e.g. all Atmel programmers.
you use -i with bit-bang LPT programmers.

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

Hi David,

 

thank you for clarifying this.   The documentation that google presented to me on the world wide web said JTAG ICE only.

 

Regards,

H.