Let's Make Robots!

i cant load a code on to my atmega328

hello, sorry for my bad english ... i am french.and new to this... anyway i just bought several atmega328 , i am using a 3-pin external ceramic oscillator i tried to upload a code into it and i get a (500sdk error) ( the default arduino bootloader is aparently already on the chip , as my furnisher mentioned , plus i get the pin 13  to fade-in as the default arduino code)

anyway i tried to make a paralellprogramer ... noting to do i get an error message i am not able to eigther burn the bootloader or load a code

here is a picture of my setupwhole setupceramicceramic oscialtor

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

hello  i solved the problem ... it was a circuit mistake ... i conected the reset capacitor to the ground ... but it goes in between rts (on my ftdi) and reset pin on the atmega ... no need to fry the chip even with the default fuse setting.... arduino takes em both xtal and resonators  but this fuse setting thing shure does look fun to fool around with... oh yeah and on the arduino mini ftdi (the one i use ) the rx goes on the rx arduino pin and the tx on tx ... not rx to tx and tx to rx


thanks guys for alll your help

i will post my machine as soon that it's halfway done


You've probably already checked these but hey,

Make sure the rx of the ftdi goes to atmega tx and rx atmega to tx ftdi.

The auto reset is dependant on your computers os and config, along with the avalible breakout from the ftdi. Its easier to press the reset just after the arduino software say something along the lines of compiled to size...

The resonator should be fine, and makes no real world difference in this case just saves on the 2 capacitors (technically there inside).


Hope it helps.


First of all you should use a 16 MHz crystal oscillator, not the ceramic one, because if the Atmega has been configured for the default Arduino board it's fuses are setup for a crystal.


What difference does it make? I have made several Arduinos using the resonator without any problems.

After checking the datasheet, external crystal and Ceramic resonator have the same settings for the Atmega8A. The 328 does not seem to mention ceramic resonators.

... else why would they bother having a ton of fuse settings? 

I'm not arguing with you that it does not work with a ceramic one, I never tried it.

I have 3 arduino boards, 2 with crystals, and one with a ceramic res, all three work fine.

I think the settings are more for RC, LC and low frequency or low power crystals because they have longer startup times or require different internal dividers.

ah as for XTAL I usualy put the longest startup time and its fine... but sometimes the same settings appear on two different SUTCLK or what register... by the way :| damn don't know why...


if those have arduino bootloader than 16mhz XTAL is what you need with two 22pf cap-s

I used ceramic fuses and doesn't work with XTAL... I fused for XTAL... not working with ceramic... so simple... the bootloader won't be erased when programing in a certan way by the way...


I suggest full reseting the atmega328 with a parallel programmer and this should remove the bootloader... and get eclipse + avr plugin + winavr... go on avrfreaks and start learning... its more useful... and more fast... arudino change a digital pin from low to high or high to low in 100 cycles... in C only 4 cycles in ASM only 1 cycle... by the way...


The RESET must NOT be connected to ground via 10K... it MUST BE conected to VCC 5V....

don't play with serial programmer... use usbtiny...

usbtiny works with stk500 bridge + null-port emulator aka com0com ;) you can even make yourself the board from ladyada...


"The RESET must NOT be connected to ground via 10K... it MUST BE conected to VCC 5V...."

This is definitly wrong. When you connect RESET directly to VCC you can't program your controller any more. With ISP or with bootloader.