Pages: [1]   Go Down
Author Topic: Standalone atmega8...BIG,BIG Problem  (Read 643 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 7
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hy guys, i am new on this forum and i have a problem. I searched the internet for solutions to my problem and seems that i can not find answers or i can't understand them. I made a sketch in IDE and i want to upload that sketch to an stand alone atmega8 on a breadboard. I have an Arduino mega 2560 v3.  Please help me solve this annoying thing. I apologize if this subject was discussed over in other forums (i did not find). Thank you and excuse my english.
Logged

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 180
Posts: 8084
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

http://arduino.cc/en/Tutorial/ArduinoISP
Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Offline Offline
Newbie
*
Karma: 0
Posts: 7
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thank's for replay but that tutorial make reference to ATmega328p (mine is atmega8) and to a board "Arduino Duemilanove or Nano w/ ATmega328" (mine is ARDUINO MEGA 2560).
Logged

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 180
Posts: 8084
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You should be able to adapt those instructions easily to the ATmega8 and the Arduino you have.
Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Offline Offline
Newbie
*
Karma: 0
Posts: 7
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

i tried already but ...nothing, i will try again. thanks
Logged

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 180
Posts: 8084
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

One thing to watch out for is that the SPI pins on the Mega are different from the SPI pins on the UNO.

The pin numbers to use are spelled out at the top of the Examples/ArduinoISP sketch.
Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

the land of sun+snow
Offline Offline
Faraday Member
**
Karma: 149
Posts: 2790
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

When you burn the ArduinoISP sketch into the mega2560 chip, you have to select the
Mega2560 board. Then, when you burn the bootloader into the target board, you have
to select the correct target processor, which will normally be Arduino Uno for the 328
chip, but will have to be something else, as appropriate for your atmega8 chip.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 7
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

i tryed that........avrdude: Yikes!   Invalid device signature.
                                      Double chech connections and try again, or use -F to override this check.

Thank you for reply.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 7
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

About the pins i used ...pin53 from arduino mega is conected to pin 1 of the atmega8, pin52 to pin 19, pin51 to pin 17, pin50 to pin 18, and 5v to pin 7 and GND to pin 8. There is also a 16M crystal with 2 x 22pF.
And i tried to burn bootloader i selected as target the Arduino NG or older w/ ATmega8.
 thanks to all.
« Last Edit: March 30, 2013, 04:06:08 pm by cryoterror » Logged

the land of sun+snow
Offline Offline
Faraday Member
**
Karma: 149
Posts: 2790
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
use -F to override this check.
You need to get the processor type correct, not try to override it.

Quote
About the pins i used ...pin53 from arduino mega is conected to pin 1 of the atmega8, pin52 to pin 19, pin51 to pin 17, pin50 to pin 18, and 5v to pin 7 and GND to pin 8. There is also a 16M crystal with 2 x 22pF.
I would have to look up the correct SPI pins for the Mega board. However, I have a
feeling, as indicated before, that you just don't have the proper bootloader selected
for your chip. That's what "Invalid device signature" indicates to me. Which target board
are you trying to use when burning the bootloader?
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 7
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

im not using any target board. i am using a breadboard with crystal and capacitors on it. Thank you. How do i select the proper bootloader?
« Last Edit: March 30, 2013, 04:26:41 pm by cryoterror » Logged

the land of sun+snow
Offline Offline
Faraday Member
**
Karma: 149
Posts: 2790
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes, for the 3rd time, you have to find a target board that's in the list and which uses
the same processor [atmega8] that you're using. Then, you'll get the right signature.
So, go look at all the boards in the Board list, and find one that uses your same chip.
The xtal frequency also needs to be the same.

Otherwise, you can go find some 3rd party bootloader, and patch up the boards.txt
file in the IDE to include anew processor variant, but that's really not something you
want to mess with if you don't have to.

And then go re-read what I said in replay #6, about ArduinoISP [mega2560] vs
bootloader [atmega8].
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 7
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I deed exactly what you sad .There is no reason to be upset. The problem seems to be  the atmega8. I tried another one and it works .
Logged

Pages: [1]   Go Up
Jump to: