Skip to content

Marlin Build and Upload (PlatformIO)

Chris Barr edited this page Jul 7, 2020 · 1 revision

The recommended way to compile and upload Marlin to RUMBA32 is via PlatformIO. These steps will detail the process to do this.

  1. Install the VSCode IDE - download and run the installer from the Setting up Visual Studio Code page.
  2. Install PlatformIO for VSCode following the instructions here.
  3. Download/clone an appropriate version of Marlin 2.0 to a known location. Currently, the latest from the Marlin bugfix-2.0.x branch is recommended.
  4. Open the downloaded Marlin 2.0 in VSCode (File > Open Folder...)
  5. Open the Configuration.h file and configure it according to your printer's requirements.

The minimum configuration necessary to use RUMBA32 is to change the following lines:

L107:  #define SERIAL_PORT -1
L131:  #define MOTHERBOARD BOARD_RUMBA32_V1_1

Refer to the Recommended Marlin Configuration page for more detailed information.

  1. Open the PlatformIO panel, and locate the env:rumba32 menu:

  1. Click the Build button in the env:rumba32 menu, and wait for the build process to run. When it is completed, you should see a success message as below:

  1. If the compile has succeeded and you are ready to flash the firmware to your RUMBA32 board, connect the board via USB and ensure it is in bootloader mode (hold BOOT0, press RESET, release BOOT0). Refer to the detailed instructions here if needed.

  2. Click the Upload button in the env:rumba32 menu. PlatformIO will recompile (if necessary), and then will begin the firmware upload to the board. After a short time, you should see another success message.

  1. Marlin is now uploaded and running on your RUMBA32 board. You should be able to communicate with it using your chosen host software:

If you cannot communicate with RUMBA32 using your host software, or cannot see a COM port that corresponds to it, it is possible the wrong driver has been loaded - see the steps on the COM Port Troubleshooting page.