Welcome! Log In Create A New Profile


Mono Mendal help (Mezli board)

Posted by jezasaurus 
Mono Mendal help (Mezli board)
April 16, 2018 02:49AM
Is it possible to extract the firmware from one printer and copy it to another?

I have two identical Reprap Mono mandels and one of them needed to have the melzi board replaced (snagged the cable, USB port tore off) now I got these both from a friend so I never built them but I have had some experience with maintenance with them but I've never had to program anything.

I installed the new melzi board (a black V3) and it doesn't know what it doing (controls are backwards, very violent motion so i assume it doesn't know what its doing), I know I have to use the arduino program to write the firmware to the board and I'm following all instructions but I'm getting errors pop up that I can't understand

So can I extract what I need from printer one (with a melzi V2) and copy it to printer 2 so it works again?
open | download - 23783628_10154850157466793_1816088454915582476_o.jpg (111.5 KB)
Re: Mono Mendal help (Mezli board)
April 16, 2018 08:23AM
If the controllers and machines are identical, yes you can copy the firmware

Normally you would use the usb port to download the data... but there is one other way.


You need an avrisp, its a hardware device that plugs into the 6 pin plug and reads and writes data directly to the 644p or 1284p chip.
You can build one from an ardunio, see [www.arduino.cc]

You then use command line tool avrdude to download the "Fuses", eeprom and flash memories to your computer.
see [www.ladyada.net] for an intro to avrdude

You then use avrdude to put the fuses,eeprom and flash into the new device from your computer.

the command will be something like the following, but will be your com port of the avrisp and may be a atmel 1284p so -p m1284p not the -p m644p (read the number from the top of the chip)


avrdude -c avrisp -b 38400 -i 10 -p m644p -P COM5 -F -U flash:r:Orginial_flash.hex:i
avrdude -c avrisp -b 38400 -i 10 -p m644p -P COM5 -F -U eeprom:r:Orginial_eeprom.hex:i
avrdude -c avrisp -b 38400 -i 10 -p m644p -P COM5 -F -U lfuse:r:-:h -U hfuse:r:-:h -U efuse:r:-:h
note down the fuse values


avrdude -c avrisp -b 38400 -i 10 -p m644p -P COM5 -F -U flash:w:Orginial_flash.hex:i
avrdude -c avrisp -b 38400 -i 10 -p m644p -P COM5 -F -U eeprom:w:Orginial_eeprom.hex:i
avrdude -c avrisp -b 38400 -i 10 -p m644p -P COM5 -F -U lfuse:w:0x{XX}:m -U hfuse:w:0x{XX}:m -U efuse:w:0x{XX}:m

where {XX} is the hex from the read above

Edited 5 time(s). Last edit at 04/16/2018 08:37AM by Dust.
Re: Mono Mendal help (Mezli board)
April 16, 2018 08:40AM
They are both identical

how would i go about downloading the info of the good printer via usb?
Re: Mono Mendal help (Mezli board)
April 16, 2018 10:40AM
If the board has a bootloder and it supports that feature you can download firmware over the usb

change -c avrisp to -c arduino and you will have to set the baud rate to that of the bootloader (an unknown)

NB you cant upload bootloders or set fuses with this method
Re: Mono Mendal help (Mezli board)
April 18, 2018 06:58PM
Is the torn USB the only issue with the old board?
because this: [forums.reprap.org]

Proud owner and maker of build from scratch FDM 3D printer [forums.reprap.org]
Re: Mono Mendal help (Mezli board)
April 19, 2018 02:40AM
Thank you for the tip! ill do this to the old board when i have a chance, another main reason to replace the board was on the the edge blocks had melted quite badly!
open | download - 29791797_366378287103648_8179433660936617984_n.jpg (54.4 KB)
Sorry, only registered users may post in this forum.

Click here to login