I'm trying to load a bootloader on an atmega328p to make it work with internal 8mhz oscillator.
I'm using another arduino as ISP, and avrdude -c avrisp -P /dev/ttyUSB0 -p m328p -b 19200 -B 8 -U flash:w:ATmegaBOOT_168_atmega328_pro_8MHz.hex to try to burn the bootloader.
The ArduinoISP sketch uploads fine on the arduino(diecimila) board.
avrdude gives all kind of strange error messages, like saying that device signature is either 0xff0000 or 0x00ff00 or 0xff00ff... etc and also not-in-sync issues.
That's it, i've already tried several methods, but it seems that avrdude is unable to even synchronize since the atmega on the breadboard with minimal configs is already configured for external clock.
There's any other way to accomplish that without buying the crystal/caps ?
Thanks in advance.
If the target ATmega is set for an external crystal you will have to supply one. If you have a second Arduino with a removable chip you can put the target processor in that to give it a crystal.
Thanks for your time johnwasser.
Since both my atmega328P are set to external crystal, how could I use one(into the arduino board) as ISP to burn a 8mhz(internal clock) bootloader on the other(bread board minimal configs)?
brainstorm:
Thanks for your time johnwasser.
Since both my atmega328P are set to external crystal, how could I use one(into the arduino board) as ISP to burn a 8mhz(internal clock) bootloader on the other(bread board minimal configs)?
You need the crystal and load capacitors on your breadboard until you get the fuses set:
Hardware setup:
http://arduino.cc/en/Tutorial/ArduinoISP
Software instructions:
http://www.arduino.cc/playground/Code/MegaISP