Society of Robots - Robot Forum
Software => Software => Topic started 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
-
What is your ISP frequency?
-
It sets automatically to 1Mhz
-
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)
-
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
-
Did you set the mega8 to 16mhz on your own? They dont come out of the factory at 16mhz.
-
i checked the specs on digikey and it says 16Mhz.
Anyways can someone help me with the signature problem ?
-
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.
-
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
-
Thank you Airman00 Your the best ^^
-
Thank you Airman00 Your the best ^^
::)
What ended up being the issue?
-
It was the frequenc, I put it on 125 khz and it works
You helped me a lot airman00 Thanks again !