---
title: "Slic3r and Marlin configuration for RepRap FW retraction - Original Prusa 3D Printers"
description: "Simple guide how to set up firmware retraction with Slic3r and Marlin for your Prusa i3 RepRap 3D printer. Get nice and clean seams on your 3D prints!"
url: "https://blog.prusa3d.com/slic3r-and-marlin-configuration-for-reprap-firmware-retraction-2_3686/"
lang: "en"
---

# Slic3r and Marlin configuration for RepRap FW retraction

[Josef Průša](https://blog.prusa3d.com/author/josef-prusa/) March 1, 2015 · 2 min read

[Featured](https://blog.prusa3d.com/category/featured_8/) [Guides](https://blog.prusa3d.com/category/guides_168/)

This one will be quick and easy. Recently I found out about wonderful feature of [Marlin 3D printer firmware](https://github.com/MarlinFirmware/Marlin) called **firmware retraction.** So what is the difference between firmware retraction and normal retraction made by [Slic3r](http://slic3r.org/download)? It is easy, you can set different speeds for retract and recover. 

Basically you can pull out the plastic really fast and save time but you can’t try to force the filament back in as fast as it would cause many problems.

When the recover speed is too big, you risk filament drive stripping piece of the filament and cause jam. Also there is a slight lag between the filament actually flowing out of the extruder nozzle, especially with bowden extruder setup. Newest **Slic3r** (tested with 1.2.6) has support for firmware retraction so you can easily try it out.

**And it has one more GIANT advantage.** You can tweak your retract during the print with simple G-code commands. That means no need to reslice the model just to tweak it! I love this!

First and foremost you have to have it enabled during compilation of your firmware. This might be a problem if you bought fully built printer with no support from china, but don’t worry I am writing a guide how to setup and compile a firmware for your printer too 😉 *BTW I finally started selling my printers online, took me 3 years to get it right and FW retraction is enabled 😉 Check it out [here](https://www.prusa3d.com/category/3d-printers/).*

## Marlin FW

When you are setting up the **Marlin FW** for compilation there is you can find the settings in *Configuration\_adv.h.* 

Uncomment

// #define FWRETRACT //ONLY PARTIALLY TESTED

so you will end up with

#define FWRETRACT  //ONLY PARTIALLY TESTED

You don’t have to worry about the other settings too much as we will be setting them via G-code later. Now just reflash your board and move on to Slic3r settings.

## Slic3r

First you need to go to ***Printer Settings* -> *General*** and enable ***“Use firmware retraction”*** checkbox.

![Slic3r](https://assets.prusa3d.com/cdn-cgi/image/width=768,quality=85,format=auto/https://storage.googleapis.com/prusa3d-content-prod-14e8-asset-manager-prod/3925efaf-4f7e-490a-9967-2ff797ecb316.jpg)

Now move to ***Custom G-code*** tab and modify the ***Start G-code***.

![Slic3r](https://assets.prusa3d.com/cdn-cgi/image/width=768,quality=85,format=auto/https://storage.googleapis.com/prusa3d-content-prod-14e8-asset-manager-prod/18d96606-45dd-46bb-93a6-52d38116b413.jpg)

Here is what I added to the beginning.

M208 S-0.05 F180
M207 S1 F1800

**M208** is setting for extrusion recover length and speed. In my case I tend to recover -0.05mm less as it prevents creating a small blob on the place where filament starts flowing and speed is 3mm/s.

**M207** is retraction settings. I retract 1mm at speed of 30mm/s.

You can modify these setting even during your print and find the best settings for your nozzle and plastic you are using, how awesome is that!! It is really easy in **Pronterface**! [**Let me know your settings in our Forums please 😉**](https://blog.prusa3d.com/forums/topic/slic3r-and-marlin-configuration-for-reprap-firmware-retraction/)

## Related articles

### [Blender for 3D Printing: The 5-Minute Guide to STL Editing](https://blog.prusa3d.com/blender-for-3d-printing-the-5-minute-guide-to-direct-mesh-editing_138255/)

**Kryštof Kohout** October 20, 2026

### [Print colorful and glowing Halloween decorations with our spooky offer](https://blog.prusa3d.com/get-ready-for-halloween-with-our-spooky-filament-offer_138639/)

**Prusa Research** October 6, 2026

### [Open Community License v1.1: The New Plugin System, More Examples, and Your Questions Answered](https://blog.prusa3d.com/open-community-license-v1-1-the-new-plugin-system-more-examples-and-your-questions-answered_137202/)

**Prusa Research** June 24, 2026

## Useful links

-   [Prusa Knowledge Base](https://help.prusa3d.com/)
-   [RepRap Calculators](https://blog.prusa3d.com/calculator_3416/)
-   [3D Printing Price Calculator](https://blog.prusa3d.com/3d-printing-price-calculator_38905/)
-   [Filament Material Guide](https://help.prusa3d.com/filament-material-guide)
-   [Color Print](https://blog.prusa3d.com/color-print_3993/)
-   [About Original Prusa i3](https://blog.prusa3d.com/prusa-i3_3543/)
-   [Prusa CORE One+ 3D Printer](https://www.prusa3d.com/product/prusa-core-one/)
-   [Original Prusa XL – Toolchanger 3D Printer](https://www.prusa3d.com/en/product/original-prusa-xl-assembled-5-toolhead-3d-printer/)
-   [Prusament](https://www.prusa3d.com/category/prusament/)

## Categories

-   [Announcements](https://blog.prusa3d.com/category/highlights_10/)
-   [Featured](https://blog.prusa3d.com/category/featured_8/)
-   [Guides](https://blog.prusa3d.com/category/guides_168/)
-   [Contests](https://blog.prusa3d.com/category/contests_596/)
-   [Prusa Stories](https://blog.prusa3d.com/category/prusa-stories/)
-   [Testimonials](https://blog.prusa3d.com/category/testimonials_590/)
-   [Printing tips](https://blog.prusa3d.com/category/printing-tips_591/)
-   [Dev Diaries](https://blog.prusa3d.com/category/dev-diaries_594/)
-   [Video](https://blog.prusa3d.com/category/video_166/)
-   [Interviews](https://blog.prusa3d.com/category/interviews_167/)
-   [Winners](https://blog.prusa3d.com/category/winners/)

## Most read articles

[Prusa Black Friday 2026 Is Here! Grab the Biggest Deals of the Year October 22, 2026](https://blog.prusa3d.com/prusa-black-friday-2026-is-here-grab-the-biggest-deals-of-the-year_138966/)[PrusaSlicer 3.0 Preview – Built for the Future of 3D Printing September 1, 2026](https://blog.prusa3d.com/prusaslicer-3-0-preview-built-for-the-future-of-3d-printing_137672/)[How Firefighters Use 3D Printing to Save Lives, Time and Money October 30, 2026](https://blog.prusa3d.com/how-firefighters-use-3d-printing-to-save-lives-time-and-money_138620/)[Blender for 3D Printing: The 5-Minute Guide to STL Editing October 20, 2026](https://blog.prusa3d.com/blender-for-3d-printing-the-5-minute-guide-to-direct-mesh-editing_138255/)[Multicolor Printing with a Prusa: Beginner’s Guide February 21, 2025](https://blog.prusa3d.com/multicolor-printing-with-a-prusa-beginners-guide_110590/)
