bigtreetech / BIGTREETECH-SKR-mini-E3

BIGTREETECH SKR-mini-E3 motherboard is a ultra-quiet, low-power, high-quality 3D printing machine control board. It is launched by the 3D printing team of Shenzhen BIGTREE technology co., LTD. This board is specially tailored for Ender 3 printer, perfectly replacing the original Ender3 printer motherboard.
2.01k stars 1.97k forks source link

VSCode fails to compile the V1.2 configuration.h file #112

Closed steverichab closed 4 years ago

steverichab commented 4 years ago

After downloading the appropriate V1.2 files in the repository I am unable to compile the configuration.h file using VSCode & PlatformIO. As a result this compile failed

STM32F103RC_bigtree FAILED 00:00:59.398

Compiling .pio\build\STM32F103RC_bigtree\src\src\lcd\menu\menu_cancelobject.cpp.o

Marlin\src\lcd\lcdprint.cpp: In function 'lcd_uint_t lcd_put_u8str_ind_P(const char*, uint8_t, lcd_uint_t)':

Marlin\src\lcd\lcdprint.cpp:50:52: error: 'LCD_FIRST_TOOL' was not declared in this scope lcd_put_wchar(ind + ((ch == '=') ? '0' : LCD_FIRST_TOOL)); ^~~~~~ Marlin\src\lcd\lcdprint.cpp:50:52: note: suggested alternative: 'LCD_PINS_RS' lcd_put_wchar(ind + ((ch == '=') ? '0' : LCD_FIRST_TOOL)); ^~~~~~ LCD_PINS_RS Compiling .pio\build\STM32F103RC_bigtree\src\src\lcd\menu\menu_configuration.cpp.o Compiling .pio\build\STM32F103RC_bigtree\src\src\lcd\menu\menu_custom.cpp.o *** [.pio\build\STM32F103RC_bigtree\src\src\lcd\lcdprint.cpp.o] Error 1

Any recomendations?

steverichab commented 4 years ago

OMG I finally found a source that would actually compile in VSCode without errors for my BTT SKR E3 Mini V1.2 , This system has BLTouch and is configured for sensorless homing. Hope it helps and Thank You "Morningreis" https://github.com/morningreis/Marlin-SKR-E3-Mini-1.2

stompascience commented 4 years ago

Hi, also maybe try and compile with ATOM as I had the same problem with VSCode(MacOS). Have you tried editing for exactly what you want and get it to build ok in VSCode?

damvcoool commented 4 years ago

You can also give one a try ;) https://github.com/damvcoool/Marlin-2.0.x-SKR-Mini-E3-v1.2

TheGadge commented 4 years ago

For anyone still stuck in this blue screen loop, just downgrade platformio and it’s core in VSC.

goos766 commented 4 years ago

For anyone still stuck in this blue screen loop, just downgrade platformio and it’s core in VSC.

just downgrade platformio? How to do it? Can you write a short description? Please

steverichab commented 4 years ago

Thanks everyone! I now have two versions that will compile for the BTT SKR Mini E3 V1.2 using VSCode & Marlin Bugfix 2.0x . It appears that my next challenge is to get it to up load to the board. When I try to load either compiled version here is the error any help is appreciated:

CURRENT: upload_protocol = stlink Uploading .pio\build\STM32F103RC_bigtree\firmware.elf xPack OpenOCD, 64-bit Open On-Chip Debugger 0.10.0+dev (2019-07-17-11:28) Licensed under GNU GPL v2 For bug reports, read http://openocd.org/doc/doxygen/bugs.html debug_level: 1

hla_swd Error: open failed in procedure 'program' OpenOCD init failed shutdown command invoked

*** [upload] Error 1 ======================================================================================================== [FAILED] Took 10.10 seconds ========================================================================================================

steverichab commented 4 years ago

Thank you morningreis ! the code compiles in PIO and the next challenge will be to move that firmware to the BTT SKR E3 mini