backup firmware

Post Reply
robvoi
Posts: 23
Joined: Wed Apr 13, 2016 2:12 pm

backup firmware

Post by robvoi » Thu Apr 14, 2016 2:56 pm

I assambled my printer. (pro B)
The stock firmware seems to work, beside the XAxis moving in the wrong direction.

Before I aplpy the new firmware I would like to backup the stock firmware. Is there a way to do this?

Mark
Posts: 1553
Joined: Thu Aug 06, 2015 9:19 am

Re: backup firmware

Post by Mark » Thu Apr 14, 2016 7:55 pm

Nope, just install the new firmware. You can change the motor direction as follows:
http://www.geeetech.com/forum/viewtopic ... 17&t=17037

robvoi
Posts: 23
Joined: Wed Apr 13, 2016 2:12 pm

Re: backup firmware

Post by robvoi » Thu Apr 14, 2016 8:30 pm

Thanks Robert

lkomnino
Posts: 0
Joined: Thu Feb 22, 2018 7:48 pm

Re: backup firmware

Post by lkomnino » Mon Mar 05, 2018 8:20 am

Really!! No way to backup stock Fw!?!

Had a 3-4 week diagsnosis to find that my m/board was bad, after it working with stock fw, and then had problems when upgraded to latest Marlin.

Got new board sent out, and all good.

So really REALLY want to save Fw before any changes.

Std Fw says marlin 1.0.1, and tried the pro B fw from here after doing a 're-burn bootloader', and that wasn't a cure.

Baffled that there is no way to save current config!

How about a copy atmega 2650 contents via arduino uno, or something?

User avatar
_kaktus_
Site Admin
Posts: 1260
Joined: Fri Dec 15, 2017 10:06 pm
Location: PL
Contact:

Re: backup firmware

Post by _kaktus_ » Mon Mar 05, 2018 11:22 pm

Each development environment for µC AVR allows reading the code from μC.
But only if μC is not protected against such activities. (configuration of fuse bits)
I think that you can backup flash memory and eeprom on your own. ;-)

kaktus

lkomnino
Posts: 0
Joined: Thu Feb 22, 2018 7:48 pm

Re: backup firmware

Post by lkomnino » Tue Mar 06, 2018 12:15 am

In which case here are default setting as taken from fresh replacement board, for my CTC i3 pro B Reprap:
Note: All standard, with MK3B Dual power Heatbed, direct drive extruder, and plywood frame, also GT2560 Rev A (not A+).

Acc: 1400
Vxy Jerk: 13
Vz Jerk: 0.30
Ve Jerk: 5
Vmax x: 400
Vmax y: 400
Vmax z: 2
Vmax e: 45
Vmin: 0
VTrav min: 0
A max x: 1400
A max y: 1400
A max z: 100
A max e: 80000 (80K)
A-Retract: 5000
X Step/mm: 78.74
Y Step/mm: 78.74
Z Step/mm: 2560.0
E Step/mm: 105.0

Autotemp: Off
Temp Min: 210
Temp Max: 250
Temp fact: 0.10
PID-P: 19.86
PID-I: 1.00
PID-D: 98.93
PID-C: 1

PLA
Fan: 255
Nozzle: 180
Bed: 70

ABS
Fan 255
Nozzle: 240
Bed: 100

lkomnino
Posts: 0
Joined: Thu Feb 22, 2018 7:48 pm

Re: backup firmware

Post by lkomnino » Tue Mar 06, 2018 7:35 pm

[quote=_kaktus_ post_id=82981 time=1520263333 user_id=62475]
Each development environment for µC AVR allows reading the code from μC.
But only if μC is not protected against such activities. (configuration of fuse bits)
I think that you can backup flash memory and eeprom on your own. ;-)

kaktus
[/quote]

So it is possible? or not?

Not too great with ins and outs of micro controllers.

User avatar
_kaktus_
Site Admin
Posts: 1260
Joined: Fri Dec 15, 2017 10:06 pm
Location: PL
Contact:

Re: backup firmware

Post by _kaktus_ » Wed Mar 07, 2018 11:48 am

Definitely yes.

But unfortunately you need to have the right knowledge and programmer eg USBASP.
On the controller board, you need to find the right outputs.
I do not know your controller board, but I assume that the manufacturer provided such a possibility.

kaktus

tkordemets
Posts: 1
Joined: Fri Dec 07, 2018 4:02 pm

Re: backup firmware

Post by tkordemets » Fri Jun 21, 2019 8:45 pm

In case anyone misses it - I managed to download the firmware and conf with following command lines:

Code: Select all

avrdude -p atmega2560 -c wiring  -P com5 -b 115200 -F -U flash:r:existingMarlin_fw.hex:i
and

Code: Select all

avrdude -p atmega2560 -c wiring  -P com5 -b 115200 -F -U eeprom:r:existingMarlin_eeprom.hex:i
where com is your virtual serial port and existing...hex is the file name to be written. To run avrdude you need to navigate to C:\Program Files (x86)\Arduino\hardware\tools\avr\bin and make sure avrdude.conf is in the same directory.
Under windows it wrote on some really weird hidden directory under my user and took a while to actually find it.
Disclaimer: Files look legit but I have not tried to actually restore the conf using them.

User avatar
_kaktus_
Site Admin
Posts: 1260
Joined: Fri Dec 15, 2017 10:06 pm
Location: PL
Contact:

Re: backup firmware

Post by _kaktus_ » Sat Jun 22, 2019 3:40 pm

Hi.
:mrgreen:

Note that this is most likely not the way to make a copy of the entire program from FLASH memory.
The FLASH space in this project is divided into bootloader and user application.
You also don't have FuseBits configuration.
After loading the copy made this way into the new µC, the controller will not work.

In my opinion, this is a good method to make a copy of the current application and its configuration.
:D
On the forum I help to use the rod, I don't give fish.
Geeetech Prusa I3 M201 Dual extruder Mixcolor 3D printer, bought 2017-12-19, already built, in the cognitive and improvement phase
Geeetech filament, ABS only
Geeetech 3D WiFi Module for 3D Printer, bought 2018-04-15, He got a new life, and still lies in a drawer.
Positively frenzied customer of Getech Technology.

Post Reply