Aller au contenu

Messages recommandés

Posté(e) (modifié)

bonjour

je viens d installer une carte MKS tinybee avec écran tactile 2.4pouces 

l'écran s'allume je peux naviguer dans les différents menu mais l'imprimante ne réagie pas 

ci-joint les fichiers config et le message d'erreur quand je décommente la ligne  2649

#define MKS_ROBIN_TFT24
                 from Marlin/src/HAL/ESP32/../../inc/MarlinConfig.h:28,
                 from Marlin/src/HAL/ESP32/HAL.cpp:24:
Marlin/src/HAL/ESP32/../../inc/../HAL/ESP32/inc/Conditionals_LCD.h:25:4: error: #error "Sorry! TFT displays are not available for HAL/ESP32."
   #error "Sorry! TFT displays are not available for HAL/ESP32."
    ^
In file included from Marlin/src/HAL/ESP32/../../inc/MarlinConfigPre.h:52:0,
                 from Marlin/src/HAL/ESP32/../../inc/MarlinConfig.h:28,
                 from Marlin/src/HAL/ESP32/HAL_SPI.cpp:25:
Marlin/src/HAL/ESP32/../../inc/../HAL/ESP32/inc/Conditionals_LCD.h:25:4: error: #error "Sorry! TFT displays are not available for HAL/ESP32."
   #error "Sorry! TFT displays are not available for HAL/ESP32."
    ^
In file included from Marlin/src/HAL/ESP32/../../inc/MarlinConfigPre.h:52:0,
                 from Marlin/src/HAL/ESP32/../../inc/MarlinConfig.h:28,
                 from Marlin/src/HAL/ESP32/Servo.cpp:24:
Marlin/src/HAL/ESP32/../../inc/../HAL/ESP32/inc/Conditionals_LCD.h:25:4: error: #error "Sorry! TFT displays are not available for HAL/ESP32."
   #error "Sorry! TFT displays are not available for HAL/ESP32."
    ^
In file included from Marlin/src/HAL/ESP32/../../core/../inc/MarlinConfigPre.h:37:0,
                 from Marlin/src/HAL/ESP32/../../core/serial_base.h:24,
                 from Marlin/src/HAL/ESP32/../../core/serial_hook.h:24,
                 from Marlin/src/HAL/ESP32/FlushableHardwareSerial.h:27,
                 from Marlin/src/HAL/ESP32/FlushableHardwareSerial.cpp:25:
Marlin/src/HAL/ESP32/../../core/../inc/../core/macros.h:64:0: warning: "FORCE_INLINE" redefined
 #define  FORCE_INLINE  __attribute__((always_inline)) inline
 ^
In file included from Marlin/src/HAL/ESP32/FlushableHardwareSerial.h:26:0,
                 from Marlin/src/HAL/ESP32/FlushableHardwareSerial.cpp:25:
Marlin/src/HAL/ESP32/../shared/Marduino.h:86:0: note: this is the location of the previous definition
   #define FORCE_INLINE inline __attribute__((always_inline))
 ^
In file included from Marlin/src/HAL/ESP32/../../core/../inc/MarlinConfigPre.h:52:0,
                 from Marlin/src/HAL/ESP32/../../core/serial_base.h:24,
                 from Marlin/src/HAL/ESP32/../../core/serial_hook.h:24,
                 from Marlin/src/HAL/ESP32/FlushableHardwareSerial.h:27,
                 from Marlin/src/HAL/ESP32/FlushableHardwareSerial.cpp:25:
Marlin/src/HAL/ESP32/../../core/../inc/../HAL/ESP32/inc/Conditionals_LCD.h:25:4: error: #error "Sorry! TFT displays are not available for HAL/ESP32."
   #error "Sorry! TFT displays are not available for HAL/ESP32."
    ^
cc1plus.exe: warning: unrecognized command line option '-Wno-register'
*** [.pio\build\mks_tinybee\src\src\HAL\ESP32\FlushableHardwareSerial.cpp.o] Error 1
In file included from Marlin/src/HAL/ESP32/../../inc/MarlinConfig.h:49:0,
                 from Marlin/src/HAL/ESP32/HAL.cpp:24:
Marlin/src/HAL/ESP32/../../inc/SanityCheck.h:2725:6: error: #error "TFT_COLOR_UI, TFT_CLASSIC_UI, TFT_LVGL_UI is required for your TFT. Please enable one."
     #error "TFT_COLOR_UI, TFT_CLASSIC_UI, TFT_LVGL_UI is required for your TFT. Please enable one."
      ^
