Open the Marlin.ino
2. Compile the code
Choose Board Type : Tools –> Board –> Arduino MEGA 2560
Start to compile
3. Change to the location of arduino firmware.
/tmp/build2709516825013937380.tmp
4. Upload firmware to the board
Method 1:
Execute
sudo avrdude -p m2560 -c stk500v2 -b 115200 -P/dev/ttyUSB0 -U flash:w:Marlin.cpp.hex:i -D
[happy@localhost build4709796185245500912.tmp]$ sudo avrdude -p m2560 -c stk500v2 -b 115200 -P/dev/ttyUSB0 -U flash:w:Marlin.cpp.hex:i -D
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.01s
avrdude: Device signature = 0x1e9801
avrdude: reading input file "Marlin.cpp.hex"
avrdude: writing flash (116672 bytes):
Writing | ################################################## | 100% 17.43s
avrdude: 116672 bytes of flash written
avrdude: verifying flash memory against Marlin.cpp.hex:
avrdude: load data flash data from input file Marlin.cpp.hex:
avrdude: input file Marlin.cpp.hex contains 116672 bytes
avrdude: reading on-chip flash data:
Reading | ################################################## | 100% 13.54s
avrdude: verifying ...
avrdude: 116672 bytes of flash verified
avrdude: safemode: Fuses OK (E:FF, H:D8, L:FF)
avrdude done. Thank you.
Method 2:
Using arduino GUI to upload the file.
Reference:
0 意見:
張貼留言