Go Down

Topic: diy atmega8 arduino not uploading. please help! (Read 1 time) previous topic - next topic

rene812

When i found the http://arduino.cc/en/Tutorial/ArduinoISP tutorial i wanted to make my own stand alone arduino.
I bought a couple of atmega8s and put the bootloader on them with my arduino mega2560.
That worked fine and i can see the bootloader working on my diy arduino.(three flashes of the led).
But i cant get it to upload a sketch to it.
When i try to upload it's saying: avrdude: stk500_getsync(): not in sync: resp=0x00
Does anyone know how to get it working propperly?

The complete diy arduino is based on : http://arduino.cc/en/Main/Standalone

thanks for looking into it!

spcomputing

Need a little more information...  Which USB2UART are you using?  Which board did you use?

Here is the Old Version (boards.txt)
Code: [Select]
atmega8.name=Arduino NG or older w/ ATmega8

atmega8.upload.protocol=arduino
atmega8.upload.maximum_size=7168
atmega8.upload.speed=19200

atmega8.bootloader.low_fuses=0xdf
atmega8.bootloader.high_fuses=0xca
atmega8.bootloader.path=atmega8
atmega8.bootloader.file=ATmegaBOOT.hex
atmega8.bootloader.unlock_bits=0x3F
atmega8.bootloader.lock_bits=0x0F

atmega8.build.mcu=atmega8
atmega8.build.f_cpu=16000000L
atmega8.build.core=arduino
atmega8.build.variant=standard


But, if you used Optiboot you are going to need to create an Atmega8-UNO entry.

Pictures of you project can be helpful :)

rene812

thanks for your reply!

I used my arduino mega2560 to bootload the atmega8.
I made some pictures but i don't know how to upload them here.
for uploading my sketches I use: CP2102 USB to TTL Converter Module which i bought from here: http://dx.com/p/cp2102-usb-to-ttl-converter-module-red-146141

is it possible I somehow burned out my atmega?

spcomputing

Quote
I used my arduino mega2560 to bootload the atmega8.


Okay... so you used the Arduino as ISP?  Which board did you select (i.e. which bootloader did you put on the ATmega8?)?

Quote
I made some pictures but i don't know how to upload them here.


The little arrow with the orange text "Additonal Options..."

Quote
CP2102 USB to TTL Converter Module which i bought from here:


Cool, at least this CP2102 has the DTR/RST broke out.  Did you install the driver?
http://www.silabs.com/products/mcu/Pages/USBtoUARTBridgeVCPDrivers.aspx

Did you put a 0.1uF capacitor between RST on the USB2UART and pin 1 on the Atmega8?  This allows the auto-reset, other than that, you will have to use the reset button just before the upload (when the sketch size appears).

Quote
is it possible I somehow burned out my atmega?


It is always possible ;)  But I do not think we can make that determination, unless you have already release the "blue smoke" from the chip.

rene812

I uploaded the isp sketch on my Mega2560 and then selected the atmega8 as board. for programmer is choose arduino as isp.
after that i burned my bootloader.

I did use the RST pin but from now i will! thanks for the suggestion!
I installed the exact driver you were reffering to.

luckily I haven't seen blue smoke yet so it should be able to work :)

I added two pictures of my PCB and the used hardware.

thanks for the support!

Go Up