In file included from Marlin/src/HAL/ESP32/../../inc/MarlinConfig.h:49:0,
                 from Marlin/src/HAL/ESP32/Servo.cpp:24:
Marlin/src/HAL/ESP32/../../inc/SanityCheck.h:2725:6: error: #error "TFT_COLOR_UI, TFT_CLASSIC_UI, TFT_LVGL_UI is required for your TFT. Please enable one."
     #error "TFT_COLOR_UI, TFT_CLASSIC_UI, TFT_LVGL_UI is required for your TFT. Please enable one."
      ^
In file included from Marlin/src/HAL/ESP32/../../inc/MarlinConfig.h:49:0,
                 from Marlin/src/HAL/ESP32/HAL_SPI.cpp:25:
Marlin/src/HAL/ESP32/../../inc/SanityCheck.h:2725:6: error: #error "TFT_COLOR_UI, TFT_CLASSIC_UI, TFT_LVGL_UI is required for your TFT. Please enable one."
     #error "TFT_COLOR_UI, TFT_CLASSIC_UI, TFT_LVGL_UI is required for your TFT. Please enable one."
      ^
cc1plus.exe: warning: unrecognized command line option '-Wno-register'
*** [.pio\build\mks_tinybee\src\src\HAL\ESP32\HAL.cpp.o] Error 1
cc1plus.exe: warning: unrecognized command line option '-Wno-register'
*** [.pio\build\mks_tinybee\src\src\HAL\ESP32\Servo.cpp.o] Error 1
cc1plus.exe: warning: unrecognized command line option '-Wno-register'
*** [.pio\build\mks_tinybee\src\src\HAL\ESP32\HAL_SPI.cpp.o] Error 1
========================================================================================= [FAILED] Took 15.70 seconds =========================================================================================

Environment    Status    Duration
-------------  --------  ------------
mks_tinybee    FAILED    00:00:15.697
==================================================================================== 1 failed, 0 succeeded in 00:00:15.697 ==================================================================================== 

 

Configuration.h Configuration_adv.h

Modifié (le) par prusa3di3
Posté(e) (modifié)

Salut,

J'essaierais plutôt cette configuration

// #define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER

au lieu du #define MKS_ROBIN_TFT24 qui ne correspond pas à ton écran

Modifié (le) par pommeverte
  • +1 1
Posté(e) (modifié)

ca compile sans erreur mais aucune réaction de l'imprimante 

pourtant quand je tape sur google MKS tft24 je tombe bien sur mon écran?

téléchargement.jpg

#--------------------------------------------------------------------
#########  Printer type setting  ##################################

#mainboard firmware setting(marlin:1; repetier:2; smoothie:3)
>cfg_firmware_type:1

#machine setting (Normal:1; Delta:2)
>cfg_machine_type:1

#baud rate (9600:1; 57600:2; 115200:3; 250000:4)
>cfg_baud_rate:3

#multi-language(enable:1, disable:0)
>cfg_multiple_language:0

#languages setting(simplified (simplified Chinese:1; traditional Chinese:2; English:3; Russian:4; Spanish:5;French:6;Italian:7).
#This configuration is valid when "cfg_multiple_language" is disabled.
>cfg_language_type:3

#extruder number(one:1; dual:2)
>cfg_sprayer_counter:1

#enable heated bed(yes:1; no: 0)
>cfg_custom_bed_flag:1

#the max target temp of extruder and heated bed
>cfg_max_sprayer_temperature:270
>cfg_max_hotbed_temperature:150

#pause position (-1 is invalid; Z-axis is relative position)
>cfg_XPOS:-1
>cfg_YPOS:-1
>cfg_ZADD:5

#-----------------------------------------------------------------------
#########  Advanced Function Option  ##################################

#enable UPS?(yes:1; no:0)
>cfg_have_ups_device:0

#enable power detecting module(2:mks ups;1:mks 220det;0:mks pwc)
>cfg_insert_det_module:0

#enable auto off after print finish function (no:0; Yes:1)
>cfg_print_finish_close_Machine:0

#set PB0 signal when use it for sencond nozzle (high level:1; low level:0)
>cfg_PB0_trigger_Level:0

#set PB1 signal (high level:1; low level:0)
>cfg_PB1_trigger_Level:0

