MCUdude / MegaCore

Arduino hardware package for ATmega64, ATmega128, ATmega165, ATmega169, ATmega325, ATmega329, ATmega640, ATmega645, ATmega649, ATmega1280, ATmega1281, ATmega2560, ATmega2561, ATmega3250, ATmega3290, ATmega6450, ATmega6490, AT90CAN32, AT90CAN64 and AT90CAN128
Other
374 stars 115 forks source link

Trouble uploading sketch to Arduino Mega2560 after burning bootloader #199

Closed ChadMatsalla closed 1 year ago

ChadMatsalla commented 1 year ago

Hi there,

I think this is a documentation issue. I'm using a two Genuine Arduino Mega2560s. Not a bare chip or clone board.

Once the bootloader is flashed onto a to a target (the LED on the target board is flashing twice when it's powered up) how do I flash a sketch onto the modified board? https://github.com/MCUdude/MegaCore/issues/186#issuecomment-1145598684 seems to indicate that I can use the on-board USB-Serial but no combination of avrdude commands will do anything for me.

Am I correct that this is the correct command? The compiled sketch is blink.

"/Users/chad/Library/Arduino15/packages/MegaCore/tools/avrdude/7.1-arduino.1/bin/avrdude" "-C/Users/chad/Library/Arduino15/packages/MegaCore/hardware/avr/2.2.2/avrdude.conf" -v -V -patmega2560 -carduino -P/dev/cu.usbmodem14101 -b57600 -D "-Uflash:w:/private/var/folders/xp/5lxl6k0x53lcbnc9_6gj0ty80000gt/T/arduino/sketches/D8B38F946CD2265AE6A4FA11724A97CA/Blink.ino.hex:i"

I've tried absolutely everything and I can provide considerable detail. Before I do that I'm just wondering if there's something blindingly obvious I'm missing.

Thank you,

Chad Matsalla

ChadMatsalla commented 1 year ago

I'm writing this as a courtesy to anybody who comes up against this. The correct baud rate for me was 115200. Thanks!