How to Set Bl2 to Read Only

E'er since I got Ender 3 v2 (review), I wanted to upgrade a couple of things. As Creality'due south firmware doesn't cover every hardware upgrade that comes to my mind, I have to resort to compiling Marlin firmware myself. Don't be put off, backside the complex programming lingo, lays a fairly direct forrard listing of values to change to tailor Marlin firmware to your needs. If you follow this guide, information technology'south unlikely you spiral anything up. Let's build Marlin 2.0 for Ender3 v2 to enable various upgrades.

Current Ender3 v2 upgrades

My list of upgrades isn't massive just yet, merely I upgrade my machine as I go. So far I have added the post-obit modules to my Ender 3 v2:

  • BL Touch to ease levelling (guide)
  • Filament Runout sensor from spare Z-finish (guide)
  • All-metal hotend from BigTreeTech (guide)
  • Touch LCD brandish (coming up)
  • One Octopi, 8 printers (coming upward)
  • PrintStick – Portable notificator made from M5Stick Plus C (coming upwardly)

The upgrade list may change in the future, so this commodity will remain separate from the project articles above, so it is always up to date and relevant. If you lot own an Ender 3 v2, chances are that the upgrades you volition opt-out for will exist the aforementioned.

Each upgrade has a defended article, that explains everything yous need to do to consummate the upgrade yourself.

Prerequisites

I would strongly recommend to use Visual Studio Code and PlatformIO to configure Marlin two.0 for Ender3 v2 and build your firmware. Information technology takes but a couple of moments to fix, and you lot will exist ready to compile (build your ain) firmware.

Visual Studio Lawmaking

During the installation, utilise the option to add the VSC equally Path in Windows, this volition make certain things easier for y'all moving forrard. In one case installed, the left side will accept an extension option. Select PlatformIO and C/C++. You lot should be able to meet the "ant" head from PlatformIO.

Marlin 2.0

Download .zip files from GitHub for Marlin 2.0 and Configurations. Extract both nada files to separate folders. If you lot know how to build your firmware, don't copy the files over just even so. Get-go go to VSC, open PlatformIO and the folder containing Marlin two.0.

Open subfolders until you see platformio.ini file. This is your root folder. Locate the build selection at the bottom of the VSC (checkmark at the bottom of the file) and try to compile the default firmware. If you lot succeed, you are good to go, otherwise here are some things to try:

Troubleshooting

Error Possible Solution
Random errors in supporting libraries unplug USB devices check the ports in configuration and build once again
Not defined or used out of scope Bank check if Marlin version and Configuration version files are the same
Flashing ends with black screen Check if Marlin version and Configuration version files are the aforementioned

Building Marlin two.0 firmware for Ender iii v2 from source

While the guide is specifically catered for Ender 3 v2, you could apply other configurations and consult the changes made in this article to what you are trying to achieve. It could help y'all understand the process and build the firmware for other printers. If you have an Ender 3 v2 machine, you will observe it easier.

Before yous change anything, you will need to check the revision of your motherboard. Pop the cover open and check what'south printed on the board. At the time of the writing, Ender iii v2 comes with 2 board revisions: 4.2.ii and 4.2.7.

Setting up the build surround

PlatformIO needs to know what microcontroller is at the centre of your lath. This information is stored in the platformio.ini file and you lot have to type in the model of the processor used for your board. In both cases (4.2.2 and 4.2.7) information technology'due south the same:

          [platformio] src_dir      = Marlin boards_dir   = buildroot/share/PlatformIO/boards default_envs =                          STM32F103RET6_creality                        include_dir  = Marlin        

Save the file. PlatformIO will prep the build environment for y'all. For the most part, all you take to practise is to alter the ii files responsible for configuring your printer parameters. These volition differ based on the installed upgrades and preferences.

The easiest way to find the line responsible for the parameter is by searching for information technology using Crtl+F. The modification volition crave you to change the values, disabling lines using annotate note "//" or enabling settings past uncommenting the lines.

I will split up this part per upgrade so you know which settings are important to your use case.

Configuration files

Marlin GitHub comes with configuration files for each printer. Both Ender 3 and Ender 3v2 are supported so if y'all are not making any special changes, you can just grab the files from the correct directory and replace files in Marlin2.0/Marlin folder.

LCD screen

Configuration folder for Ender 3 v2 will also include screen-specific files. You may need to flash the screen separately to update the display firmware. The process is very simple. Drag the DWIN_SET folder onto an SDCard and put the menu into the reader hidden backside the screen (you need to open the dorsum cover). And so power up your printer and expect until the screen turns orange. Plow off the printer again, remove the card and you are all set.

Motherboard

These files volition change a number of settings to prepare your Ender 3 v2 with Marlin 2.0. It's non all just drag and drop equally your first changes will depend on the motherboard revision. Go to #ascertain MOTHERBOARD section and apply:

  • for 4.2.2 boards : BOARD_CREALITY_V4
  • for 4.two.vii boards : BOARD_CREALITY_V427

Here is the list of changes for the Ender 3 v2 vs default configuration file.

Changes to Configuration.h

Configuration.h


#pragma once
#ascertain CONFIG_EXAMPLES_DIR "Creality/Ender-iii V2"

#define SERIAL_PORT i
#define SERIAL_PORT_2 3

#define BAUDRATE 115200

#ifndef MOTHERBOARD
#define MOTHERBOARD BOARD_CREALITY_V4 // for 4.2.2, anyone with 4.ii.7 has to use BOARD_CREALITY_V427

0 Response to "How to Set Bl2 to Read Only"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel