I can upload only one sketch to a homebrew Arduino clone

Hi,

I'm new to the forum, ant to Arduino too... I have built a custom Arduino clone board, which works perfectly, on hardware level.
I used a blank 328P, and have written bootloader to it successfully with Arduino IDE and paralell programmer. I treated the board as an Arduino Pro/Mini with 328P, 16MHz, 5V.
My main problem is, that after i burn a bootloader to it, i can upload one sketch via USB-serial-TTL cable, and the next cannot be loaded. I have read about Paralell Programmer and fuse problems, but i have checked fuses with AVRdude, readed them, and all are OK. I tried to rewrite them, it worked, but i still cannot upload anything after the first sketch.

I can upload anything via the programmer, and serial communication is working (have tested it with Serial.println) too, only sketch uploading via USB is a big problem to me.

My fuse bits :
Extended: 0x5
High: 0xDA
Low: 0xFF
Lock : 0x0F

Are these the correct settings?

Thanks for any help!

From the Arduino Mini entry in the boards.txt file:

mini328.bootloader.low_fuses=0xff
mini328.bootloader.high_fuses=0xd8
mini328.bootloader.extended_fuses=0x05
mini328.bootloader.path=optiboot
mini328.bootloader.file=optiboot_atmega328-Mini.hex
mini328.bootloader.unlock_bits=0x3F
mini328.bootloader.lock_bits=0x0F

Your high fuse byte is different. Also, did you use the correct bootloader file?

Thanks! It solved the problem.
I wonder that UISP reads different values from Atmega than Avrdude, but it was useful to me to set the fuse bytes - avrdude reported a file i/o error when i tried to write them.

Now i'm able to upload sketches to my board :slight_smile: Sorry for dumb question, i possibly misread the fuse information, or found a wrong data on Google :S