knutwurst / Marlin-2-0-x-Anycubic-i3-MEGA-S

Marlin 2.0.x Version for Anycubic i3 MEGA M/S/P/X/CHIRON and 4MAX with Anycubic TFT or the "new" DGUS Clone TFT - Now also with BLTouch!
GNU General Public License v3.0
789 stars 187 forks source link

[BUG] Enabling support for REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER #275

Closed mrpilipo closed 2 years ago

mrpilipo commented 2 years ago

Bug Description

So, I am going back from klipper to marlin on my Ai3MS, simply due to lack of support for M421 and lack of time to properly implement it by myself.

In the meantime I have swapped my screen for the RepRapDiscount Full Graphic one. Going back to marlin I of course have to enable support for it.

Steps to Reproduce

In Configuration.h I have commented out:

//#define ANYCUBIC_TOUCHSCREEN
//#define KNUTWURST_SPECIAL_MENU
//#define KNUTWURST_SPECIAL_MENU_WO_SD

and enabled: #define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER

While building got errors due to missing U8glib dependency, went to platformio.ini and uncommented: U8glib-HAL@0.4.1

Tried to build again, same error, turns out marlin is looking for newer version, so changed it accordingly to the latest version: U8glib-HAL@0.5.1

Building again, got my hopes up since it kept going for a little while... and then it fails again. Tail of the build log:

Compiling .pio\build\MEGA_S_BLT_10\lib4de\TMCStepper\source\SW_SPI.cpp.o
 #define BEEPER_PIN                            31

In file included from Marlin\src\sd\../inc/../pins/ramps/pins_TRIGORILLA_14.h:97:0,
                 from Marlin\src\sd\../inc/../pins/pins.h:153,
Compiling .pio\build\MEGA_S_BLT_10\lib4de\TMCStepper\source\TMC2130Stepper.cpp.o
                 from Marlin\src\sd\../inc/MarlinConfig.h:34,
                 from Marlin\src\sd\SdVolume.cpp:32:
Marlin\src\sd\../inc/../pins/ramps/pins_RAMPS.h:614:0: warning: "BEEPER_PIN" redefined
       #define BEEPER_PIN             EXP1_10_PIN

In file included from Marlin\src\sd\../inc/../pins/pins.h:153:0,
                 from Marlin\src\sd\../inc/MarlinConfig.h:34,
                 from Marlin\src\sd\SdVolume.cpp:32:
Marlin\src\sd\../inc/../pins/ramps/pins_TRIGORILLA_14.h:59:0: note: this is the location of the previous definition
 #define BEEPER_PIN                            31

