Trouble building Marlin 2.0 for Mega2560 Ramps

Hi,
So I know this works because I’ve done it - but I had to reset my laptop and now I can’t get it to work again.
I get IOError [Errno 2} No such file or directory etc, etc \piolibdeps\megaatmega2560\tmp_installing-pj0wpe-package\TMC26XStepper-etc, etc goobly gob and such.

I can build fpr LPC1768 (SKR V1.3 board) but not a simple Ramps 1.4 Arduino mega2560 board with a completely stock copy of Marlin 2.0 bugfix.

What am I missing?

I’m running VSCode with Extensions Auto Build Marlin, C/C++, and PlatformIO IDE installed.

Thanks in advance,

Scott

We’ll need to know what exact error you have, what code you’re trying to compile and any changes to the platformio.ini you need. Impossible to know anything otherwise.

Error code below:
IOError: [Errno 2] No such file or directory: 'C:\Users\Scott\Documents\Ender 5\Ramps 1.4\Marlin
2.0 Ramps 1.4\.piolibdeps\megaatmega2560\_tmp_installing-qfjmcl-package\TMC26XStepper-c1921b4856a5ef4b659b661b8cb5dd56f3075e57\documentation\html\_t_m_c26_x_stepper_8cpp_source.html

I’m trying to compile bone stock Marlin 2.0 bugfix

Thanks,
Scott

Not reproducable for me. I do

git clone https://github.com/MarlinFirmware/Marlin.git
cd Marlin
git checkout bugfix-2.0.x

Then just

pio run
Warning! `env_default` configuration option in section [platformio] is deprecated and will be removed in the next release! Please use `default_envs` instead
Processing megaatmega2560 (platform: atmelavr; board: megaatmega2560; framework: arduino)
-----------------------------------------------------------------------------------------------------------------------
CONFIGURATION: https://docs.platformio.org/page/boards/atmelavr/megaatmega2560.html
PLATFORM: Atmel AVR 1.15.0 > Arduino Mega or Mega 2560 ATmega2560 (Mega 2560)
HARDWARE: ATMEGA2560 16MHz, 8KB RAM, 248KB Flash
PACKAGES: toolchain-atmelavr 1.50400.190710 (5.4.0), framework-arduinoavr 4.1.1
avr-g++ -o "C:\Users\Maxi\Marlin\Marlin\Marlin.ino.cpp" -x c++ -fpreprocessed -dD -E "c:\users\maxi\appdata\local\temp\tmpavzsvn"
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Looking for LiquidCrystal library in registry
Conflict: More than one library has been found by request {"requirements": "1.3.4", "name": "LiquidCrystal"}:
LiquidCrystal
============A=utomatically chose the first available library (use `--interactive` option to make a choice)

#ID: 136
LiquidCrystal Library is faster and extensable, compatible with the original LiquidCrystal library

Keywords: lcd, hd44780
Compatible frameworks: Arduino
Compatible platforms: Atmel AVR, Espressif 32, Espressif 8266
Authors: F Malpartida

LiquidCrystal
=============
#ID: 887
Allows communication with alphanumerical liquid crystal displays (LCDs).

Keywords: display
Compatible frameworks: Arduino
Compatible platforms: Atmel AVR, Atmel SAM, Espressif 32, Espressif 8266, Intel ARC32, Microchip PIC32, Nordic nRF51, Nordic nRF52, ST STM32, Teensy, TI MSP430
Authors: Arduino, Adafruit

