Welcome! Log In Create A New Profile

Advanced

Unable to compile

Posted by WHyde 
Unable to compile
January 03, 2024 01:45PM
Could anybody help me please? I'm trying making VSC run, but after 40+ hours of trying I'm not able compile even unedited Marlin, and Idk where else I could ask for help. Starting be really desperate...


Resolving mega2560 dependencies...
Already up-to-date.
Updating metadata for the vscode IDE...
UserSideException: Processing mega2560 (board: megaatmega2560; platform: atmelavr@~4.0.1; framework: arduino)
--------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: [docs.platformio.org]
PLATFORM: Atmel AVR (4.0.1) > Arduino Mega or Mega 2560 ATmega2560 (Mega 2560)
HARDWARE: ATMEGA2560 16MHz, 8KB RAM, 248KB Flash
DEBUG: Current (avr-stub) External (avr-stub, simavr)
PACKAGES:
- framework-arduino-avr @ 5.1.0
- toolchain-atmelavr @ 1.70300.191015 (7.3.0)
Converting Marlin.ino
The screen cannot be set to the number of lines and columns specified.
AssertionError: :
File "C:\Users\venca\.platformio\penv\Lib\site-packages\platformio\builder\main.py", line 173:
env.SConscript("$BUILD_SCRIPT")
File "C:\Users\venca\.platformio\packages\tool-scons\scons-local-4.5.2\SCons\Script\SConscript.py", line 598:
return _SConscript(self.fs, *files, **subst_kw)
File "C:\Users\venca\.platformio\packages\tool-scons\scons-local-4.5.2\SCons\Script\SConscript.py", line 285:
exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
File "C:\Users\venca\.platformio\platforms\atmelavr\builder\main.py", line 161:
target_elf = env.BuildProgram()
File "C:\Users\venca\.platformio\packages\tool-scons\scons-local-4.5.2\SCons\Util\envs.py", line 242:
return self.method(*nargs, **kwargs)
File "C:\Users\venca\.platformio\penv\Lib\site-packages\platformio\builder\tools\piobuild.py", line 61:
env.ProcessProgramDeps()
File "C:\Users\venca\.platformio\packages\tool-scons\scons-local-4.5.2\SCons\Util\envs.py", line 242:
return self.method(*nargs, **kwargs)
File "C:\Users\venca\.platformio\penv\Lib\site-packages\platformio\builder\tools\piobuild.py", line 121:
env.BuildFrameworks(env.get("PIOFRAMEWORK"))
File "C:\Users\venca\.platformio\packages\tool-scons\scons-local-4.5.2\SCons\Util\envs.py", line 242:
return self.method(*nargs, **kwargs)
File "C:\Users\venca\.platformio\penv\Lib\site-packages\platformio\builder\tools\piobuild.py", line 339:
env.ConvertInoToCpp()
File "C:\Users\venca\.platformio\packages\tool-scons\scons-local-4.5.2\SCons\Util\envs.py", line 242:
return self.method(*nargs, **kwargs)
File "C:\Users\venca\.platformio\penv\Lib\site-packages\platformio\builder\tools\pioino.py", line 237:
out_file = c.convert(ino_nodes)
File "C:\Users\venca\.platformio\penv\Lib\site-packages\platformio\builder\tools\pioino.py", line 85:
return self.process(contents)
File "C:\Users\venca\.platformio\penv\Lib\site-packages\platformio\builder\tools\pioino.py", line 106:
assert self._gcc_preprocess(contents, out_file)
========================== [FAILED] Took 0.98 seconds ==========================

Environment Status Duration
------------- -------- ------------
mega2560 FAILED 00:00:00.984
==================== 1 failed, 0 succeeded in 00:00:00.984 ====================
Attachments:
open | download - Configuration.h (134.4 KB)
open | download - Configuration_adv.h (186.7 KB)
open | download - _Bootscreen.h (5.4 KB)
open | download - Bez n├ízvu.jpg (253.9 KB)
Re: Unable to compile
January 03, 2024 05:34PM
Provided configs work as expected, so issue is with your machine

delete directory "C:\Users\venca\.platformio" and restart vscode, this will reinstall platformio from scratch, give it time to download all it needs, dont reboot before it is done.

Edited 1 time(s). Last edit at 01/03/2024 05:37PM by Dust.
Sorry, only registered users may post in this forum.

Click here to login