Welcome! Log In Create A New Profile

Advanced

Compiling Marlin 2.1-3.x firmware

Posted by Vin024github 
Compiling Marlin 2.1-3.x firmware
April 24, 2024 03:18PM
I want to make a new Marlin installation on my Ender3. I install an SKR Mini E3 V3.0 and a new TFT35 display.

I download the latest version of Marlin from GitHub site and actually it is Marlin-bugfix-2.1-3.x. Prior download, I select the branch bugfix-2.1.x then I proceed to download. the downloaded zip file is the Marlin-bugfix-2.1-3.x. Then I did the config for this specific version which is Configurations-import-2.1.x

In VS code, when I try to build without changing anything (to check if everything is ok), I get an error almost immediately. This is the error: buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/../../Configuration.h:23:2: error: #error "Don't build with import-2.1.x configurations!"

It tells me not to compile with this configurations version but I don't know which one is the good one... last week, I did it with Marlin-bugfix-2.1-2. and it was working.

What am I supposed to use as configuration folder?
Re: Compiling Marlin 2.1-3.x firmware
April 24, 2024 05:19PM
I think I solved the configuration file problems but now, after building, I have this kind of errors at many lines

buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/../../Configuration.h:1810:11: error: missing binary operator before token "("
1810 | #if EITHER(AUTO_BED_LEVELING_LINEAR, AUTO_BED_LEVELING_BILINEAR)

Edited 1 time(s). Last edit at 04/24/2024 05:20PM by Vin024github.
Re: Compiling Marlin 2.1-3.x firmware
April 24, 2024 05:45PM
Since I still have problems, I read instruction a little more but it is still confusing.

If I go to download marlin firmware, I get Marlin bug fix-2.1-4.x now instead of 1-4 but it is not the problem. when I click on the branch selection tab, I do not see the the branch bug fix-2,1.x
Re: Compiling Marlin 2.1-3.x firmware
April 24, 2024 08:13PM
there is no such thing as bug fix-2.1-4.x yet.
"error: missing binary operator before token "("" is caused by miss matched versions. Latest bugfix does not have macros EITHER or BOTH, and the config file your trying to use has these


Start again


Download Marlin bugfix 2.1.x either with
git clone https://github.com/MarlinFirmware/Marlin.git
or download the zip https://github.com/MarlinFirmware/Marlin/archive/refs/heads/bugfix-2.1.x.zip

Download the matching config examples either with
git clone https://github.com/MarlinFirmware/Configurations.git
git checkout bugfix-2.1.x
or download the zip https://github.com/MarlinFirmware/Configurations/archive/refs/heads/bugfix-2.1.x.zip

Copy the configs you want from the exampes over the default config files and compile it.

Edited 4 time(s). Last edit at 04/25/2024 12:58AM by Dust.
Re: Compiling Marlin 2.1-3.x firmware
April 25, 2024 04:29PM
Thank you for the link. I will try it tonight
Re: Compiling Marlin 2.1-3.x firmware
April 26, 2024 01:13PM
Hello,

When i download the bugfix-2.1.x, the package i receive is marlin-bugfix-2.1-4x.

Look at the attached picture of the screen . On the upper right corner, the dowloaded package show bugfix-2.1.-4.x

This was from the location mentionned in the previous reply…
Attachments:
open | download - Capture d’écran, le 2024-04-24 à 17.34.10.png (260.5 KB)
Re: Compiling Marlin 2.1-3.x firmware
April 26, 2024 01:27PM
I successfuly compiled the bugfix-w.1-4 version.

thanks again for the instructions
Sorry, only registered users may post in this forum.

Click here to login