2013年2月11日月曜日

How to flash Marlin for Printrboard (got from printrbot)

More details: here

Printrboard Rev. D from Printrbot

Firmware: marlin
Bootloader: Atmel's DFU Bootloader
Some seller sells Printrboard with LUFA's CDC Bootloader.  This instruction is for Printrboard with DFU Bootloader.



1. Install softwares to PC (I only tested Windows 7 64bit)
Aruduino:  http://arduino.cc/en/main/software
Teensyduino: http://www.pjrc.com/teensy/td_download.html
Marlin: https://github.com/ErikZalm/Marlin
Atmel's FLIP software: http://www.atmel.com/tools/FLIP.aspx

2. Setup USB driver
Install the BOOT jumper
Connect the board with PC, turn on the board.
Press and release the Reset button.
Driver installation will be failed, select the correct drivers in the directory that you installed Aruduino.

3. Configure Marlin
----------------------------------------------------------------------
Configuration.h

#define MOTHERBOARD 81


#define TEMP_SENSOR_0 6

#define TEMP_SENSOR_BED 6

For mechanical endstop switch
const bool X_ENDSTOPS_INVERTING = false; // set to true to invert the logic of the endstops. 
const bool Y_ENDSTOPS_INVERTING = false; // set to true to invert the logic of the endstops. 
const bool Z_ENDSTOPS_INVERTING = false; // set to true to invert the logic of the endstops. 

Depends on stepper motor
#define INVERT_X_DIR true    // for Mendel set to false, for Orca set to true
#define INVERT_Y_DIR false    // for Mendel set to true, for Orca set to false
#define INVERT_Z_DIR true     // for Mendel set to false, for Orca set to true
#define INVERT_E0_DIR false   // for direct drive extruder v9 set to true, for geared extruder set to false

Uncomment for EEPROM support
#define EEPROM_SETTINGS
#define EEPROM_CHITCHAT

Uncomment for SD support
#define SDSUPPORT // Enable SD Card Support in Hardware Console
----------------------------------------------------------------------
Pins.h
line 997
#define FAN_PIN            16  // Fan
----------------------------------------------------------------------

4. Compile Marlin
Run Aruduino
Choose Teensy++ 2.0 from the Arduino Tools-->Board menu
Compile firmware within Arduino.
Compiled HEX file is saved in the temp folder.
Ignore Teensyduino.

5. Load firmware using FLIP
Open Atmel's FLIP software.
Select the target device: AT90USB1286. Select Communication medium as USB. Click Open.
Open compiled HEX file within the FLIP software.
Make sure the Erase, Blank Check, Program, and Verify checkboxes are checked.
Click the Run button
When finished, turn off the board, remove the BOOT jumper.

0 件のコメント:

コメントを投稿