#set error range of Z-axis on breakpoints recovery 
>cfg_breakpoint_z_error:0.2

#---------------------------------------------------------------------------

#########  Filament Change Function  ##############################

#the speed to extrude filament(mm/min)
>cfg_filament_load_speed:1200
#the lenght to extrude filament (mm)
>cfg_filament_load_length:200

#the speed to retract filament(mm/min)
>cfg_filament_unload_speed:1200
#the lenght to retract filament(mm)
>cfg_filament_unload_length:200

#It is the minimum temperature for filament change.
It will auto heat up if the current temp doesn't reach the target.
>cfg_filament_load_limit_temperature:200

#The length of Load filament before unloader filament. 
>cfg_unload_retract_length:2

#The speed of load filament  before unloader filament.
>cfg_unload_retract_speed:1200

#---------------------------------------------------------------------------

############  Leveling Function  ########################################

#leveling mode(manual:0; auto:1; conceal leveling button:2)
>cfg_leveling_mode:0

#the command of auto leveling (G29 is available for Marlin.While G32 is for  Repetier and Smoothieware)
>cfg_auto_leveling_cmd:G28;G29;

#the point number of manual leveling:(3,4,5 point available)
>cfg_point_number:4

#the coordinates of 5 point on manual leveling
>cfg_point1:50,50
>cfg_point2:180,50
>cfg_point3:180,180
>cfg_point4:50,180
>cfg_point5:150,150

#the travel speed of leveling(mm/min)
>cfg_leveling_z_speed:1500
>cfg_leveling_xy_speed:3000

#---------------------------------------------------------------------------
 
#############  WIFI Function  ##########################################

#wifi model(MKS WIFI TFT:0;  MKS HLK-WIFI:1)
>cfg_wifi_type:0

#wifi mode(0:sta;1:ap)
>cfg_wifi_mode:0

#wifi name and password
>cfg_wifi_ap_name:MKS_wifi
>cfg_wifi_key_code:makerbase

#0:disable cloud service 1:enable cloud service
>cfg_cloud_enable:1
#cloud service adress
>cfg_wifi_cloud_host:www.baizhongyun.cn
#cloud service port
>cfg_cloud_port:10086

#Dynamic access IP
>cfg_ip_dhcp_flag:1

#IP/mask/gateway
>cfg_ip_address:192.168.3.100
>cfg_ip_mask:255.255.255.0
>cfg_ip_gate:192.168.3.1

#--------------------------------------------------------------------------------

############## Function Customization #######################################

#user-defined function1 and 2.(display this button .  disable: 0; enable: 1)
>cfg_function_btn1_display:1


#command of user-defined function
>function_btn1_cmd:M84;


#set number of  "More" button 
>moreitem_pic_cnt:0

#edit command for 1~7 "More" button,each command must be separated by semicolon ";"
>moreitem_button1_cmd:G28 X0;

>moreitem_button2_cmd:G28 X0;

>moreitem_button3_cmd:G28 Y0;

>moreitem_button4_cmd:G28 Y0;

>moreitem_button5_cmd:G28 Z0;

>moreitem_button6_cmd:G28 Z0;

>moreitem_button7_cmd:G28;

#how many "More" button display on screen interface
>morefunc_cnt:0

#command setting on button1~5
>morefunc1_cmd:G28;
>morefunc2_cmd:G28;
>morefunc3_cmd:G28;
>morefunc4_cmd:G28;
>morefunc5_cmd:G28;

#---------------------------------------------------------------------------------
##### Display Customization(button and logo customized see User's Manual) #######

#the color of screen background
>cfg_background_color:0x000000

#the color of title text
>cfg_title_color:0xFFFFFF

#the color of temperature,fan,(etc) background
>cfg_state_background_color:0x000000

#the color of temprature,fan,(etc) text
>cfg_state_text_color:0xFFFFFF

#the color of file button
>cfg_filename_background_color:0x000000

#the color of file text
>cfg_filename_color:0xFFFFFF

#the color of background in printing 
>cfg_printingstat_word_background_color:0x000000

#the color of text in printing status
>cfg_printingstat_word_color:0xFFFFFF

#3D effects setting (disable: 0; enable: 1)
>cfg_BUTTON_3D_effects:0

#The screen is flipped 180°(0: no flip, 0xEE: flip)
>cfg_OVERTURN_180:0

