makerbase-mks / MKS-SGEN_L-V2

MKS SGEN_L V2.0 is powerful 32-bit 3D printer control board. The CPU is LPC1769 120MHZ, SGEN_L V2 hardware Integrated 4KB EEPROM, 5AXIS and dual Z interface, has 2 way FANs and Dc12/24V out interface, support TMC UART and SPI mode...
https://www.aliexpress.com/item/4001283346331.html?spm=a2g0o.store_home.slider_165457030.0
GNU General Public License v3.0
70 stars 28 forks source link

Compileing problem with MIXING_EXTRUDER #63

Closed detroitpowa closed 3 years ago

detroitpowa commented 3 years ago

**Hello!

I have a probelem. I couldn't compiling my project, with MIXING_EXTRUDER. I got this message. Myabe it have problem with the display. If i change it to SPI_GRAPHICAL_TFT it is working, but with TFT_480x320_SPI it doesn't. But SPI_GRAPHICAL_TFT is so bad, i dont want to use it. Any solution for this problem?**

Linking .pio/build/LPC1769/firmware.elf /home/detro/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/bin/ld: .pio/build/LPC1769/src/src/lcd/menu/menu_mixer.cpp.o: in function _lcd_draw_mix(unsigned char)': /home/detro/Linux cuccok/Marlin-bugfix-2.0.x display+semmi/Marlin/src/lcd/menu/menu_mixer.cpp:110: undefined reference tolcd_moveto(unsigned char, unsigned char)' /home/detro/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/bin/ld: .pio/build/LPC1769/src/src/lcd/menu/menu_mixer.cpp.o: in function lcd_put_u8str_P(char const*)': /home/detro/Linux cuccok/Marlin-bugfix-2.0.x display+semmi/Marlin/src/lcd/menu/../lcdprint.h:149: undefined reference tolcd_put_u8str_max_P(char const, unsigned short)' /home/detro/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/bin/ld: .pio/build/LPC1769/src/src/lcd/menu/menu_mixer.cpp.o: in function _lcd_draw_mix(unsigned char)': /home/detro/Linux cuccok/Marlin-bugfix-2.0.x display+semmi/Marlin/src/lcd/menu/menu_mixer.cpp:111: undefined reference tolcd_moveto(unsigned char, unsigned char)' /home/detro/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/bin/ld: .pio/build/LPC1769/src/src/lcd/menu/menu_mixer.cpp.o: in function `lcd_put_u8str(char const)': /home/detro/Linux cuccok/Marlin-bugfix-2.0.x display+semmi/Marlin/src/lcd/menu/../lcdprint.h:161: undefined reference to lcd_put_u8str_max(char const*, unsigned short)' /home/detro/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/bin/ld: .pio/build/LPC1769/src/src/lcd/menu/menu_mixer.cpp.o: in functionmenu_mixer()': /home/detro/Linux cuccok/Marlin-bugfix-2.0.x display+semmi/Marlin/src/lcd/menu/menu_mixer.cpp:229: undefined reference to lcd_moveto(unsigned char, unsigned char)' /home/detro/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/bin/ld: .pio/build/LPC1769/src/src/lcd/menu/menu_mixer.cpp.o: in functionlcd_put_u8str(char const)': /home/detro/Linux cuccok/Marlin-bugfix-2.0.x display+semmi/Marlin/src/lcd/menu/../lcdprint.h:161: undefined reference to `lcd_put_u8str_max(char const, unsigned short)' collect2: error: ld returned 1 exit status *** [.pio/build/LPC1769/firmware.elf] Error 1 ================================================================================================== [FAILED] Took 21.35 seconds ==================================================================================================

Environment Status Duration


LPC1769 FAILED 00:00:21.348 ============================================================================================= 1 failed, 0 succeeded in 00:00:21.348 ============================================================================================= The terminal process "platformio 'run', '--environment', 'LPC1769'" terminated with exit code: 1.

My settings in Configuration.h:

define EXTRUDERS 1

// Generally expected filament diameter (1.75, 2.85, 3.0, ...). Used for Volumetric, Filament Width Sensor, etc.

define DEFAULT_NOMINAL_FILAMENT_DIA 1.75

// For Cyclops or any "multi-extruder" that shares a single nozzle. //#define SINGLENOZZLE

define MIXING_EXTRUDER

if ENABLED(MIXING_EXTRUDER)

define MIXING_STEPPERS 2 // Number of steppers in your mixing extruder

define MIXING_VIRTUAL_TOOLS 16 // Use the Virtual Tool method with M163 and M164

//#define DIRECT_MIXING_IN_G1 // Allow ABCDHI mix factors in G1 movement commands //#define GRADIENT_MIX // Support for gradient mixing with M166 and LCD

if ENABLED(GRADIENT_MIX)

//#define GRADIENT_VTOOL       // Add M166 T to use a V-tool index as a Gradient alias

endif

endif

detroitpowa commented 3 years ago

I rewrited the new 2.0.8.1 marlin firmware to my setup, and somehow it compiled with MKS TS35 v2.0 display what i use. 🗡️ And mixing extruder is compiled as well. I used the new "Auto build marlin" addon (or new for me) in Visual studio code.. :) Tomorrow the moment of truth will happening. I hope it will working well.

detroitpowa commented 3 years ago

Everything is working fine.. :)