[SOLVED] Reset ESP32 TFT

salomon
Messages : 28
Enregistré le : 21 août 2020 16:53

[SOLVED] Reset ESP32 TFT

Message par salomon »

good morning everyone,
I am testing my cnc a little at a time but I am encountering some problems that I cannot solve.
a first problem concerns the fact that the settings are not always stored in eeprom. I often have to connect UGS and import the file saved on the PC to be saved on the card ....

second problem:
sometimes at Power-On the TFT module tries to switch on but resets immediately, then switches on and off again and continues like this. to solve I have to do a few times Power-Off and Power-On.

The same problem often (not always) occurs when I try to connect with UGS. The TFT resets.

Could anyone please give me some suggestions?
Thanks in advance

Salomon
mathiu
Messages : 9
Enregistré le : 25 août 2019 13:52

Re: Reset ESP32 TFT

Message par mathiu »

Did you find any solution to your problem? I have the same with the tft that restarts
Avatar du membre
HTheatre
Messages : 4321
Enregistré le : 31 mars 2019 08:21
Localisation : Rivesaltes

Re: Reset ESP32 TFT

Message par HTheatre »

Hi mathiu,
mathiu a écrit : 02 déc. 2021 00:51 Did you find any solution to your problem? I have the same with the tft that restarts
Did you recently updated the firmware of the TFT (for example, from the version without icons to the version with icons)?
In this case, did you completely erase the ESP-32 prior to flash it? It's an imperative step in case of flashing the ESP-32 again, because the ESP-32 stores data in its local flash memory.

See ya,
mathiu
Messages : 9
Enregistré le : 25 août 2019 13:52

Re: Reset ESP32 TFT

Message par mathiu »

HTheatre a écrit : 02 déc. 2021 08:08 Hi mathiu,
mathiu a écrit : 02 déc. 2021 00:51 Did you find any solution to your problem? I have the same with the tft that restarts
Did you recently updated the firmware of the TFT (for example, from the version without icons to the version with icons)?
In this case, did you completely erase the ESP-32 prior to flash it? It's an imperative step in case of flashing the ESP-32 again, because the ESP-32 stores data in its local flash memory.

See ya,
greetings sir, you are right, i have recently updated the firmware of the TFT, but i didn't completely erase the ESP-32 to flash it, im searching right now on how to erase it and flash again to see if that will fix the problem. Really appreciate your help, thanks!
Avatar du membre
HTheatre
Messages : 4321
Enregistré le : 31 mars 2019 08:21
Localisation : Rivesaltes

Re: Reset ESP32 TFT

Message par HTheatre »

Re mathiu,
mathiu a écrit : 02 déc. 2021 10:23 [...] im searching right now on how to erase it and flash again to see if that will fix the problem. [...]
Here is the procedure:

1 - Download "Flash Dowload Tool" at ESPRESSIF's website here
2 - Install it, but do not run it yet
3 - Take off the ESP-32 from the Grbl board adapter and plug it to your PC with a microUSB to USB-A data transfert cable
4 - Indentify the COM port number where the ESP-32 is plugged in the Windows device manager
5 - Run "Flash Dowload Tool"
6 - Select "ESP32" and "Developer mode"
7 - At the bottom of the window which opens, choose the COM port number (you previously identified)
8 - Check 115200 is selected for the baud rate
9 - Do not modify any other parameter
10 - Press ERASE button and wait until you read "Finish" (in green), at the bottom of the window
11 - Close "Flash Dowload Tool"
12 - Unplug and replug your ESP-32 from the PC (BE CAREFUL IT IS A REALLY IMPORTANT STEP)
13 - Open ARDUINO IDE, check the right Grbl boards version (1 in your case, it seems) is selected in config.h at line 41 (I believe 1 is the default value) :
40 // select the version of the TFT board being used ; it can be 1 or 2 (1 uses 4 pins header to connect to GRbl; 2 use RJ45 connector)
41 #define TFT_CARD_VERSION 1

modify all the other parameters you need/want (colors, wifi mode and parameters, etc.) and flash the ESP-32 as you already previously done.

See ya,
mathiu
Messages : 9
Enregistré le : 25 août 2019 13:52

Re: Reset ESP32 TFT

Message par mathiu »

