Pages: [1]   Go Down
Author Topic: Atmega8 programming error.  (Read 1195 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Full Member
***
Karma: 0
Posts: 203
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

after great failures i was able to burn an arduino bootloader into my Atmega8-8pu, i burned the "minimal arduino bootloader" which uses atmega8's internal crystal, i also uploader the blink sketch and it worked!, but the problem is i can burn any new sketches smiley-sad , im using my arduino to upload sketched into my avr, it shows this error:avrdude: stk500_getsync(): not in sync: resp=0x00
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x66.
note: my arduino's  avr is also present in it when i use it to upload sketches.
Logged

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 212
Posts: 8975
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Where did you get the bootloader and the boards.txt data you are using? 

Did you implement auto-reset in your minimal Arduino?  Without it you will need to hold the Reset button until the "Binary sketch size:"  message appears.

Are you sure that the bootloader was built to use the clock rate and baud rate  specified in the boards.txt file?   If you are using an 16 MHz bootloader on an 8 MHz system the baud rate will be half what the bootloader was built for.  Try changing the baud rate shown in boards.txt to see if that works.  You will have to re-start the Arduino IDE before the change will take effect.
Logged

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

Offline Offline
Full Member
***
Karma: 0
Posts: 203
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

oh ok thank you so much this helps a lot.
##############################################################

atmega8noxtal.name=ATmega8-noxtal @8MHz

atmega8noxtal.upload.protocol=stk500
atmega8noxtal.upload.maximum_size=7168
atmega8noxtal.upload.speed=38400

atmega8noxtal.bootloader.low_fuses=0xe4
atmega8noxtal.bootloader.high_fuses=0xc4
atmega8noxtal.bootloader.path=atmega8_noxtal
atmega8noxtal.bootloader.file=ATmegaBOOT.hex
atmega8noxtal.bootloader.unlock_bits=0x3F
atmega8noxtal.bootloader.lock_bits=0x0F

atmega8noxtal.build.mcu=atmega8
atmega8noxtal.build.f_cpu=8000000L
atmega8noxtal.build.core=arduino

this is the boards.txt part i had to add,
here is the webpage:http://todbot.com/blog/2009/05/26/minimal-arduino-with-atmega8/

Logged

Pages: [1]   Go Up
Jump to: