hi all,
i build a little Arduino compatible board with a atmega8 uc. i'm uploading the code with a ftdi connector (sparkfun) under ubuntu 9.04. in the beginning it works fine but after a couple of uploads (3-4) the ftdi kills the controller during or after uploading the code. and the serial port is greyed out in the serial port menu. the /var/log/messages shows
"kernel: [ 348.986078] ttyUSB0: 1 input overrun(s)" replugging the ftdi does not help. i have to restart the machine to use the ftdi again.
some chips just loose the code and i can reprogram it later. some are not programmable anymore. but sometimes it is possible to burn the bootloader (mkII) again but uploading code it not possible anymore. it seems that the tx/rx ports are killed.
i tried a couple of things:
- put a 1k resistor in-line the rx pin and another for the tx pin. like in the original Diecimila layout. without any result.
- to disable the dtr line with the same result.
- i enabled the brown-out detection fuse bit which helped to solve an other problem that was caused by the slow rising/falling power supply. (also erased the chip)
[EDIT] i tried the same now under windows xp. and it seems that the problem does not occur. is this a linux problem? avrdude? ftdi driver?
[EDIT2] currently the atmegas don't get killed (brown-out detection helped). just the ftdi gets unusable until a reboot.
am i overlooking something very basic? did anybody had similar problems?
i would be very thankful for help.
cheers,
ralf
btw: i use Arduino 0016 on ubuntu 9.04 and the sparkfun ftdi basic 5v adapter. power comes from a atx pc power supply.