Society of Robots - Robot Forum

Software => Software => Topic started by: Jeevon on January 03, 2009, 05:21:20 PM

Title: Cannot transfer the program to the Atmega8
Post by: Jeevon on January 03, 2009, 05:21:20 PM
Hi,

I've looked all over the forum but I could'nt find any helpful post. So i decided to post my problem.
I am trying to load the hex file into the atmega8 with avrisp mkII but all it tells me is that :

Getting isp parameter.. SD=0x03 .. OKOK
Reading FLASH input file.. OK
Setting mode and device parameters.. OK!
Entering programming mode.. OK!
Erasing device.. OK!
Programming FLASH ..  FAILED!
Leaving programming mode.. OK!

I checked for shorts and it seems there is no shorts
I appreciate your help
THank you
Title: Re: Cannot transfer the program to the Atmega8
Post by: airman00 on January 03, 2009, 05:23:26 PM
What is your ISP frequency?
Title: Re: Cannot transfer the program to the Atmega8
Post by: Jeevon on January 03, 2009, 05:24:47 PM
It sets automatically to 1Mhz
Title: Re: Cannot transfer the program to the Atmega8
Post by: airman00 on January 03, 2009, 05:39:07 PM
It sets automatically to 1Mhz
The ISP frequency needs to be less than 1/4 of the microcontroller's frequency.

ISP Frequency is selected by Clicking Setting over here:
(http://imakeprojects.com/Projects/avr-tutorial/Gfx/medium-res/m_8.JPG)
Title: Re: Cannot transfer the program to the Atmega8
Post by: Jeevon on January 03, 2009, 06:00:35 PM
The atmega8 clock speed is 16Mhz so i figured 1Mhz is ok but it doesnt want to change the frequency it puts back to 1Mhz also i have a problem with the signature...

I`ve attached a print screen of it
Title: Re: Cannot transfer the program to the Atmega8
Post by: Razor Concepts on January 03, 2009, 07:45:16 PM
Did you set the mega8 to 16mhz on your own? They dont come out of the factory at 16mhz.
Title: Re: Cannot transfer the program to the Atmega8
Post by: Jeevon on January 03, 2009, 08:56:24 PM
i checked the specs on digikey and it says 16Mhz.
Anyways can someone help me with the signature problem ?
Title: Re: Cannot transfer the program to the Atmega8
Post by: airman00 on January 03, 2009, 08:59:26 PM
are you sure your circuit is correct?

Btw change the ISP frequency to 125 khz - your ATmega comes shipped set at 1mhz.
Then try to read the signature again.
Title: Re: Cannot transfer the program to the Atmega8
Post by: TrickyNekro on January 03, 2009, 09:02:01 PM
16MHz is it's top speed, not the speed out of the box... Anyways...
Set your ISP speed to minimum and check....
Also and more important AVR ISP programmer don't show 00000000 signature
But another non zero signature.... if ISP speed isn't right...

So also check your wiring....
And please, be more pleasant...
We are not obliged to answer...


Best Regards, Lefteris
Greece
Title: Re: Cannot transfer the program to the Atmega8
Post by: Jeevon on January 03, 2009, 09:09:49 PM
Thank you Airman00 Your the best ^^
Title: Re: Cannot transfer the program to the Atmega8
Post by: airman00 on January 03, 2009, 09:14:25 PM
Thank you Airman00 Your the best ^^
::)

What ended up being the issue?
Title: Re: Cannot transfer the program to the Atmega8
Post by: Jeevon on January 03, 2009, 11:47:00 PM
It was the frequenc, I put it on 125 khz and it works

You helped me a lot airman00 Thanks again !