Arduino Forum

Using Arduino => Microcontrollers => Topic started by: Fluepke on Mar 10, 2011, 02:59 pm

Title: Serial Single Sided Bootloader problems
Post by: Fluepke on Mar 10, 2011, 02:59 pm
Hi,

I am new to Arduino. I have a Duemilanove with ATmega 328p and a selfmade Serial Single Sided v3. The Duemilanove is used as the programmer. Uploading a Bootloader ("ATmegaBOOT_168_diecimila.hex") using cmd has already worked, but it seems like the ATmega 168 is using its internal crystal (Hope the right word, am from Germany and 14).
The Led lights 2s then it is out for 20s and then it lights again...
When I manually (using Arduino as ISP) upload the Blink sketch. The LED blinks 4x quicker than it says in the sketch, when I use the Serial connection in my sketch I only receive spaces.

Do I have to change fuses, how do i do this?
I can't upload sketches via my USB to Serial Converter.

Thank you
Title: Re: Serial Single Sided Bootloader problems
Post by: Coding Badly on Mar 10, 2011, 07:43 pm
The easiest solution is to use the Arduino IDE to burn the bootloader.  In addition to uploading the bootloader, the IDE sets the fuses.
Title: Re: Serial Single Sided Bootloader problems
Post by: Coding Badly on Mar 11, 2011, 07:54 am
It works!


Excellent.

Quote
Can I directly burn the hex via Arduino ISP


Yes.

Quote
when I use classes like Wire?


The libraries you use make no difference when it comes to uploading.
Title: Re: Serial Single Sided Bootloader problems
Post by: Coding Badly on Mar 12, 2011, 04:06 am
Quote
these boards will be used for my own model railway control


Nice.

Quote
Because I²C is not bidirectional


I believe I²C can be "multi-master".  If I remember correctly, the Wire library supports multi-master after a modification.  Unfortunately, I don't have the experience to help any more than that.

Quote
So, how quick is the I²C on the Arduino?


I can't help with that question either.  I suspect you'll find more help here...
http://arduino.cc/forum/index.php?board=11.0