Update Marlin Firmware

3D Modelling, Slicing, Hosts and Management
Post Reply
3DEnthusiast
Posts: 66
Joined: Fri Oct 27, 2017 6:50 am

Update Marlin Firmware

Post by 3DEnthusiast » Sat Jan 06, 2018 6:52 am

Greetings once again!
How does one go about updating the Marlin Firmware from 1.1.6 to 1.1.8?

Surely I do not have to go through and change every setting manually and then recompile it once again. There has to be an easier way to update it.

I've googled but nothing has really seemed to help. Maybe I'm searching the wrong terms?

Thanks!

slippyr4
Posts: 224
Joined: Thu Jun 15, 2017 10:24 am

Re: Update Marlin Firmware

Post by slippyr4 » Sat Jan 06, 2018 9:01 am

Really you need to learn how to use git: either from the command line or use a client like sourcetree.

In that way, you can just do a pull and it will merge new code with your local changes.
Self-built Prusa i3 MK2 clone
My things: https://www.thingiverse.com/slippyr4/designs
My Prusa firmware port for ramps & MKS : https://github.com/slippyr4/Prusa-Firmware

3DEnthusiast
Posts: 66
Joined: Fri Oct 27, 2017 6:50 am

Re: Update Marlin Firmware

Post by 3DEnthusiast » Sat Jan 06, 2018 12:21 pm

I agree!

Any suggestions of how to use Git or Sourcetree in order to merge the codes; recommended videos or the like?

oakdesign
Posts: 109
Joined: Thu Jun 15, 2017 10:21 am

Re: Update Marlin Firmware

Post by oakdesign » Sat Jan 06, 2018 3:45 pm

I really recommend to use VS Code or Atom with Platformio IDE as you don't have to take care of any dependencies, have git integration and updation / merging a new release is really simple. Marlin delivers a platformio.ini with al needed task for compiling, uploading for every environment(board) already
Opa's bester Rat: Probieren geht über Studieren, Grandpas best advice: the proof of the pudding is in the eating

cmaet
Posts: 3
Joined: Mon Jan 08, 2018 12:07 pm

Re: Update Marlin Firmware

Post by cmaet » Thu Jan 11, 2018 1:37 pm

Functions get changed from release to release, new features are added, ... I don't think there is a way to make the transition "automated".
I found 2 tools, or methods, that I find to be a great help.

The first one I came across, when finishing my latest build, is the Marlin 3D printer tool: http://marlin3dprintertool.se/
It has a tool specifically for settings transfer from one version to another (look under Firmware upgrade and migration)... I used it a couple of times about half a year ago, and it helped a lot.

Lately I found, that I can do practically the same and faster using Notepad++ https://notepad-plus-plus.org/, with a plugin Filecompare installed https://sourceforge.net/projects/npp-compare/

The basic transfer includes simply opening the configuration.h files (current and new) in the compare tool. It puts them side by side and you simply go through all the changes in values. Set any newly added features that you want to use.
Do the same with configuration_adv.h, and you are set to go.

Besides going through all of the .h files, that are relevant to your printer's configuration, you have to make sure to update the Arduino IDE and install all its non standard or additional libraries that youf firmware might be using (for example for tmc2130 drivers, ...).

I just did an upgrade from 1.1.6 to 1.1.8 (the TMC2130's features didn't work in 1.1.6, even if Tom said that's what he used in his video), and it took me less than 15 minutes (using Notepad++), and everything worked in the first try (apart from the fact I had to flip the stepper direction, because I put the TMC2100 and 2130 drivers must be reversed compared to other drivers).

oakdesign
Posts: 109
Joined: Thu Jun 15, 2017 10:21 am

Re: Update Marlin Firmware

Post by oakdesign » Thu Jan 11, 2018 3:10 pm

That what git is for and why it is used by Software projects. To automatically merge changes of a new release into your version without loosing your current settings. Only if parts of the old and new parts would conflict you get a merge conflict that you have to solve manually

As a contributor / developer myself I recommend to use a toolset like VS Code or Atom with Platformio IDE.

Updating to a new Release is as simple as executing 2 commands.
Opa's bester Rat: Probieren geht über Studieren, Grandpas best advice: the proof of the pudding is in the eating

ksmsoft
Posts: 9
Joined: Mon Jan 08, 2018 5:36 pm

Re: Update Marlin Firmware

Post by ksmsoft » Thu Jan 11, 2018 4:37 pm

Adding to this, if you are a Windows user then SourceGear Vault is an excellent version control solution:

https://sourcegear.com/vault/

A single user license is free and as an ex-software developer I can vouch for it being an excellent tool. Though Git is good it is more of a global solution where multiple developers can share their efforts. For me, I find maintaining source code and also STL designs locally does what I need.

slippyr4
Posts: 224
Joined: Thu Jun 15, 2017 10:24 am

Re: Update Marlin Firmware

Post by slippyr4 » Thu Jan 11, 2018 4:53 pm

Git is kind of the leading SCM tool for any project size, distributed or not.

But the point here, is that marlin is hosted on github so using a git tool allows merged updates.
Self-built Prusa i3 MK2 clone
My things: https://www.thingiverse.com/slippyr4/designs
My Prusa firmware port for ramps & MKS : https://github.com/slippyr4/Prusa-Firmware

3DEnthusiast
Posts: 66
Joined: Fri Oct 27, 2017 6:50 am

Re: Update Marlin Firmware

Post by 3DEnthusiast » Fri Jan 12, 2018 9:37 am

Alright,
I'm on board to figure it out and learn. Are there any tutorials setup or videos showing the process for someone who doesn't actually know the programming language?

I built my Dolly from watching the videos and following Tom's lead. Then any issues I had I brought here or to a Google search and found the answers. Now, when I try to search for everything mentioned, I get a little... a lot lost.

I'm wanting to jump up to the latest version of Marlin but I'm not having much luck and the steps I took to add an LCD and get it working with the encoders running the correct directions happened long enough ago that I don't remember specifically what I did. It'd be great if I could just run an update and everything work. You guys are all throwing out suggestions but I'm not sure how any of it works.

I really do appreciate the help and anything else you guys can offer to get me on the right track.

Thanks!

ksmsoft
Posts: 9
Joined: Mon Jan 08, 2018 5:36 pm

Re: Update Marlin Firmware

Post by ksmsoft » Wed Jan 17, 2018 10:11 am

slippyr4 wrote:
Thu Jan 11, 2018 4:53 pm
Git is kind of the leading SCM tool for any project size, distributed or not.

But the point here, is that marlin is hosted on github so using a git tool allows merged updates.
Absolutely!

My comments regarding Vault were intended to help users maintain local copies of updates. During development posting incomplete and/or unfinished/untested updates to git could potentially cause issues if others downloaded/used those updates. I use git to obtain latest versions, which I would hope had been tested prior to release. Until I am satisfied that my updates were functionally complete I wouldn't publish to git.

Git is good.

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests