「Guide:Marlin/en」の版間の差分

提供:Kobe Makerspace
(ページの作成:「== Installation == Copy <code>.pio/build/STM32F103RE_creality/firmware-20231008-230629.bin</code> to the SD card. Do not rename it, otherwise the printer may refuse to up…」)
(ページの作成:「Optional: commit the changes, and do this every time the config is changed. Provide a description of the changes. {{terminal|text= cd $root_dir/marlin git add Marlin git…」)
 
14行目: 14行目:
 
}}
 
}}
   
Also clone example configurations (also for version 2.1.2.1), so we don't have to start from scratch.
+
Clone example configurations (also for version 2.1.2.1), so we don't have to start from scratch.
 
{{terminal|text=
 
{{terminal|text=
 
git clone -b 2.1.2.1 https://github.com/MarlinFirmware/Configurations config
 
git clone -b 2.1.2.1 https://github.com/MarlinFirmware/Configurations config
20行目: 20行目:
   
 
== Find PlatformIO environment ==
 
== Find PlatformIO environment ==
Find the environment (a build preset/toolchain) to use with PlatformIO. We're compiling for Ender 3 v4.2.2 board, so use <code>STM32F103RE_creality</code> in "Build with PlatformIO" section
+
Find the environment (a build preset/toolchain) to use with PlatformIO. We're compiling for Ender 3 v4.2.2 board, so use <code>STM32F103RE_creality</code> in "Build with PlatformIO" section.
   
 
If your printer or motherboard version is different, proceed with the steps below.
 
If your printer or motherboard version is different, proceed with the steps below.

2024年1月30日 (火) 08:54時点における最新版

Install PlatformIO

Clone Marlin

We clone the version 2.1.2.1, the latest at the time of writing this guide.

Clone example configurations (also for version 2.1.2.1), so we don't have to start from scratch.

Find PlatformIO environment

Find the environment (a build preset/toolchain) to use with PlatformIO. We're compiling for Ender 3 v4.2.2 board, so use STM32F103RE_creality in "Build with PlatformIO" section.

If your printer or motherboard version is different, proceed with the steps below.

Search for similar lines in ./Marlin/src/pins/pins.h file:

Choose the one that matches your board.

Configure

Optional: create a git branch specific for this printer, so all changes can be tracked and updated easily.

Use the example config:

Optional: commit the changes, and do this every time the config is changed. Provide a description of the changes.

Build with PlatformIO

Use the PlatformIO environment that we found before.

This builds a firmware file, and you can find it in the compilation output log:

Installation

Copy .pio/build/STM32F103RE_creality/firmware-20231008-230629.bin to the SD card. Do not rename it, otherwise the printer may refuse to update if the name is the same as the current firmware.

Insert the SD card and reset the printer. It should update itself during the boot.