Welcome! Log In Create A New Profile

Advanced

2.0.6 Compile Error Stock CR-10 Mini Configuration

Posted by dfiorucci 
2.0.6 Compile Error Stock CR-10 Mini Configuration
August 02, 2020 01:56PM
I downloaded the latest 2.0.6 firmware along with the configuration files.
When I copy just the stock config files over for the CR-10 Mini and then try compiling in Arduino 1.8.13 I get the following error.

Arduino: 1.8.13 (Windows 7), Board: "Sanguino, ATmega1284 or ATmega1284P (16 MHz)"


fork/exec C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-gcc.exe: The filename or extension is too long.

Error compiling for board Sanguino.

Now note this is the stock configuration file with absolutely no changes to it and it won't compile.
I'm trying to add a BLTOUCH to my CR-10 Mini but I'm unable to compile anything even the stock configuration.
Re: 2.0.6 Compile Error Stock CR-10 Mini Configuration
August 02, 2020 03:11PM
Your running windows and windows has many path limits you cannot override. (thanks Microsoft, you suck)

One in particular there is a exec/fork limit of 32k characters, so if you want to run a command with a very long command line longer than 32k characters, you cannot do it!

When making marlin, it turns all the cpp files into .o files then joins them all together in one very large command. Which can exceed this limit

How to get around it

1) don't use arduino ide, use vscode + platformio. Compiles faster, produces smaller code and uses other trick to try and avoid this issue.
2) move marlin to the root of a drive in a directory as short as you can eg c:\m
3) remove part of the code that aren't needed for your system. eg Marlin/src/HAL is a bunch of directories you don't need. Remove directories ESP32 LINUX STM32F1 TEENSY31_32 DUE LPC1768 SAMD51 STM32 STM32_F4_F7 TEENSY35_36.
Re: 2.0.6 Compile Error Stock CR-10 Mini Configuration
August 02, 2020 04:42PM
Hi Dust,
Thanks for the info.
Can vscode + platformio export a hex file?
I'm not able to put a boot loader and the bltouch config onto my V1.1.4 so I upload the configuration using the ISP programmer.
Re: 2.0.6 Compile Error Stock CR-10 Mini Configuration
August 02, 2020 04:55PM
Yes it creates a firmware.hex under Marlin/.pio/build
Re: 2.0.6 Compile Error Stock CR-10 Mini Configuration
August 02, 2020 05:18PM
Now I'm having issues installing Platformio.
It doesn't seem to understand that I have Python 3.8 installed and when I give it the path it says it's invalid.
Nothing ever works as advertised.
Re: 2.0.6 Compile Error Stock CR-10 Mini Configuration
August 02, 2020 05:30PM
Will Arduino IDE work on a Mac?
Because the installation of Platformio is not working it's hanging up on the Python installation.
Re: 2.0.6 Compile Error Stock CR-10 Mini Configuration
August 02, 2020 06:01PM
Tried compiling on Mac didn't work there either.
Re: 2.0.6 Compile Error Stock CR-10 Mini Configuration
August 02, 2020 09:55PM
Okay so I uninstalled Python then reinstalled but selected the path checkbox.
So now it's installed just need to figure how to compile and export the hex code now.
Re: 2.0.6 Compile Error Stock CR-10 Mini Configuration
August 03, 2020 12:07AM
Open folder with platfomio.ini file in it.

update Config files

Set default env in platformio.ini (equivalent of as selecting a board)

click Tick icon on bottom of screen.
Sorry, only registered users may post in this forum.

Click here to login