programm enable: target doesn't answer. 1

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

While using my development board for different applications I encountered this error 

*****************************************************************

avrdude.exe: set SCK frequency to 1500000 Hz
avrdude.exe: error: programm enable: target doesn't answer. 1 
avrdude.exe: initialization failed, rc=-1
             Double check connections and try again, or use -F to override
             this check.

avrdude.exe done.  Thank you.

******************************************************************

and I couldn't program my atmega16 IC anymore, I replaced the IC with a new one and things worked perfectly again until the same error popped again and again.

Now I have 4 atmega16 ICs that I cannot program.

One thing I did noticed was that the code with which I last programmed the ICs is still there and the IC works fine with it

but I can't change it.
I double checked my connections and I am still not sure why I am experiencing this error again and again
please help me rectify or prevent this

 

 

Development Board:- http://embeddinator.com/product/...

USBasp Programmer:- http://embeddinator.com/product/...

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

FIRST, DO NOT USE the -F option!

 

You may have set the device to a clock frequency that is too low for the 1.5MHz SCK.

Try avrdude with an SCK of less than 250kHz (perhaps as low as 125kHz).

You can check the fuses and see if the CKDIV8 fuse is programmed (low).

David (aka frog_jr)

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

a1man wrote:
I replaced the IC with a new one and things worked perfectly again until the same error popped again and again.

What do you mean new one? New like virgin? How it can work perfectly then? And what do you mean work perfectly?
.
MG

I don't know why I'm still doing this hobby

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

For the frequency there is a 16MHz crystal on the development board so I changed the fuse bits from default to Low fuse bit is "FF" High fuse bit is "99".
Also I cannot check or change the fuse bit if I want to. I am guessing there is not much to be done with programming the IC, is there any way I can reset the whole IC to its default condition using some circuit?

Attachment(s): 

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

New IC means I bought a new IC and replaced it with the old one on the development board. For the same circuit and code the the IC was working in normal condition but after some time the same error occurred on IC no. 2 then on IC no. 3 and 4. I don't use it very frequently and I am completely sure that voltage levels and circuit were correct.

 

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

Look at the datasheet for fuse setting or google fuse calculator and look what you had done to the fuse.
.
MG

I don't know why I'm still doing this hobby

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

this error appeared quite randomly, after all, I changed the fuse bits for only one purpose ie to change the clock freq. of the microcontroller ie 

CLSEK=1111

SUT=11

I checked the datasheet and its completely fine changing these bits.

Is there any way I can change the microcontroller to its default conditions?

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

Maybe something is not right with your board or your programmer, like bad soldering or bad thru hole.
If you set your fuse according to your attachment pic then it shouldn't be a problem at all.
If you can, use other programmer which is proven good to make sure the problem is not the programmer.

a1man wrote:
Is there any way I can change the microcontroller to its default conditions?

HVPP, if you have the paralel programmer. Look at the mega16 datasheet. But I don't think it's necessary.
.
MG

I don't know why I'm still doing this hobby

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

Changed the board as well as the programmer but no success