#shield the function of detection power (0:no shield ,1:shield)
>cfg_disable_PWR_det:0

#shield the function of detection filament (0:no shield ,1:shield)
>cfg_disable_MT_det:0

#Whether to support the function of dual extruder single nozzle.(0: disable, 1: enable)
#the extruder number need set to dual.
>cfg_single_nozzle:0

#For the M110 command plus check, the version of Marlin 1.0.2 and below is set to 1, and the other versions are set to 0.
>cfg_M110_add_checkSum:1

#Enable function of display error message. (no:0; Yes:1)
>cfg_display_eeror_message:0

#Enable function of babastep. (no:0; Yes:1)
>cfg_babystep_btn_display:1

#-----------------------------------------------------------------------

 

Modifié (le) par prusa3di3
Posté(e)

Salut,

Si tu as branché ton écran sur le port J3, alors la communication se fait sur l'USART2:

Citation

connexionTFT24.jpg.f153345a20b046c8cbe05d6897e8ad8d.jpg

Je tenterais donc cette modif dans le fichier configuration.h:

#define SERIAL_PORT_2 2

PS: il est préférable d'intégrer le contenu d'un fichier texte ou le résultat d'une compilation dans une citation (icône guillemet) pour que ton message soit moins volumineux

Posté(e)

Est-ce que tu as essayé de changer la valeur de SERIAL_PORT_2 ? parce que dans ton fichier, tu as -1 et non 2...

A tout hasard, tu peux essayer l'inverse:

#define SERIAL_PORT 2
#define SERIAL_PORT_2 0

Posté(e)

La réponse est donnée dans ce message reddit:

Citation

The good news is web and display can work together. I succeeded to make the ESP3D webUI working alongside a MKS TFT24 display in a TinyBee control board.
The trick is to configure the SERIAL_PORT_3 section in the configuration.h file to link to USART2 of the TinyBee, which is connected to the TFT.
Then, the serial ports scheme become:

  • SERIAL_PORT -> Serial2Socket (WiFi)
  • SERIAL_PORT_2 -> USBSERIAL (cable)
  • SERIAL_PORT_3 -> USART2 (connected to the TFT)

The changes in the main configuration files:

Configuration.h:

...
#define SERIAL_PORT  0
...
#define SERIAL_PORT_2  -1
#define BAUDRATE_2 115200  //maybe higher baudrates work
...
#define SERIAL_PORT_3  2
#define BAUDRATE_3 115200  //I configured the TFT to 115200 bps
 

configuration_adv:

#define ESP3D_WIFISUPPORT  // uncomment this line
 

But some modifications must be done in the HAL files in order to enable this feature:

src\HAL\ESP32\HAL.h:
(include these lines somewhere around line 63, before "#define CRITICAL_SECTION_START()...")

typedef ForwardSerial1Class< decltype(Serial2) > DefaultSerial3;
extern DefaultSerial3 MSerial2;
#define MYSERIAL3 MSerial2
 
 

src\HAL\ESP32\HAL.cpp:
(include these lines somewhere around line 51, before section "// Externs")

#if USING_HW_SERIAL2
  DefaultSerial3 MSerial2(false, Serial2);
#endif
 

But care! It is important to note the ESP3D WebUI and the TFT compete to send GCODE commands to Marlin. Then, it is easy to mess up things trying to use both together.

With such configuration, I can control the printer both with the Web interface and the TFT panel (move X, Y, Z axes, toggle fan on/off, select temperatures for nozzle and for heated bed and so on). I was also able to print with the Gcode file stored in the TFT SD card or by sending the file from the Web interface to the microSD connected to TinyBee. It is possible to send some commands from one interface while a print job is running from the other interface, but It happened to me to lock the web interface once due to any competing gcode command.

Marlin 2.1.1.1
ESP3D 2.1.1 Web interface
MKS TinyBee Control board
MKS TFT24 Display connected to ESP32 USART2

Créer un compte ou se connecter pour commenter

Vous devez être membre afin de pouvoir déposer un commentaire

Créer un compte

Créez un compte sur notre communauté. C’est facile !

Créer un nouveau compte

Se connecter

Vous avez déjà un compte ? Connectez-vous ici.

Connectez-vous maintenant
  • Sur cette page :   0 membre est en ligne

    • Aucun utilisateur enregistré regarde cette page.
  • YouTube / Les Imprimantes 3D .fr

×
×
  • Créer...