bigtreetech / BIGTREETECH-S42B-V1.0

The closed-loop drive is to feedback the rotation angle of the stepping motor to the control panel, compare the distance that needs to be rotated with the distance of the actual rotation, calculate the error value, and then compensate, so as to prevent the problem of multi-step and lost step. The closed-loop drive can completely overcome the lost step of the open-loop stepping motor, and can also significantly improve the performance of the motor at high speed
108 stars 53 forks source link

DEFAULT_ENV #44

Open milicigoran opened 3 years ago

milicigoran commented 3 years ago

I cant seem to be able to compile the firmware with vs code. i get a "Warning! env_default configuration option in section [platformio] is deprecated and will be removed in the next release! Please use default_envs instead" when i try to compile. From what ive read it has to do with the core of platforio but i checked i have the latest 5 which is backwards compatible with 4 which is what im guessing was out when this code was written. so how do i go about compiling it or should i just not worry and flash the bin file thats available and flash with my sd card?

milicigoran commented 3 years ago

now im getting this.

AssertionError: Missing MCU or Product Line field: File "C:\Users\Milici.platformio\penv\lib\site-packages\platformio\builder\main.py", line 170: env.SConscript("$BUILD_SCRIPT") File "C:\Users\Milici.platformio\packages\tool-scons\scons-local-4.0.1\SCons\Script\SConscript.py", line 598: return _SConscript(self.fs, *files, subst_kw) File "C:\Users\Milici.platformio\packages\tool-scons\scons-local-4.0.1\SCons\Script\SConscript.py", line 287: exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals) File "C:\Users\Milici.platformio\platforms\ststm32\builder\main.py", line 99: target_elf = env.BuildProgram() File "C:\Users\Milici.platformio\packages\tool-scons\scons-local-4.0.1\SCons\Environment.py", line 219: return self.method(*nargs, *kwargs) File "C:\Users\Milici.platformio\penv\lib\site-packages\platformio\builder\tools\platformio.py", line 61: env.ProcessProgramDeps() File "C:\Users\Milici.platformio\packages\tool-scons\scons-local-4.0.1\SCons\Environment.py", line 219: return self.method(nargs, kwargs) File "C:\Users\Milici.platformio\penv\lib\site-packages\platformio\builder\tools\platformio.py", line 127: env.BuildFrameworks(env.get("PIOFRAMEWORK")) File "C:\Users\Milici.platformio\packages\tool-scons\scons-local-4.0.1\SCons\Environment.py", line 219: return self.method(*nargs, kwargs) File "C:\Users\Milici.platformio\penv\lib\site-packages\platformio\builder\tools\platformio.py", line 342: SConscript(env.GetFrameworkScript(f), exports="env") File "C:\Users\Milici.platformio\packages\tool-scons\scons-local-4.0.1\SCons\Script\SConscript.py", line 661: return method(*args, *kw) File "C:\Users\Milici.platformio\packages\tool-scons\scons-local-4.0.1\SCons\Script\SConscript.py", line 598: return _SConscript(self.fs, files, subst_kw) File "C:\Users\Milici.platformio\packages\tool-scons\scons-local-4.0.1\SCons\Script\SConscript.py", line 287: exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals) File "C:\Users\Milici.platformio\platforms\ststm32\builder\frameworks\stm32cube.py", line 43: assert PRODUCT_LINE, "Missing MCU or Product Line field"