Burning Arduino (328/168) Bootloader with Arduino Mega (ATMega1280)!

Описание к видео Burning Arduino (328/168) Bootloader with Arduino Mega (ATMega1280)!

I fought and fought and fought with the darn thing until I realized I had it wired incorrectly.
Arduino as ISP relies on the SPI bus to transact the communications. On an older 168/328 the SPI bus is on pins 10 11 12 13. On a Mega(1280/2560) the SPI bus is moved over to the 50 51 52 53 pins!

Thankfully, it's all translated in the ISP Sketch -
Slave reset - destination pin 'reset', connect to source 53
MOSI - destination pin 11, connect to source 51
MISO - destination pin 12, connect to source 50
SCK - destination pin 13, connect to source 52

write the arduino isp sketch to the Mega, then change the board settings to the target (in my case dumilenove with 328) and com port stays the same.

burn bootloader, and tada!

ArduinoISP Tutorial:
http://arduino.cc/en/Tutorial/Arduino...

Комментарии

Информация по комментариям в разработке