Open Excaliburst opened 3 years ago
Hello, you can use the code under the current warehouse to compile. The configuration is as follows: platformio.ini:
default_envs = mks_robin_nano35
Configuation.h:
Thanks MKS-Sean,
I have already made your suggested changes. But still get this error during compile.
In file included from buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/MarlinConfig.h:34:0, from buildroot/share/PlatformIO/scripts/common-dependencies.h:31: buildroot/share/PlatformIO/scripts/../../../../Marlin/src/inc/../pins/pins.h:525:12: fatal error: stm32f1/pins_MKS_ROBIN_NANO.h: No such file or directory
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated. CalledProcessError: Command 'arm-none-eabi-g++.exe -DTARGET_STM32F1 -DMARLIN_FIRMWARE -DHAVE_SW_SERIAL -DMCU_STM32F103VE -DSS_TIMER=4 -DMARLIN_DEPS -w -dM -E -x c++ buildroot/share/PlatformIO/scripts/common-dependencies.h' returned non-zero exit status 1.: File "C:\Users\skjor.platformio\penv\Lib\site-packages\platformio\builder\main.py", line 175: env.SConscript(item, exports="env") File "C:\Users\skjor.platformio\packages\tool-scons\scons-local-4.1.0\SCons\Script\SConscript.py", line 591: return _SConscript(self.fs, *files, *subst_kw) File "C:\Users\skjor.platformio\packages\tool-scons\scons-local-4.1.0\SCons\Script\SConscript.py", line 280: exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals) File "C:\Users\skjor\OneDrive\Documents\IT_3D_Printer_TwoTrees Sapphire Plus\Firmware\Marlin-2.0.x_SapphirePlus_FromScratch_AutoAlignZ_FromVideoAuroraTech_ColorTouchscreen\buildroot\share\PlatformIO\scripts\common-dependencies.py", line 286: apply_features_config() File "C:\Users\skjor\OneDrive\Documents\IT_3D_Printer_TwoTrees Sapphire Plus\Firmware\Marlin-2.0.x_SapphirePlus_FromScratch_AutoAlignZ_FromVideoAuroraTech_ColorTouchscreen\buildroot\share\PlatformIO\scripts\common-dependencies.py", line 118: if not env.MarlinFeatureIsEnabled(feature): File "C:\Users\skjor.platformio\packages\tool-scons\scons-local-4.1.0\SCons\Util.py", line 658: return self.method(nargs, *kwargs) File "C:\Users\skjor\OneDrive\Documents\IT_3D_Printer_TwoTrees Sapphire Plus\Firmware\Marlin-2.0.x_SapphirePlus_FromScratch_AutoAlignZ_FromVideoAuroraTech_ColorTouchscreen\buildroot\share\PlatformIO\scripts\common-dependencies.py", line 262: load_marlin_features() File "C:\Users\skjor\OneDrive\Documents\IT_3D_Printer_TwoTrees Sapphire Plus\Firmware\Marlin-2.0.x_SapphirePlus_FromScratch_AutoAlignZ_FromVideoAuroraTech_ColorTouchscreen\buildroot\share\PlatformIO\scripts\common-dependencies.py", line 250: define_list = subprocess.check_output(cmd, shell=True).splitlines() File "C:\Users\skjor.platformio\python3\lib\subprocess.py", line 424: return run(popenargs, stdout=PIPE, timeout=timeout, check=True, File "C:\Users\skjor.platformio\python3\lib\subprocess.py", line 528: raise CalledProcessError(retcode, process.args,
Hi there, did you manage to solve this? Got this printer and I'd like to have this Marlin version working.
Thnx in advance!
Maybe it is caused by the Vscode compilation environment.
Description
During compile in PlatformIO I see this specific error: stm32f1/pins_MKS_ROBIN_NANO.h: No such file or directory
Furthermore I have 49 warnings { "resource": "/c:/Users/skjor/OneDrive/Documents/IT/_3D_Printer/_TwoTrees Sapphire Plus/Firmware/Marlin-2.0.x_SapphirePlus_FromScratch_AutoAlignZ_FromVideoAuroraTech_ColorTouchscreen/Marlin/Configuration.h", "owner": "C/C++", "code": "59", "severity": 8, "message": "function call is not allowed in a constant expression", "source": "C/C++", "startLineNumber": 154, "startColumn": 5, "endLineNumber": 154, "endColumn": 12 }
Later another error is thrown { "resource": "/c:/Users/skjor/OneDrive/Documents/IT/_3D_Printer/_TwoTrees Sapphire Plus/Firmware/Marlin-2.0.x_SapphirePlus_FromScratch_AutoAlignZ_FromVideoAuroraTech_ColorTouchscreen/Marlin/Configuration.h", "owner": "C/C++", "code": "29", "severity": 8, "message": "expected an expression", "source": "C/C++", "startLineNumber": 550, "startColumn": 19, "endLineNumber": 550, "endColumn": 20 }
Steps to Reproduce
Expected behavior: Following this video https://www.youtube.com/watch?v=GbHsNCDrTpY with exacting directions on how to configure the Sapphire Plus CoreXY printer with Marlin FW, I expected to be able to compile a .bin file.
Actual behavior: PlatformIO thows the above errors.
Additional Information
Configuration.h
andConfiguration_adv.h
files.Configuration_files.zip