Windows
If you're using Windows, you can use the versions of avr-gcc and avrdude that are bundled with Arduino, or install them yourself:
AVR-GCC and avrdude for Windows http://winavr.sourceforge.net/
SCons site http://www.scons.org/
Get the source
There are two ways to do this: download a tagged zip/tarball, or pull down the latest source.
Getting the latest source
You can get the latest code from the G3Firmware github repository. First install git, and then clone the tree:
git clone git://github.com/makerbot/G3Firmware.git
If you're new to git, definitely check out the tutorials.
If you've already cloned the tree in the past, you can update it by changing to the G3Firmware directory and typing:
git pull
Getting a tagged zip or tarball
If you don't have git installed or don't want to install it, you can get a tagged build from the GitHub download page.
http://github.com/makerbot/G3Firmware/downloads
Running the build
Once avr-g++, scons, and avrdude are in your path, you're pretty much ready to go. Switch to the
G3Firmware/v2
directory and type: scons
to build the motherboard firmware. If you have a cable hooked up to the board, you can upload the firmware with the scons script: scons port=/dev/NAME_OF_YOUR_SERIAL_DEVICE upload
You'll have to manually press the reset button on the board as you run the upload.
If you are trying to build firmwares for motherboards other than the default Cupcake board, you can define the platform you want to compile for with:
scons platform=rrmbv12
scons platform=mb24
You'll also have to define the platform when you upload to a board that is not the default rrmbv12.
Building and uploading the extruder firmware is similar; you'll just use the SConstruct.extruder script instead of the default SConstruct file. You specify the script with the -f flag:
scons -f SConstruct.extruder
scons -f SConstruct.extruder port=/dev/NAME_OF_YOUR_SERIAL_DEVICE upload
Like the motherboard, if you need to upload to any extruder board that is not the default Cupcake board you need to define the platform:
scons -f SConstruct.extruder platform=ecv22
scons -f SConstruct.extruder platform=ec36
You can also define whether or not the board will be using relays or stepper extruders using the "relays=false" or "stepper=true" tags.
Don't forget you'll have to manually press the reset button on the board as you run the upload.
Remember, to upload to an extruder board, you must have your USB-serial cable connected correctly to the extruder board itself! You cannot program an extruder board via the motherboard.
|