Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot compile in Visual Studio Code #118

Open
YapCK45 opened this issue May 30, 2023 · 2 comments
Open

Cannot compile in Visual Studio Code #118

YapCK45 opened this issue May 30, 2023 · 2 comments

Comments

@YapCK45
Copy link

YapCK45 commented May 30, 2023

I downloaded BIGTREETECH-SKR-E3-DIP-V1.0-master.zip and unzipped it in VSC. Checked all the changes needed and noted to change default_envs in platformio.ini to STM32F103RC_btt. When compiling got the following error message:

File "D:\BTT Firmware\BIGTREETECH-SKR-E3-DIP-V1.0-master\Firmware\Marlin-2.0.7.2-SKR-E3-DIP\buildroot\share\PlatformIO\scripts\STM32F103RC_SKR_MINI.py", line 6:
for define in env['CPPDEFINES']:

Screen shot here:
image

Please help.

@H-DieterK
Copy link

H-DieterK commented May 30, 2023 via email

@YapCK45
Copy link
Author

YapCK45 commented May 31, 2023

Thank you, @H-DieterK for your comment: 'Not sure why you are referencing an SKR-E3-Mini which will likely have a different CPU environment name'. I am puzzled too as this was in platformio.ini and as below:

[platformio]
src_dir = Marlin
boards_dir = buildroot/share/PlatformIO/boards
default_envs = STM32F103RC_btt
include_dir = Marlin
.
.
.
[env:STM32F103RC_btt]
platform = ${common_stm32f1.platform}
extends = env:STM32F103RC
extra_scripts = ${common.extra_scripts}
buildroot/share/PlatformIO/scripts/STM32F103RC_SKR_MINI.py
build_flags = ${common_stm32f1.build_flags}
-DDEBUG_LEVEL=0 -DSS_TIMER=4
monitor_speed = 115200

I am using the shortest path and using the folder named Marlin-SKR-2.0.7.2-SKR-E3-DIP. It made no difference.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants