The recent Marlin seems to have some issue with serial stuff [2], if I set my serial stuff in Configuration.h: #define SERIAL_PORT 1
I can manage to build yet when I try to load the firmware on SDcard it stucks at 100% and won’t boot (btw the same things happens with Klipper, maybe it’s a problem related tp EEPROM?).
Anyway, anybody has some clue about it or a recent repository of Marlin that can be compiled for the Robin E3 V1.0 with TMC2209?
This is how the old Marlin fails:
ModuleNotFoundError: No module named 'platformio.managers':
File "C:\Users\eaman\.platformio\penv\Lib\site-packages\platformio\builder\main.py", line 169:
env.SConscript(env.GetExtraScripts("pre"), exports="env")
File "C:\Users\eaman\.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\eaman\.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\eaman\Documents\a Documents\marlin\mks\MKS-Robin-E3-E3D-master\firmware\V1.0\For
Ender3 TMC2209\buildroot\share\PlatformIO\scripts\common-dependencies.py", line 12:
from platformio.managers.package import PackageManager
Sadly, MKS have been inconsistent in providing source code and getting changes upstream.
In the past, I’ve spent hours to work out a working config for mainline marlin from a random fork from a manufacturer and I’ll never get those hours back.
He I would be happy if I could at least re-compile the old Marlin that they provide, maybe there’s a way to install an old version of PlatformIO.
I tried to install Klipper but it’s the same thing: it gets stuck at installing (I can install Marlin with the same SD card so it works), it’s like they provided a version of Klipper that only works for the E3D version I guess (or V1.1 who knows?). Also it has a mini USB and the plug broke almost instantly as I tried to see if my klipper server could see it, so it would be really nice if I could update Marvin and use it standalone.
But I agree with you: it’s the last time I buy MakerBase.
I’m sure that in theory, by digging through Marlin’s history of changes to the platformio configuration, it would be possible to work out how to fix it. But not my area of expertise, so a few other ideas…
Judging by the README here, I wonder if you could download Arduino 1.8.8 and use that instead of platformio?
Going by this:
…You might be able to compare those sources to the 2.0.6 release of Marlin to see what they changed. That might make it clearer how to port those changes to newer Marlin to use current platformio.