Sorry I don't have an idea about the "initialization failed, rc=-1" error, but I may be able to help you with your "fried" chip:
n1c0l45:
then i fried it by trying to burn the bootloader without capacitor or quartz... my mistake!
You probably didn't damage the chip at all. When you do a Tools > Burn Bootloader in the Arduino IDE, there are actually two processes:
Set fuses on the microcontroller according to the boards.txt definition for the board selected from the Tools > Board menu.
Flash the bootloader to the microcontroller.
If you set the fuses for the microcontroller to use an external clock source, but there is no external clock attached, then you will no longer be able to program the chip over ICSP because the processor is not running. The solution is to connect an external clock source like your crystal, after which the problem will be solved.
The 'RESET' pin on the ISCP header shouldn't be going through a capacitor- it should be directly connected to the reset pin on the microcontroller itself.
Thanks for the answer, you're right! i'm gonna try!
thanks
pert:
Sorry I don't have an idea about the "initialization failed, rc=-1" error, but I may be able to help you with your "fried" chip:You probably didn't damage the chip at all. When you do a Tools > Burn Bootloader in the Arduino IDE, there are actually two processes:
Set fuses on the microcontroller according to the boards.txt definition for the board selected from the Tools > Board menu.
Flash the bootloader to the microcontroller.
If you set the fuses for the microcontroller to use an external clock source, but there is no external clock attached, then you will no longer be able to program the chip over ICSP because the processor is not running. The solution is to connect an external clock source like your crystal, after which the problem will be solved.
BJHenry:
The 'RESET' pin on the ISCP header shouldn't be going through a capacitor- it should be directly connected to the reset pin on the microcontroller itself.