Problem flashing firmware with PlatformIO

Hello, I recently built the MPCNC Primo. I am using the Arduino Mega2560 with a Ramps 1.4 board. I also have an LCD. I have tried flashing the marlin firmware with the Arduino software, and that just wasn’t working. I noticed on the V1Engineering website that I could also use PlatformIO on VSCode. So I tried that… The results seemed better, but it is still not working. Here is a picture of the console:

Has anyone experienced this before? If someone has or knows something that might help, please point me in the right direction.

Although I am familiar with 3D printers, I am very new to flashing firmware, so sorry if this is a simple question.

Thanks in advance!

I have not flashed a ramps in a long time. That error seems odd. I thought P io fetched all the librarys it needs, but says it is missing one.

My first guess is use the p io Tab in vscode and try updating it. Sometimes it will pull in a new library.

1 Like

Thanks, Ryan!

I found the library and it seemed to be working. Now that I look back at the picture, I realize that it actually says to look in the file registry. It compiled for a while but eventually stopped, saying this:


I think I need the firmware.elf file. Do you know where I might find that?

Firmware.elf is the output from compiling (one of them).

I have not seen the createprocess error in platformio.

Platformio should be installing the libraries itself. You shouldn’t have to download and install any libraries.

Are you using the source code from marlinbuilder releases?

1 Like

Yes, I am using the V1CNC_Ramps_Dual-2.0.7.2-src file from Github.

Okay, so I decided to try to flash the firmware again from the Arduino IDE. I don’t know if it has something to do with what PlatformIO did to the file, or what, but it worked!

Thanks for your help!

1 Like