Bootloading with problems

Hi everybody,
I've built an arduino board by myself. I used the Atmega 328 AU (SMD package) and bootloaded the chip. So far so good, but after the bootloading process the led on pin 13 seems to blink "not rythmic", with random delays. Also uploading a sketch doesn't work properly:

avrdude: stk500_getsync(): not in sync: resp=0x00

I rebootloaded the chip, and it worked as before, but always the same problem with the timing.
My question: What could cause this strange behaviour of the chip? Maybe a problem with the crystal? Is this the sign of a damaged chip?

Note:
Had to modify the avrdude.conf file according to this topic, 'cause I had only the old "without-p-version" of the chip:

I changed the last signature byte to 14, and chose the "Arduino pro mini 3.3v 8MHz 328" board for bootloading.

I hope somebody can help, thanks
Andy

guest1102:
Note:
Had to modify the avrdude.conf file according to this topic, 'cause I had only the old "without-p-version" of the chip:
Arduino Forum
I changed the last signature byte to 14, and chose the "Arduino pro mini 3.3v 8MHz 328" board for bootloading.

Is your board running at 8MHz?

You can create your own personal "hardware\boards.txt" file in your sketch directory. This can contain a custom entry for your board, including the "mega328" processor type so you don't have to much with the internals of AVRDUDE.

Thanks for your really quick help, johnwasser

Is your board running at 8MHz?

Yes, mine is running at 8MHz.

You can create your own personal "hardware\boards.txt" file in your sketch directory. This can contain a custom entry for your board, including the "mega328" processor type so you don't have to much with the internals of AVRDUDE.

I havn't heard anything about this, do you know any documentation about this?

Do you think my problem is caused by the bootloader?

do you have a crystal or you use the internal oscillator ? the way you burned the bootloader the fuses were set for external crystal

as far as i know the led on pin 13 should blink only on power up or on reset if its blinking randomly it may be a problem with the bootloader or worst with you design (something randomly resetting the atmega)
have you tried uploading something to your board with the programmer you used for bootloading to see if it works ? you could also check the atmega with avrdude from the command line like

path_to_arduino_folder\hardware\tools\avr\bin\avrdude -Cpath_to_arduino_folder\hardware\tools\avr\etc\avrdude.conf -vvv -patmega328p -cusbasp -Pusb

change path_to_arduino_folder with the path to your arduino and also the programmer (-c argument) and the port (-P argument)

hope this helps

guest1102:

You can create your own personal "hardware\boards.txt" file in your sketch directory. This can contain a custom entry for your board, including the "mega328" processor type so you don't have to much with the internals of AVRDUDE.

I havn't heard anything about this, do you know any documentation about this?

http://arduino.cc/en/Guide/Environment#thirdpartyhardware

Third-Party Hardware

Support for third-party hardware can be added to the hardware directory of your sketchbook directory. Platforms installed there may include board definitions (which appear in the board menu), core libraries, bootloaders, and programmer definitions. To install, create the hardware directory, then unzip the third-party platform into its own sub-directory. (Don't use "arduino" as the sub-directory name or you'll override the built-in Arduino platform.) To uninstall, simply delete its directory.

For details on creating packages for third-party hardware, see the platforms page on the Arduino Google Code developers site.