Skip to content

NVBots/OctoPrint-FirmwareUpdater

 
 

Repository files navigation

OctoPrint Firmware Updater

This plugin can be used to flash pre-compiled firmware images to your printer from a file or URL.

Firmware Updater

Works with boards with Atmel AVR family 8-bit MCUs (Atmega1280, Atmega1284p, and Atmega2560) MCUs, and Atmel SAM family 32-bit MCUs (Arduino DUE).

Setup

Install via the bundled Plugin Manager or manually using this URL:

https://github.com/OctoPrint/OctoPrint-FirmwareUpdater/archive/master.zip

The appropriate flashing tool also needs to be installed. For 8-bit MCUs the tools is avrdude, for 32-bit MCUs the tool is bossac.

AVRDUDE Installation

AVRDUDE needs to be installed on the server where OctoPrint is running.

Raspberry Pi

sudo apt-get update
sudo apt-get install avrdude

Ubuntu (12.04 - 14.04 - 15.04)

Information about the package needed can be found here Ubuntu avrdude package

sudo add-apt-repository ppa:pmjdebruijn/avrdude-release
sudo apt-get update
sudo apt-get install avrdude

BOSSAC Installation

Bossac cannot be installed using a package manager as the packaged version is out of date and will not work. Installation from source is straight-forward.

Raspberry Pi / Ubuntu

cd ~/
sudo apt-get install libwxgtk3.0-dev libreadline-dev
wget https://github.com/shumatech/BOSSA/archive/1.7.0.zip
unzip 1.7.0.zip
cd BOSSA-1.7.0
./arduino/make_package.sh
sudo cp ~/BOSSA-1.7.0/bin/bossac /usr/local/bin/

Configuration

In order to be able to flash firmware we need to select and configure a flash method. Once the flash method is selected additional options will be available.

AVRDUDE Configuration

Firmware Updater Settings

The minimum settings are:

  • Path to avrdude
  • AVR MCU Type
  • AVR Programmer Type

Typical MCU/programmer combinations are:

AVR MCU Programmer Example Board
Atmega1284p arduino Anet A series
Atmega2560 wiring RAMPS, RAMbo, etc.
Atmega644p arduino Sanguinololu, Melzi

Avrdude Advanced Settings

All advanced settings are optional.

Firmware Updater Settings

BOSSAC Configuration

Firmware Updater Settings

The only required setting is the path to the bossac binary.

BOSSAC Advanced Settings

All advanced settings are optional.

Firmware Updater Settings

Post-flash Settings

You can use the post-flash gcode settings to run gcode commands after a successful firmware flash.

Firmware Updater Settings

The post-flash code will run more or less immediately if the printer was connected before the flash started (so reconnects automatically when the flash finishes), or whenever the printer is manually reconnected after the firmware is flashed.

About

OctoPrint plugin for flashing pre-compiled firmware images to a 3D printer.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 67.0%
  • JavaScript 19.4%
  • HTML 13.6%