mirror of
https://github.com/MarlinFirmware/Configurations.git
synced 2025-08-04 12:34:10 -06:00
29 lines
2.6 KiB
Markdown
29 lines
2.6 KiB
Markdown
### Malyan M300 Build Instructions
|
|
|
|
Malyan M300 series firmware currently builds using the Arduino IDE. These instructions should
|
|
guide you through the configuration and compilation.
|
|
|
|
1. Install the Arduino IDE from your favorite source (arduino.cc, windows store, app store)
|
|
2. Launch the IDE to add the ST boards manager:
|
|
- Open the **Preferences** dialog.
|
|
- Add this link in the "*Additional Boards Managers URLs*" field:
|
|
https://github.com/stm32duino/BoardManagerFiles/raw/master/STM32/package_stm_index.json
|
|
- Select "**Show verbose ouptut during: compilation**."
|
|
3. Select **Tools** > **Board** > **Boards Manager**.
|
|
4. Type "Malyan" into the Search field.
|
|
5. The only board listed will be "**STM32 Cores by STMicroelectronics**." Any version from 1.8.0 up is fine. Choose install. This will download many tools and packages, be patient.
|
|
6. Open the **Tools** > **Board** submenu, scroll all the way down, and select **3D Printer Boards**.
|
|
7. From the **Tools** menu, select a board part number **Malyan M300**:
|
|
8. From the **Tools** menu, choose **USB Support** > **CDC No Generic Serial**.
|
|
9. Download the [latest Marlin source](https://marlinfw.org/meta/download/) and unzip it.
|
|
10. Look in the `Marlin` subdirectory for the `Configuration.h` and `Configuration_adv.h` files. Replace these files with the configurations in the `config\examples\Malyan\M300` folder.
|
|
11. Open the `Marlin/Marlin.ino` file in Arduino IDE.
|
|
12. From the **Sketch** menu, select **File** > **Export Compiled Binary**.
|
|
13. When compilation is done you've built the firmware. The next stage is to flash it to the board. To do this look for a line like this: `"path/to/bin/arm-none-eabi-objcopy" -O binary "/path/to/Marlin.ino.elf" "/path/to/Marlin.ino.bin"`
|
|
The file `Marlin.ino.bin` is your firmware binary. M300 printers require flashing via SD card. Use the SD card that came with the printer if possible. The bootloader is very picky about SD cards. Copy `Marlin.ino.bin` to your SD card under three names: `firmware.bin`, and `fcupdate.flg`.
|
|
14. Insert the SD card into your printer. Make sure the X and Y axes are centered in the middle of the bed. (When X and Y endstops are closed this signals a UI upgrade to the bootloader.)
|
|
15. Power-cycle the printer. The first flash may take longer. Don't be surprised if the .99 version number doesn't show up until after the UI has launched the default screen.
|
|
16. Remove the SD card and delete the `fcupdate.flg` file from the card to prevent an accidental re-flash.
|
|
17. Test the endstops and homing directions, run M303 PID autotune, and verify all features are working correctly.
|
|
|
|
Welcome to Marlin 2.x...
|