Burn new marlin firmware and bootloader on 2560 board with atmega 1280:
My steps:
I used Arduino IDE 1.6.12 including Avrdude 6.3, wich I used for programming Arduino Nano's and ESP8266 board and USBasp V2 AVR programmer.
1: Make USBASP working with Avrdude.
a:Follow the steps in
http://forum.arduino.cc/index.php?topic ... msg2862244 and replace the windows USBasp driver.
2: Connect USBasp with the 2560 board.
a: Remove the power jumper of the USBasp.
b: Disconnect SD and LCD connectors of 2560 board.No need to remove other connectors.
c: Connect the USBasp with the SD and LCD pins on the board according the instructions of this forum. Do not connect VCC (5V)! In my case the connectors seems to be turned, but the pinout was correct.
d: Power printer.
3: Make copy of the flash firmware and fuse and lock bits.
a: Start CMD prompt (I used a win7 machine).
b: Make a temporary directory.
c: Somehow using the avrdude.conf in the full path didn't workout. I copied from C:\"Program Files (x86)"\Arduino\hardware\tools\avr/etc/avrdude.conf to my temp dir.
d: copy flash content: C:\"Program Files (x86)"\Arduino\hardware\tools\avr/bin/avrdude -c -Cavrdude.conf -v -patmega1280 -cusbasp -Pusb -Uflash:r:c:\tempdir\ctcfirmwareorg.hex:i In my case a copy of Marlin 1.0.0 stock firmware.
e: copy fuses and lockbits: C:\"Program Files (x86)"\Arduino\hardware\tools\avr/bin/avrdude -c -Cavrdude.conf -v -patmega1280 -cusbasp -Pusb -Ulock:r:c:\tempdir\lockgt2560.txt:i -Uhfuse:r:c:\tempdir\hfusegt2560.txt:i -Uefuse:r:c c:\tempdir\efusegt2560.txt:i -Ulfuse_dd:r:c:\tempdir\lfusegt2560.txt:i I got an error of the lfuses. They don't apperantly exist. Ignore this error and alle the files should be created on the tempdir except the lfuses file.
4: Burn bootloader.
a: Using Arduino IDE -> Programmer USBasp, then Burn bootloader.
5: Flash firmware.
a: Turn off power printer, reconnect SD and USB connectors.
b: Poweron printer.
c: Connect USB of the printer to PC with Arduino IDE.
d: Select the poper comm port in Arduino IDE.
e: Download Marlin-PI3_Pro_B.zip
http://www.geeetech.com/forum/viewtopic.php?t=17046. This is Marlin 1.0.2 version.
f: Load it up in Arduino IDE.
g: Fix it by renaming fpos_t variables in SdBaseFile.h and SdBaseFile.cpp to another name like filepos_t fixes it fully.
http://forums.reprap.org/read.php?146,691608
h: Modify config.h according your needs. I modified PID settings. Inversion othe X-axis (went wrong way).Homing parameters. Movements and calibration seting.
i: Compile and burn.
Watch for error through all the step, correct if needed.
Firmware seems to be working good now. Made a first test cube, looking good.
Good luck and thanks to all people within this and other forums.
Kind regards,
Edautz