HTheatre a écrit : 02 déc. 2021 11:00 Re mathiu,
mathiu a écrit : 02 déc. 2021 10:23 [...] im searching right now on how to erase it and flash again to see if that will fix the problem. [...]
Here is the procedure:

1 - Download "Flash Dowload Tool" at ESPRESSIF's website here
2 - Install it, but do not run it yet
3 - Take off the ESP-32 from the Grbl board adapter and plug it to your PC with a microUSB to USB-A data transfert cable
4 - Indentify the COM port number where the ESP-32 is plugged in the Windows device manager
5 - Run "Flash Dowload Tool"
6 - Select "ESP32" and "Developer mode"
7 - At the bottom of the window which opens, choose the COM port number (you previously identified)
8 - Check 115200 is selected for the baud rate
9 - Do not modify any other parameter
10 - Press ERASE button and wait until you read "Finish" (in green), at the bottom of the window
11 - Close "Flash Dowload Tool"
12 - Unplug and replug your ESP-32 from the PC (BE CAREFUL IT IS A REALLY IMPORTANT STEP)
13 - Open ARDUINO IDE, check the right Grbl boards version (1 in your case, it seems) is selected in config.h at line 41 (I believe 1 is the default value) :
40 // select the version of the TFT board being used ; it can be 1 or 2 (1 uses 4 pins header to connect to GRbl; 2 use RJ45 connector)
41 #define TFT_CARD_VERSION 1

modify all the other parameters you need/want (colors, wifi mode and parameters, etc.) and flash the ESP-32 as you already previously done.

See ya,
I followed the steps but no luck for me, the only change i did was in flash download tool SPI SPEED from 40 MHz to 80 MHz, first i tried with 40 MHz but waiting several minutes without completing the erase, at 80 MHz the erase was completed. then unplug and plug the ESP32 like you said, checked the TFT version and flash the ESP32. It continues to restart the TFT after some seconds. I will check again all the cables. Thanks for your help.
Avatar du membre
HTheatre
Messages : 4321
Enregistré le : 31 mars 2019 08:21
Localisation : Rivesaltes

Re: Reset ESP32 TFT

Message par HTheatre »

mathiu a écrit : 02 déc. 2021 11:42 [...] It (the ESP-32] continues to restart the TFT after some seconds. I will check again all the cables.
Can you please post a photography and the reference of your ESP-32 model?

See ya,
mathiu
Messages : 9
Enregistré le : 25 août 2019 13:52

Re: Reset ESP32 TFT

Message par mathiu »

HTheatre a écrit : 02 déc. 2021 13:55
mathiu a écrit : 02 déc. 2021 11:42 [...] It (the ESP-32] continues to restart the TFT after some seconds. I will check again all the cables.
Can you please post a photography and the reference of your ESP-32 model?

See ya,
So i replaced the cables that connect esp32 tx, rx, gnd, 5v with shorter cables and that fixed the problem with the tft thanks mate! i can move all axis by TFT buuuuuuuut nunchuck is not working :lol:
mathiu
Messages : 9
Enregistré le : 25 août 2019 13:52

Re: Reset ESP32 TFT

Message par mathiu »

Also on tft with red letters says "GRBL connection : wires (serial) " that's normal right? I have connected to wifi
Avatar du membre
HTheatre
Messages : 4321
Enregistré le : 31 mars 2019 08:21
Localisation : Rivesaltes

Re: Reset ESP32 TFT

Message par HTheatre »

mathiu a écrit : 02 déc. 2021 15:08 Also on tft with red letters says "GRBL connection : wires (serial) " that's normal right? I have connected to wifi
For the link between the 2 boards, I HIGHLY recommend you to make exactly the same link as shown in the assembly manual.
The "GRBL connection : wires (serial)" message en red is absolutely normal. Do not ask me why mstrens decided to put this message in red when he developped the TFT firmware, I don't know.
"GRBL connection : wires (serial)" means the to boards are communicating by wire. The only thing you connected to wifi is the ESP-32 of the TFT touch srceen. The STM-32 has no wifi module. If you activate Telnet, the icon that looks like the one of a wifi signal, this icon will past from red to green. In fact, this icon has been just had to indicate to the maker that Telnet is activated.

See ya,
Répondre