Found: https://platformio.org/lib/show/136/LiquidCrystal
LibraryManager: Installing id=136 @ 1.3.4
Downloading  [####################################]  100%
Unpacking  [####################################]  100%
LiquidCrystal @ 1.3.4 has been successfully installed!
Looking for TMCStepper library in registry
Found: https://platformio.org/lib/show/5513/TMCStepper
LibraryManager: Installing id=5513 @ <1.0.0
Downloading  [####################################]  100%
Unpacking  [####################################]  100%
TMCStepper @ 0.4.5 has been successfully installed!
LibraryManager: Installing dev
Downloading  [###################################-]   99%  C0loning into 'C:\Users\Maxi\Marlin\.piolibdeps\megaatmega2560\_tmp_installing-kxj2ji-package'...
Downloading  [####################################]  100%
Unpacking  [####################################]  100%
Arduino-L6470 @ 0.7.0 has been successfully installed!
LibraryManager: Installing SailfishLCD
git version 2.16.2.windows.1
SailfishLCD @ 6f53c19 has been successfully installed!
LibraryManager: Installing SailfishRGB_LED
git version 2.16.2.windows.1
Cloning into 'C:\Users\Maxi\Marlin\.piolibdeps\megaatmega2560\_tmp_installing-mxupt_-package'...
SailfishRGB_LED @ 4d0c888 has been successfully installed!
LibraryManager: Installing SlowSoftI2CMaster
git version 2.16.2.windows.1
Cloning into 'C:\Users\Maxi\Marlin\.piolibdeps\megaatmega2560\_tmp_installing-0fh9kv-package'...
SlowSoftI2CMaster @ 3a18be5 has been successfully installed!
Found 19 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <U8glib-HAL> 0.4 [https://github.com/MarlinFirmware/U8glib-HAL/archive/dev.zip] (C:\Users\Maxi\Marlin\.piolibdeps\megaatmega2560\U8glib-HAL_ID1932)
|   |-- <Wire> 1.0 (C:\Users\Maxi\.platformio\packages\framework-arduinoavr\libraries\__cores__\arduino\Wire)
|   |-- <SPI> 1.0 (C:\Users\Maxi\.platformio\packages\framework-arduinoavr\libraries\__cores__\arduino\SPI)
|-- <LiquidCrystal> 1.3.4 (C:\Users\Maxi\Marlin\.piolibdeps\megaatmega2560\LiquidCrystal_ID136)
|   |-- <Wire> 1.0 (C:\Users\Maxi\.platformio\packages\framework-arduinoavr\libraries\__cores__\arduino\Wire)
|-- <TMCStepper> 0.4.5 (C:\Users\Maxi\Marlin\.piolibdeps\megaatmega2560\TMCStepper_ID5513)
|   |-- <SPI> 1.0 (C:\Users\Maxi\.platformio\packages\framework-arduinoavr\libraries\__cores__\arduino\SPI)
|   |-- <SoftwareSerial> 1.0 (C:\Users\Maxi\.platformio\packages\framework-arduinoavr\libraries\__cores__\arduino\SoftwareSerial)
|-- <Adafruit NeoPixel> 1.1.3 (C:\Users\Maxi\Marlin\.piolibdeps\megaatmega2560\Adafruit NeoPixel_ID28)
|-- <30aa480> [https://github.com/lincomatic/LiquidTWI2/archive/30aa480.zip] (C:\Users\Maxi\Marlin\.piolibdeps\megaatmega2560\30aa480)
|   |-- <Wire> 1.0 (C:\Users\Maxi\.platformio\packages\framework-arduinoavr\libraries\__cores__\arduino\Wire)
|-- <Arduino-L6470> 0.7.0 [https://github.com/ameyer/Arduino-L6470/archive/dev.zip] (C:\Users\Maxi\Marlin\.piolibdeps\megaatmega2560\Arduino-L6470)
|-- <c1921b4> [https://github.com/trinamic/TMC26XStepper/archive/c1921b4.zip] (C:\Users\Maxi\Marlin\.piolibdeps\megaatmega2560\c1921b4)
|   |-- <SPI> 1.0 (C:\Users\Maxi\.platformio\packages\framework-arduinoavr\libraries\__cores__\arduino\SPI)
|-- <SailfishLCD> #6f53c19 [git+https://github.com/mikeshub/SailfishLCD.git] (C:\Users\Maxi\Marlin\.piolibdeps\megaatmega2560\SailfishLCD)
|-- <SailfishRGB_LED> #4d0c888 [git+https://github.com/mikeshub/SailfishRGB_LED.git] (C:\Users\Maxi\Marlin\.piolibdeps\megaatmega2560\SailfishRGB_LED)
|   |-- <Wire> 1.0 (C:\Users\Maxi\.platformio\packages\framework-arduinoavr\libraries\__cores__\arduino\Wire)
|-- <SlowSoftI2CMaster> #3a18be5 [git+https://github.com/mikeshub/SlowSoftI2CMaster.git] (C:\Users\Maxi\Marlin\.piolibdeps\megaatmega2560\SlowSoftI2CMaster)
|-- <SPI> 1.0 (C:\Users\Maxi\.platformio\packages\framework-arduinoavr\libraries\__cores__\arduino\SPI)
|-- <Wire> 1.0 (C:\Users\Maxi\.platformio\packages\framework-arduinoavr\libraries\__cores__\arduino\Wire)
...
DATA:    [===       ]  30.2% (used 2478 bytes from 8192 bytes)
PROGRAM: [==        ]  21.0% (used 53248 bytes from 253952 bytes)
[SUCCESS] Took 99.28 seconds

Try redownloading the repository, upgrading the PlatformIO version (pio upgrade --dev) and platforms pio platform update first.

If that does not help, try compiling the firmware in a directory that does not have spaces in them. You’re compiling in C:\Users\Scott\Documents\Ender 5 which might be a problem.

Thanks Mark,
i think I’ve figured it out. I had a couple issues.

  1. I needed to disable Windows anti-virus
  2. I needed to put my project in C:\ root to minimize the file name length
  • Once built, I can move it to any directory I want and it will work moving forward.

Thanks again for your replies

Scott

1 Like