Welcome! Log In Create A New Profile

Advanced

MKS Gen L V1.0 + TFT28 + Marlin 2.0.9.2

Posted by Derf70 
MKS Gen L V1.0 + TFT28 + Marlin 2.0.9.2
December 01, 2021 09:32AM
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 thumbs up
(sorry for my bad english confused smiley)
Re: MKS Gen L V1.0 + TFT28 + Marlin 2.0.9.2
December 01, 2021 09:54AM
the MKS TFT28 V4.0 is not a marlin controlled tft

do not enable any of these
2715 #define TFT_GENERIC
2722 #define TFT_INTERFACE_SPI
2725 #define TFT_RES_320x240
2742 #define TFT_COLOR_UI

The is actually a controller in its own right and as such you send and receive gcode from it.

In Marlin it is just a serial port, so enable serial port, the port you connected the tft to.

This is connected to AUX-1 this is serial port 0, ie you cant have usb plugged in at the same time

Edited 5 time(s). Last edit at 12/01/2021 10:14AM by Dust.
Sorry, only registered users may post in this forum.

Click here to login