Compiling .pio\build\MEGA_S_BLT_10\lib4de\TMCStepper\source\TMC2160Stepper.cpp.o
Compiling .pio\build\MEGA_S_BLT_10\lib4de\TMCStepper\source\TMC2208Stepper.cpp.o
Compiling .pio\build\MEGA_S_BLT_10\lib4de\TMCStepper\source\TMC2209Stepper.cpp.o
Compiling .pio\build\MEGA_S_BLT_10\lib4de\TMCStepper\source\TMC2660Stepper.cpp.o
Compiling .pio\build\MEGA_S_BLT_10\lib4de\TMCStepper\source\TMC5130Stepper.cpp.o
Compiling .pio\build\MEGA_S_BLT_10\lib4de\TMCStepper\source\TMC5160Stepper.cpp.o
Compiling .pio\build\MEGA_S_BLT_10\lib4de\TMCStepper\source\TMCStepper.cpp.o
Compiling .pio\build\MEGA_S_BLT_10\lib4de\TMCStepper\source\bcm2835_spi.cpp.o
Compiling .pio\build\MEGA_S_BLT_10\lib4de\TMCStepper\source\bcm2835_stream.cpp.o
Compiling .pio\build\MEGA_S_BLT_10\libe70\Wire\Wire.cpp.o
Compiling .pio\build\MEGA_S_BLT_10\libe70\Wire\utility\twi.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\U8glib-HAL.cpp.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\U8glibPrint.cpp.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_bitmap.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_circle.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_clip.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_com_api.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_com_api_16gr.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_com_arduino_attiny85_hw_spi.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_com_arduino_common.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_com_arduino_fast_parallel.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_com_arduino_hw_spi.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_com_arduino_hw_usart_spi.c.o
Archiving .pio\build\MEGA_S_BLT_10\lib4de\libTMCStepper.a
Archiving .pio\build\MEGA_S_BLT_10\libe70\libWire.a
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_com_arduino_no_en_parallel.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_com_arduino_parallel.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_com_arduino_port_d_wr.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_com_arduino_ssd_i2c.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_com_arduino_st7920_custom.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_com_arduino_st7920_hw_spi.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_com_arduino_st7920_spi.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_com_arduino_std_sw_spi.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_com_arduino_sw_spi.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_com_arduino_t6963.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_com_arduino_uc_i2c.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_com_atmega_hw_spi.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_com_atmega_parallel.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_com_atmega_st7920_hw_spi.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_com_atmega_st7920_spi.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_com_atmega_sw_spi.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_com_atxmega_hw_spi.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_com_atxmega_st7920_hw_spi.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_com_esp32_ssd_i2c_fn.cpp.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_com_i2c.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_com_io.cpp.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_com_linux_ssd_i2c.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_com_msp430_hw_spi.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_com_null.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_com_psoc5_ssd_hw_parallel.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_com_raspberrypi_hw_spi.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_com_raspberrypi_ssd_i2c.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_com_samd51_hw_spi.cpp.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_com_samd51_st7920_hw_spi.cpp.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_com_std_sw_spi.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_com_stm32duino_hw_spi.cpp.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_com_stm32duino_ssd_i2c.cpp.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_cursor.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_delay.cpp.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_dev_a2_micro_printer.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_dev_flipdisc_2x7.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_dev_gprof.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_dev_ht1632.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_dev_ili9325d_320x240.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_dev_ks0108_128x64.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_dev_lc7981_160x80.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_dev_lc7981_240x128.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_dev_lc7981_240x64.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_dev_lc7981_320x64.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_dev_ld7032_60x32.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_dev_null.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_dev_pcd8544_84x48.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_dev_pcf8812_96x65.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_dev_sbn1661_122x32.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_dev_ssd1306_128x32.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_dev_ssd1306_128x64.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_dev_ssd1306_64x48.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_dev_ssd1309_128x64.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_dev_ssd1322_nhd31oled_bw.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_dev_ssd1322_nhd31oled_gr.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_dev_ssd1325_nhd27oled_bw.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_dev_ssd1325_nhd27oled_bw_new.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_dev_ssd1325_nhd27oled_gr.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_dev_ssd1325_nhd27oled_gr_new.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_dev_ssd1327_96x96_gr.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_dev_ssd1351_128x128.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_dev_ssd1353_160x128.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_dev_st7565_64128n.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_dev_st7565_dogm128.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_dev_st7565_dogm132.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_dev_st7565_lm6059.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_dev_st7565_lm6063.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_dev_st7565_nhd_c12832.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_dev_st7565_nhd_c12864.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_dev_st7687_c144mvgd.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_dev_st7920_128x64.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_dev_st7920_192x32.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_dev_st7920_202x32.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_dev_t6963_128x128.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_dev_t6963_128x64.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_dev_t6963_240x128.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_dev_t6963_240x64.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_dev_tls8204_84x48.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_dev_uc1601_c128032.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_dev_uc1608_240x128.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_dev_uc1608_240x64.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_dev_uc1610_dogxl160.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_dev_uc1611_dogm240.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_dev_uc1611_dogxl240.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_dev_uc1701_dogs102.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_dev_uc1701_mini12864.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_ellipse.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_font.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_font_data.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_font_data_04b.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_font_data_courier.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_font_data_fu.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_font_data_gd.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_font_data_helvetica.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_font_data_ncen.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_font_data_os.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_font_data_profont.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_font_data_symb.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_font_data_times.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_font_data_unifont.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_line.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_ll_api.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_page.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_pb.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_pb14v1.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_pb16h1.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_pb16h2.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_pb16v1.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_pb16v2.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_pb32h1.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_pb8h1.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_pb8h1f.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_pb8h2.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_pb8h8.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_pb8v1.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_pb8v2.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_pbxh16.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_pbxh24.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_polygon.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_rect.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_rot.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_scale.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_state.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_u16toa.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_u8toa.c.o
Compiling .pio\build\MEGA_S_BLT_10\libcda\U8glib-HAL\clib\u8g_virtual_screen.c.o
Compiling .pio\build\MEGA_S_BLT_10\lib978\LiquidTWI2\LiquidTWI2.cpp.o
Compiling .pio\build\MEGA_S_BLT_10\lib248\Arduino-L6470\L6470.cpp.o
Compiling .pio\build\MEGA_S_BLT_10\libaa5\TMC26XStepper\TMC26XStepper.cpp.o
Archiving .pio\build\MEGA_S_BLT_10\libFrameworkArduinoVariant.a
Compiling .pio\build\MEGA_S_BLT_10\FrameworkArduino\CDC.cpp.o
Compiling .pio\build\MEGA_S_BLT_10\FrameworkArduino\HardwareSerial.cpp.o
Compiling .pio\build\MEGA_S_BLT_10\FrameworkArduino\HardwareSerial0.cpp.o
Compiling .pio\build\MEGA_S_BLT_10\FrameworkArduino\HardwareSerial1.cpp.o
Compiling .pio\build\MEGA_S_BLT_10\FrameworkArduino\HardwareSerial2.cpp.o
Compiling .pio\build\MEGA_S_BLT_10\FrameworkArduino\HardwareSerial3.cpp.o
Compiling .pio\build\MEGA_S_BLT_10\FrameworkArduino\IPAddress.cpp.o
Compiling .pio\build\MEGA_S_BLT_10\FrameworkArduino\PluggableUSB.cpp.o
Compiling .pio\build\MEGA_S_BLT_10\FrameworkArduino\Print.cpp.o
Archiving .pio\build\MEGA_S_BLT_10\lib248\libArduino-L6470.a
Archiving .pio\build\MEGA_S_BLT_10\lib978\libLiquidTWI2.a
Archiving .pio\build\MEGA_S_BLT_10\libaa5\libTMC26XStepper.a
Compiling .pio\build\MEGA_S_BLT_10\FrameworkArduino\Stream.cpp.o
Compiling .pio\build\MEGA_S_BLT_10\FrameworkArduino\Tone.cpp.o
Compiling .pio\build\MEGA_S_BLT_10\FrameworkArduino\USBCore.cpp.o
Compiling .pio\build\MEGA_S_BLT_10\FrameworkArduino\WInterrupts.c.o
Compiling .pio\build\MEGA_S_BLT_10\FrameworkArduino\WMath.cpp.o
Compiling .pio\build\MEGA_S_BLT_10\FrameworkArduino\WString.cpp.o
Compiling .pio\build\MEGA_S_BLT_10\FrameworkArduino\abi.cpp.o
Compiling .pio\build\MEGA_S_BLT_10\FrameworkArduino\hooks.c.o
Compiling .pio\build\MEGA_S_BLT_10\FrameworkArduino\main.cpp.o
Compiling .pio\build\MEGA_S_BLT_10\FrameworkArduino\new.cpp.o
Compiling .pio\build\MEGA_S_BLT_10\FrameworkArduino\wiring.c.o
Compiling .pio\build\MEGA_S_BLT_10\FrameworkArduino\wiring_analog.c.o
Compiling .pio\build\MEGA_S_BLT_10\FrameworkArduino\wiring_digital.c.o
Compiling .pio\build\MEGA_S_BLT_10\FrameworkArduino\wiring_pulse.S.o
Compiling .pio\build\MEGA_S_BLT_10\FrameworkArduino\wiring_pulse.c.o
Compiling .pio\build\MEGA_S_BLT_10\FrameworkArduino\wiring_shift.c.o
Archiving .pio\build\MEGA_S_BLT_10\libFrameworkArduino.a
Archiving .pio\build\MEGA_S_BLT_10\libcda\libU8glib-HAL.a
Linking .pio\build\MEGA_S_BLT_10\firmware.elf
C:\Users\filip\AppData\Local\Temp\ccsgDPae.ltrans0.ltrans.o: In function `show_continue_prompt(bool)':
<artificial>:(.text+0x26da): undefined reference to `MarlinUI::pause_show_message(PauseMessage, PauseMode, unsigned char)'
C:\Users\filip\AppData\Local\Temp\ccsgDPae.ltrans0.ltrans.o: In function `kill(char const*, char const*, bool)':
<artificial>:(.text+0x4d00): undefined reference to `MarlinUI::return_to_status()'
<artificial>:(.text+0x4d04): undefined reference to `MarlinUI::draw_kill_screen()'
C:\Users\filip\AppData\Local\Temp\ccsgDPae.ltrans0.ltrans.o: In function `idle(bool)':
<artificial>:(.text+0x5794): undefined reference to `MarlinUI::detected()'
<artificial>:(.text+0x57cc): undefined reference to `MarlinUI::init_lcd()'
<artificial>:(.text+0x5a38): undefined reference to `MarlinUI::return_to_status()'
C:\Users\filip\AppData\Local\Temp\ccsgDPae.ltrans0.ltrans.o: In function `ensure_safe_temperature(bool, PauseMode)':
<artificial>:(.text+0x6466): undefined reference to `MarlinUI::pause_show_message(PauseMessage, PauseMode, unsigned char)'
C:\Users\filip\AppData\Local\Temp\ccsgDPae.ltrans0.ltrans.o: In function `resume_print(float const&, float const&, float const&, signed char, int) [clone .part.14]':
<artificial>:(.text+0x6584): undefined reference to `MarlinUI::pause_show_message(PauseMessage, PauseMode, unsigned char)'
<artificial>:(.text+0x65a4): undefined reference to `MarlinUI::pause_show_message(PauseMessage, PauseMode, unsigned char)'
<artificial>:(.text+0x675c): undefined reference to `MarlinUI::pause_show_message(PauseMessage, PauseMode, unsigned char)'
<artificial>:(.text+0x67c4): undefined reference to `MarlinUI::return_to_status()'
<artificial>:(.text+0x67f8): undefined reference to `MarlinUI::pause_show_message(PauseMessage, PauseMode, unsigned char)'
<artificial>:(.text+0x6870): undefined reference to `MarlinUI::pause_show_message(PauseMessage, PauseMode, unsigned char)'
<artificial>:(.text+0x6940): undefined reference to `MarlinUI::pause_show_message(PauseMessage, PauseMode, unsigned char)'
<artificial>:(.text+0x697c): undefined reference to `MarlinUI::pause_show_message(PauseMessage, PauseMode, unsigned char)'
C:\Users\filip\AppData\Local\Temp\ccsgDPae.ltrans0.ltrans.o: In function `pause_print(float const&, XYZval<float> const&, bool, float const&) [clone .part.11]':
<artificial>:(.text+0x6ae2): undefined reference to `MarlinUI::pause_show_message(PauseMessage, PauseMode, unsigned char)'
C:\Users\filip\AppData\Local\Temp\ccsgDPae.ltrans0.ltrans.o:<artificial>:(.text+0x6b28): more undefined references to `MarlinUI::pause_show_message(PauseMessage, PauseMode, unsigned char)' follow
C:\Users\filip\AppData\Local\Temp\ccsgDPae.ltrans0.ltrans.o: In function `GcodeSuite::process_parsed_command(bool)':
<artificial>:(.text+0x983e): undefined reference to `MarlinUI::return_to_status()'
C:\Users\filip\AppData\Local\Temp\ccsgDPae.ltrans1.ltrans.o: In function `MarlinUI::status_screen()':
<artificial>:(.text+0x6f6): undefined reference to `menu_main()'
<artificial>:(.text+0x6f8): undefined reference to `menu_main()'
<artificial>:(.text+0x6fa): undefined reference to `MarlinUI::goto_screen(void (*)(), unsigned int, unsigned char, unsigned char)'
<artificial>:(.text+0x6fe): undefined reference to `MarlinUI::init_lcd()'
<artificial>:(.text+0x73a): undefined reference to `MarlinUI::draw_status_screen()'
C:\Users\filip\AppData\Local\Temp\ccsgDPae.ltrans1.ltrans.o: In function `MarlinUI::update()':
<artificial>:(.text+0x498e): undefined reference to `MarlinUI::return_to_status()'
<artificial>:(.text+0x4b18): undefined reference to `u8g'
<artificial>:(.text+0x4b20): undefined reference to `u8g'
<artificial>:(.text+0x4b24): undefined reference to `u8g'
<artificial>:(.text+0x4b28): undefined reference to `u8g'
<artificial>:(.text+0x4b2c): undefined reference to `u8g'
C:\Users\filip\AppData\Local\Temp\ccsgDPae.ltrans1.ltrans.o:<artificial>:(.text+0x4b32): more undefined references to `u8g' follow
C:\Users\filip\AppData\Local\Temp\ccsgDPae.ltrans1.ltrans.o: In function `MarlinUI::update()':
<artificial>:(.text+0x4c26): undefined reference to `MarlinUI::set_font(MarlinFont)'
<artificial>:(.text+0x4c2e): undefined reference to `u8g'
<artificial>:(.text+0x4c92): undefined reference to `u8g'
<artificial>:(.text+0x4c96): undefined reference to `u8g'
<artificial>:(.text+0x4c9c): undefined reference to `u8g'
<artificial>:(.text+0x4c9e): undefined reference to `u8g'
C:\Users\filip\AppData\Local\Temp\ccsgDPae.ltrans1.ltrans.o:<artificial>:(.text+0x4ca4): more undefined references to `u8g' follow
C:\Users\filip\AppData\Local\Temp\ccsgDPae.ltrans1.ltrans.o: In function `MarlinUI::update()':
<artificial>:(.text+0x4d98): undefined reference to `MarlinUI::clear_lcd()'
C:\Users\filip\AppData\Local\Temp\ccsgDPae.ltrans1.ltrans.o: In function `MarlinUI::init()':
<artificial>:(.text+0x4dac): undefined reference to `MarlinUI::init_lcd()'
C:\Users\filip\AppData\Local\Temp\ccsgDPae.ltrans2.ltrans.o: In function `main':
<artificial>:(.text.startup+0x482): undefined reference to `MarlinUI::show_bootscreen()'
<artificial>:(.text.startup+0x97c): undefined reference to `MarlinUI::bootscreen_completion(unsigned long)'
collect2.exe: error: ld returned 1 exit status
*** [.pio\build\MEGA_S_BLT_10\firmware.elf] Error 1

Expected behavior: Marlin build with REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER support

Actual behavior: Build error

Additional Information

Using source for 1.4.0 (builds without any issues as is) on VSCode with PlatformIO as instructed.

eduardklusch commented 2 years ago

Can confirm the same issue for MEGA_TMC_BLT_10 with the same upgraded display controller.

knutwurst commented 2 years ago

Unfortunately, with this firmware it is not (or no longer) easily possible to fall back on the "normal" Marlin features and the support for displays. The reason for the Anycubic hybrid firmware (which everyone just calls "Knutwurst") is only the full support of the touchscreen. Only for this I used a lot of custom code and implemented a lot myself, which Marlin doesn't offer.

If you want to use a 12864 display with a rotary encoder, I suggest that you build Marlin 2.0.9.x directly from the Marlin sources.

You are welcome to take over the configuration and settings from me for your specific printer :)

But "Knutwurst" + A different display than the touch screen ... I think that's a waste of time because you have to rewrite a lot.

Best, Olli

mrpilipo commented 2 years ago

Understandable, switched back to the stock display for now, will spend some time working on prints not the printer XD

github-actions[bot] commented 2 years ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.