Hi y'all,
my skill with the electronic and Firmware is so bad, so I would like just a little help.
In my office, I have found a MKS Gen L V1.0 motherboard (not a SGen !), and one MKS TFT28 V4.0.
I try to build a printer with these stuff.
I have download Marlin 2.0.9.2, which makes running my printer with a Ramps 1.4 (without trouble)
To use the new stuff, I have re-work the firmware like this in configuration.h :
142 #define MOTHERBOARD BOARD_MKS_GEN_L
with this new motherboard, no trouble during the "build stage" under VScode + PlateformIO
2715 #define TFT_GENERIC
2722 #define TFT_INTERFACE_SPI
2725 #define TFT_RES_320x240
2742 #define TFT_COLOR_UI
you can find below the trouble message after a "build stage"
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: [
docs.platformio.org]
PLATFORM: Atmel AVR (3.4.0) > Arduino Mega or Mega 2560 ATmega2560 (Mega 2560)
HARDWARE: ATMEGA2560 16MHz, 8KB RAM, 248KB Flash
DEBUG: Current (avr-stub) On-board (avr-stub, simavr)
PACKAGES:
- framework-arduino-avr 5.1.0
- toolchain-atmelavr 1.70300.191015 (7.3.0)
Converting Marlin.ino
LDF: Library Dependency Finder -> [
bit.ly]
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 5 compatible libraries
Scanning dependencies...
Dependency Graph
|-- 1.0
|-- 1.0
|-- 2.0
|-- 1.0
Building in release mode
Compiling .pio\build\mega2560\src\src\HAL\AVR\HAL.cpp.o
Compiling .pio\build\mega2560\src\src\HAL\AVR\HAL_SPI.cpp.o
Compiling .pio\build\mega2560\src\src\HAL\AVR\MarlinSerial.cpp.o
Compiling .pio\build\mega2560\src\src\HAL\AVR\Servo.cpp.o
In file included from Marlin\src\HAL\AVR\../../inc/MarlinConfigPre.h:52:0,
from Marlin\src\HAL\AVR\../../inc/MarlinConfig.h:28,
from Marlin\src\HAL\AVR\HAL.cpp:24:
Marlin\src\HAL\AVR\../../inc/../HAL/AVR/inc/Conditionals_LCD.h:25:4: error: #error "Sorry! TFT displays are not available for HAL/AVR."
#error "Sorry! TFT displays are not available for HAL/AVR."
^~~~~
In file included from Marlin\src\HAL\AVR\../../inc/MarlinConfigPre.h:52:0,
from Marlin\src\HAL\AVR\../../inc/MarlinConfig.h:28,
from Marlin\src\HAL\AVR\HAL_SPI.cpp:34:
Marlin\src\HAL\AVR\../../inc/../HAL/AVR/inc/Conditionals_LCD.h:25:4: error: #error "Sorry! TFT displays are not available for HAL/AVR."
#error "Sorry! TFT displays are not available for HAL/AVR."
^~~~~
In file included from Marlin\src\HAL\AVR\../../inc/MarlinConfigPre.h:52:0,
from Marlin\src\HAL\AVR\../../inc/MarlinConfig.h:28,
from Marlin\src\HAL\AVR\MarlinSerial.cpp:39:
Marlin\src\HAL\AVR\../../inc/../HAL/AVR/inc/Conditionals_LCD.h:25:4: error: #error "Sorry! TFT displays are not available for HAL/AVR."
#error "Sorry! TFT displays are not available for HAL/AVR."
^~~~~
In file included from Marlin\src\HAL\AVR\../../inc/MarlinConfigPre.h:52:0,
from Marlin\src\HAL\AVR\../../inc/MarlinConfig.h:28,
from Marlin\src\HAL\AVR\Servo.cpp:55:
Marlin\src\HAL\AVR\../../inc/../HAL/AVR/inc/Conditionals_LCD.h:25:4: error: #error "Sorry! TFT displays are not available for HAL/AVR."
#error "Sorry! TFT displays are not available for HAL/AVR."
^~~~~
*** [.pio\build\mega2560\src\src\HAL\AVR\HAL.cpp.o] Error 1
*** [.pio\build\mega2560\src\src\HAL\AVR\HAL_SPI.cpp.o] Error 1
*** [.pio\build\mega2560\src\src\HAL\AVR\Servo.cpp.o] Error 1
*** [.pio\build\mega2560\src\src\HAL\AVR\MarlinSerial.cpp.o] Error 1
============================================ [FAILED] Took 15.26 seconds ============================================
Environment Status Duration
------------- -------- ------------
mega2560 FAILED 00:00:15.255
======================================= 1 failed, 0 succeeded in 00:00:15.255 =======================================
Several attempts brought me to this result.
Would you know how to tell me to remedy this problem ?
thank you
(sorry for my bad english
)