I can't program ESP32 sw:"ESPEasy_mega_20240229_ESP32_binaries"

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
max100
Normal user
Posts: 21
Joined: 08 Feb 2024, 23:29

I can't program ESP32 sw:"ESPEasy_mega_20240229_ESP32_binaries"

#1 Post by max100 » 21 Mar 2024, 21:41

Good day,
the mentioned site for online uploading doesn't work "https://td-er.nl/ESPEasy/", the only thing I managed to upload to esp32 via online www is tasmota.
I couldn't upload Sw Tasmota offline with any program!

According to which should I choose which of these:
ESPEasy_mega_20240229_ESP32c2_binaries.zip
ESPEasy_mega_20240229_ESP32c3_binaries.zip
ESPEasy_mega_20240229_ESP32c6_binaries.zip
ESPEasy_mega_20240229_ESP32s2_binaries.zip
ESPEasy_mega_20240229_ESP32s3_binaries.zip
ESPEasy_mega_20240229_ESP32solo1_binaries.zip
ESPEasy_mega_20240229_ESP32_binaries.zip
_ files should I select?

Thank you very much

TD-er
Core team member
Posts: 8756
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: I can't program ESP32 sw:"ESPEasy_mega_20240229_ESP32_binaries"

#2 Post by TD-er » 21 Mar 2024, 21:53

Which board do you have?
Not all build sets on my web flasher have binaries for each ESP32 platform.
The web flasher will detect which ESP32 is present and select the correct bin file accordingly.

In the pull-down selector there is a list in [] to indicate which ESP types have a build for that selection.

For example the "Normal 4M LittleFS [ESP32,ESP32-S2/C2/C3/C6]" does have binaries for (nearly) each supported ESP32-chip. (only ESP32-S3 is missing in that list)
See: https://td-er.nl/ESPEasy/latest/

max100
Normal user
Posts: 21
Joined: 08 Feb 2024, 23:29

Re: I can't program ESP32 sw:"ESPEasy_mega_20240229_ESP32_binaries"

#3 Post by max100 » 21 Mar 2024, 22:18

Unfortunately, I can't get to the mentioned www page...
Attachments
error.png
error.png (26.2 KiB) Viewed 1308 times
1711055472148.jpg
1711055472148.jpg (4.06 MiB) Viewed 1308 times
1711055472159.jpg
1711055472159.jpg (1.98 MiB) Viewed 1308 times
1711055472153.jpg
1711055472153.jpg (4.53 MiB) Viewed 1308 times

TD-er
Core team member
Posts: 8756
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: I can't program ESP32 sw:"ESPEasy_mega_20240229_ESP32_binaries"

#4 Post by TD-er » 21 Mar 2024, 22:23

Ah can you send me your public IP-address via a direct message?
Seems like you're in my very extensive IP-block. (I get a lot of hack attempts to my server)

TD-er
Core team member
Posts: 8756
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: I can't program ESP32 sw:"ESPEasy_mega_20240229_ESP32_binaries"

#5 Post by TD-er » 21 Mar 2024, 22:30

I removed your IP range from the block list

max100
Normal user
Posts: 21
Joined: 08 Feb 2024, 23:29

Re: I can't program ESP32 sw:"ESPEasy_mega_20240229_ESP32_binaries"

#6 Post by max100 » 21 Mar 2024, 23:06

Thanks, I'm going to test it :roll:

max100
Normal user
Posts: 21
Joined: 08 Feb 2024, 23:29

Re: I can't program ESP32 sw:"ESPEasy_mega_20240229_ESP32_binaries"

#7 Post by max100 » 21 Mar 2024, 23:28

I had to connect GPIO0 to GND, otherwise I didn't want to connect to the programmer, the software was uploaded and a message appeared saying that it was OK.
Unfortunately, I don't see any new network in the WiFi manager!
It's like it won't run on the ESP32 AP function. :(

TD-er
Core team member
Posts: 8756
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: I can't program ESP32 sw:"ESPEasy_mega_20240229_ESP32_binaries"

#8 Post by TD-er » 21 Mar 2024, 23:30

If you had to connect GPIO-0 to GND, you must make sure to remove it after flashing and then power cycling the board.
It is probably still in flash mode as that's what you force with pulling GPIO-0 to GND.

max100
Normal user
Posts: 21
Joined: 08 Feb 2024, 23:29

Re: I can't program ESP32 sw:"ESPEasy_mega_20240229_ESP32_binaries"

#9 Post by max100 » 22 Mar 2024, 09:26

Hello,
after "uploading" the software, I canceled the connection between GND and GPO0.
Attachments
RS232_01.png
RS232_01.png (27.53 KiB) Viewed 1262 times

max100
Normal user
Posts: 21
Joined: 08 Feb 2024, 23:29

Re: I can't program ESP32 sw:"ESPEasy_mega_20240229_ESP32_binaries"

#10 Post by max100 » 22 Mar 2024, 09:32

This is the rs232 dump after disconnecting GND and GPIO0.

I don't understand why I can't upload "ESPmega", when I use the online programmer, it uploads both TASMOTU and ESPhome (https://web.esphome.io/)....


:x :x :x

max100
Normal user
Posts: 21
Joined: 08 Feb 2024, 23:29

Re: I can't program ESP32 sw:"ESPEasy_mega_20240229_ESP32_binaries"

#11 Post by max100 » 22 Mar 2024, 09:50

This is the dump from the ESP32 after pressing the EN button.


Serial port COM6 opened
ets Jun 8 2016 00:22:57

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:184
load:0x40078000,len:13228
ho 0 tail 12 room 4
load:0x40080400,len:4
load:0x40080404,len:2924
entry 0x40080570
ŞU00.169 : (288436) Info :

INIT : Booting version: ESP_Easy_mega_20240311_normal_ESP32_4M316k_LittleFS_ETH, (GitHub Actions) HEAD_d43e835 (ESP32 SDK 5.1.3.240229)
00.172 : (288292) Info : INIT : Free RAM:288292
00.173 : (288164) Info : INIT : Cold Boot - Restart Reason: CPU0: Vbat power on reset CPU1: for APP CPU, reset by PRO CPU
00.175 : (288052) Info : FS : Mounting...
00.209 : (286060) Info : FS : LittleFS mount successful, used 151552 bytes of 323584
00.272 : (285860) Info : CRC : Settings CRC...OK
00.300 : (285708) Info : ESPEasy console using ESPEasySerial
00.329 : (285592) Info : CRC : SecuritySettings CRC...OK
00.359 : (285544) Info : INIT : SPI not enabled
00.361 : (285384) Info : WiFi : Best AP candidate: #Hidden# 00:00:00:00:00:00 Ch:0 (0dBm)open
00.465 : (285400) Info : WIFI : Set WiFi to STA
00.648 : (249076) Info : WiFi : Start network scan all channels
03.249 : (248712) Info : WiFi : Scan finished, found: 3
03.253 : (248748) Info : WiFi : Start network scan all channels
05.853 : (248416) Info : WiFi : Scan finished, found: 3
05.855 : (248516) Info : WiFi : Best AP candidate: #Hidden# 00:00:00:00:00:00 Ch:0 (0dBm)open
05.858 : (248476) Info : Setup: Scan all channels
05.885 : (248412) Info : ESPEasy console using ESPEasySerial
05.887 : (248356) Info : INIT : Free RAM:248412
05.912 : (248292) Info : ESPEasy console using ESPEasySerial
05.914 : (248180) Info : INFO : Plugins: 48 ["Normal"] (ESP32 SDK 5.1.3.240229)
05.919 : (248116) Info : WiFi : Best AP candidate: #Hidden# 00:00:00:00:00:00 Ch:0 (0dBm)open
05.929 : (248248) Info : WIFI : Arduino wifi status: WL_DISCONNECTED 6 ESPeasy internal wifi status: DISCONNECTED
05.937 : (243660) Info : Webserver: start
07.283 : (243316) Info : WD : Uptime 0 ConnectFailures 0 FreeMem 243460 WiFiStatus: WL_DISCONNECTED 6 ESPeasy internal wifi status: DISCONNECTED
37.295 : (243172) Info : WD : Uptime 1 ConnectFailures 0 FreeMem 243316 WiFiStatus: WL_DISCONNECTED 6 ESPeasy internal wifi status: DISCONNECTED
00:01:07.293 : (243172) Info : WD : Uptime 1 ConnectFailures 0 FreeMem 243316 WiFiStatus: WL_DISCONNECTED 6 ESPeasy internal wifi status: DISCONNECTED
Serial port COM6 closed

User avatar
Ath
Normal user
Posts: 3521
Joined: 10 Jun 2018, 12:06
Location: NL

Re: I can't program ESP32 sw:"ESPEasy_mega_20240229_ESP32_binaries"

#12 Post by Ath » 22 Mar 2024, 11:02

You should be able to see the ESPEasy accesspoint from your phone, tablet or wifi-equiped computer, when scanning for networks. If not, you can send a few commands to the unit via the terminal program you used, above, these commands should be:

Code: Select all

wifissid,TheNameOfYourWifiAP
wifikey,TheSecretP@$$w0rdOfYourWifiAP
save
You can enter these 3 commands, 1 by 1, in one of the input fields, make sure Hex is un-checked, and click the Send button.
That will trigger a rescan of the Wifi APs, and try to connect to the AP you specified.

Once connected, the log will report the ip-address the unit received from your AP, and you can then access the ESPEasy web-UI from your webbrowser, using that (http) address.
/Ton (PayPal.me)

TD-er
Core team member
Posts: 8756
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: I can't program ESP32 sw:"ESPEasy_mega_20240229_ESP32_binaries"

#13 Post by TD-er » 22 Mar 2024, 12:19

It is strange however that ESPEasy doesn't start the AP.
Did you have other firmware installed on this exact node?

Did you check the checkbox to erase the board while flashing?
It looks like there might be some residual data left by the other firmware versions regarding WiFi credentials.

Anyway if you connect using some terminal software like you did to fetch the logs, and then enter the commands given by Ath, you should be fine.
N.B. you cannot correct typo's, so maybe best to copy/paste the lines (with your credentials) from notepad one line at a time and then press enter.

max100
Normal user
Posts: 21
Joined: 08 Feb 2024, 23:29

Re: I can't program ESP32 sw:"ESPEasy_mega_20240229_ESP32_binaries"

#14 Post by max100 » 22 Mar 2024, 13:22

Is it not possible to enter the network name and password via AT commands? ;)

TD-er
Core team member
Posts: 8756
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: I can't program ESP32 sw:"ESPEasy_mega_20240229_ESP32_binaries"

#15 Post by TD-er » 22 Mar 2024, 13:24

Nope, it is just the serial console of ESPEasy.

You can also open a console window via my web flasher tool if you don't have a proper terminal program on your PC.

max100
Normal user
Posts: 21
Joined: 08 Feb 2024, 23:29

Re: I can't program ESP32 sw:"ESPEasy_mega_20240229_ESP32_binaries"

#16 Post by max100 » 22 Mar 2024, 13:34

Which page do you mean?

max100
Normal user
Posts: 21
Joined: 08 Feb 2024, 23:29

Re: I can't program ESP32 sw:"ESPEasy_mega_20240229_ESP32_binaries"

#17 Post by max100 » 22 Mar 2024, 13:48

I tried uploading:
1. 20240311 Climate 4M [ESP8266,ESP32,ESP32-S2/S3/C3]
2. 20240311 Normal 4M LittleFS ETH [ESP32]

both have the same "KO" result!

Did LittleFS / SPIFFS split?

:geek:

User avatar
Ath
Normal user
Posts: 3521
Joined: 10 Jun 2018, 12:06
Location: NL

Re: I can't program ESP32 sw:"ESPEasy_mega_20240229_ESP32_binaries"

#18 Post by Ath » 22 Mar 2024, 14:29

Ah, I just downloaded that Hercules tool, but this silly tool doesn't send an enter after a command, and also doesn't seem to have an option to do that, so it's rather useless :o

As TD-er suggested, please use the web-flasher at https://td-er.nl/ESPEasy/latest from a Chrome or Edge browser (other browsers don't have the required serial-support built in).

There you can select the build you would want to install, but as you already have that arranged, it's not needed to re-flash, unless you would want to clear the device and re-flash. Different builds, using the same Flash layout (4M316k-SPIFFS) can be uploaded via the Web UI after downloading to your computer.
When switching flash layout (not much choice for 4MB ESP32s) or filesystem (LittleFS vs SPIFFS), reconfiguration is needed, except for the WiFi settings, they are stored after the unit has been successfully logged into a WiFi network, and been active for a couple of minutes (5 AFAIR).

After pressing the big blue button, it will ask to select and connect to a detected serial port, and when connected present a menu that includes the LOGS & CONSOLE option. Click that to connect to your ESP, and then enter the commands I listed above, of course replacing your access point name and password.
This console does offer full editing features of the command before pressing Enter to send the command. As usual, the password is case-sensitive.
/Ton (PayPal.me)

User avatar
uah007
Normal user
Posts: 15
Joined: 15 Oct 2022, 23:04
Location: Ukraine, Kyiv

Re: I can't program ESP32 sw:"ESPEasy_mega_20240229_ESP32_binaries"

#19 Post by uah007 » 22 Mar 2024, 14:37

When flashing for the first time, it is recommended to choose firmware that ends with factory.bin

User avatar
Ath
Normal user
Posts: 3521
Joined: 10 Jun 2018, 12:06
Location: NL

Re: I can't program ESP32 sw:"ESPEasy_mega_20240229_ESP32_binaries"

#20 Post by Ath » 22 Mar 2024, 14:51

uah007 wrote: 22 Mar 2024, 14:37 When flashing for the first time, it is recommended to choose firmware that ends with factory.bin
When using the Web flasher, that's automatic, and as he's showing the log of a running ESPEasy unit, that's a part of what succeeded already ;)
Connecting the unit to WiFi seems to be the hard part, but as it's already been running ESPHome and Tasmota, without a full wipe, that's one of the situations you may end up with.

It's easily fixable, instructions are available, above, I initially assumed that the shown terminal software was usable, but it isn't.
/Ton (PayPal.me)

User avatar
uah007
Normal user
Posts: 15
Joined: 15 Oct 2022, 23:04
Location: Ukraine, Kyiv

Re: I can't program ESP32 sw:"ESPEasy_mega_20240229_ESP32_binaries"

#21 Post by uah007 » 22 Mar 2024, 15:12

I’m ready to confirm that you must erase the chip before loading the firmware. I flashed about 200 pieces and there were cases when the chip did not communicate without erasing.

max100
Normal user
Posts: 21
Joined: 08 Feb 2024, 23:29

Re: I can't program ESP32 sw:"ESPEasy_mega_20240229_ESP32_binaries"

#22 Post by max100 » 22 Mar 2024, 18:45

My post how I program it is (good - bad): :?
1. On the disconnected ESP32 module, I connect GND and GPIO0
2. I will connect the PC - ESP32
3. I open the page "https://td-er.nl/ESPEasy/latest/" and select the file
for example "20240311 Normal 4M LittleFS ETH [ESP32]"
4. Press "CONNECT" and select the required USB converter -
RS232 and let me connect
5. A table pops up asking: - Install, - Logs, console .....
I click Install
6. Another table pops up asking about deleting Flash - click
7. Another table pops up asking about installing fw - Insall
8. First it will start deleting ESP32 content and after some time it will start
installation of new fw (% are increasing)
9. A table will pop up - installation complete
10. I press "Next" and the same table as in step 5 pops up.
11. ???

User avatar
Ath
Normal user
Posts: 3521
Joined: 10 Jun 2018, 12:06
Location: NL

Re: I can't program ESP32 sw:"ESPEasy_mega_20240229_ESP32_binaries"

#23 Post by Ath » 22 Mar 2024, 19:12

11. Disconnect GPIO from GND (you could have press and hold the boot button, and reset the device with the en button, after 5 seconds release the boot button...)
12. Remove power from the ESP32 and wait 30 seconds
13. Connect power to the ESP32
14. Wait for the ESPEasy access point to become available


If that doesn't work, all steps to fix the Wifi connection are already documented in previous messages, above this one ;)
/Ton (PayPal.me)

max100
Normal user
Posts: 21
Joined: 08 Feb 2024, 23:29

Re: I can't program ESP32 sw:"ESPEasy_mega_20240229_ESP32_binaries"

#24 Post by max100 » 22 Mar 2024, 20:30

How exactly is it with those buttons, when to hold and when to release?
The left button from USBmicro is "RESET",
right button from USBmicro is "BOOT".

Thank you

User avatar
Ath
Normal user
Posts: 3521
Joined: 10 Jun 2018, 12:06
Location: NL

Re: I can't program ESP32 sw:"ESPEasy_mega_20240229_ESP32_binaries"

#25 Post by Ath » 23 Mar 2024, 11:06

max100 wrote: 22 Mar 2024, 20:30 How exactly is it with those buttons, when to hold and when to release?
The left button from USBmicro is "RESET",
right button from USBmicro is "BOOT".
The "Boot" button will connect GPIO-0 to GND, and "Reset" (often labeled "EN", like in the images you shared, above...), well, that should be quite obvious, resets the unit.

To get the unit into flash mode, 90% of the time that's taken care of by the flash tool, including the Web flasher, when starting the upload (often called download for some reason :?) process.
The remaining 10% you have to press and hold the "Boot" button, press the "Reset" or "EN" button shortly (~0.5 sec), and after a few seconds (~20 just to be on the safe side) you release the "Boot" button. Then the unit has entered Flash-mode, and you can start the flash download process.

More importantly, as you already had ESPEasy installed and running on your ESP32, can you observe the log messages from the Web flasher "LOG & CONSOLE" screen?
If that is the case, you can enter the 3 commands I listed above (wifissid, etc.) to connect the unit to your WiFi network, and from that point on you should be able to configure the unit using a webbrowser, using the ip-address shown in the logs when connecting to the WiFi. If you missed that, you can request the currently used ip-address by typing the command "ip" (without the quotes) and press Enter from the console.
/Ton (PayPal.me)

max100
Normal user
Posts: 21
Joined: 08 Feb 2024, 23:29

Re: I can't program ESP32 sw:"ESPEasy_mega_20240229_ESP32_binaries"

#26 Post by max100 » 23 Mar 2024, 14:10

Hello,
so finally I managed to set up a WIFI network with the help of PuTTY and those 3 commands. ;)

Thank you all.

User avatar
Ath
Normal user
Posts: 3521
Joined: 10 Jun 2018, 12:06
Location: NL

Re: I can't program ESP32 sw:"ESPEasy_mega_20240229_ESP32_binaries"

#27 Post by Ath » 23 Mar 2024, 14:33

Great that it's now solved.

Wasn't the web-flasher working with the LOG & CONSOLE option? As essentially that's the same as using putty :?:
/Ton (PayPal.me)

TD-er
Core team member
Posts: 8756
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: I can't program ESP32 sw:"ESPEasy_mega_20240229_ESP32_binaries"

#28 Post by TD-er » 23 Mar 2024, 17:14

Also why do you seem to really _need_ to connect GPIO-0 to GND?
The web flasher should be able to put your device in flash mode, but I know there are some boards out there which do not seem to react well to the signals to put the board into flash mode.
However if you keep pressing the "BOOT" button until the progress indicator of flashing appears, it should be fine.
On those board which you really need to press the "BOOT" button to get it flashed, you probably also need to disconnect from USB and reconnect it to let the board boot into normal mode.

On the first boot, it may take a while to format the file system (10 - 30 sec, depending on the flash size) and in the mean time there is no serial communication.
But if you refresh the web flasher page and then press connect again it should allow you to open a console.

max100
Normal user
Posts: 21
Joined: 08 Feb 2024, 23:29

Re: I can't program ESP32 sw:"ESPEasy_mega_20240229_ESP32_binaries"

#29 Post by max100 » 23 Mar 2024, 23:35

Thank you once again

and I have more questions:
1.) I have a temperature sensor Dallas DS18b20 connected to the 1. ESP8266 and
sends data to Domoticz and I would like to display the data (temperature).
on the small display connected to 2. ESP8266 or ESP32 ?

2.) with Domoticz, I send data to ESP8266 with a 4xSSR relay module, and I would
need to reverse the logic in some way (invert),
but I do not know how.
https://encrypted-tbn0.gstatic.com/imag ... I&usqp=CAU

TD-er
Core team member
Posts: 8756
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: I can't program ESP32 sw:"ESPEasy_mega_20240229_ESP32_binaries"

#30 Post by TD-er » 24 Mar 2024, 00:14

To share sensor data to another ESPEasy node, you can have a look at the ESPEasy p2p controller:
See: https://espeasy.readthedocs.io/en/lates ... #c013-page

The second one might be a bit more complex.
Normally you could have a look at the "Domoticz MQTT Helper" plugin as described here: https://espeasy.readthedocs.io/en/lates ... #p029-page

However now you have to invert the behavior which isn't made as an option to the Domoticz MQTT Helper (which should be a useful feature here, strange nobody asked for it before)

So there are several options how to solve this.
But either one feels rather complex.

Options I am thinking about:

1) Use MQTT import and then handle it in rules
2) Use Domoticz MQTT helper and switch an unused GPIO, then through monitoring (via rules) act on the event and toggle another pin

And some more options which are even more ridiculous, so I won't mention them.

Maybe Ton (Ath, or others) can think of a more elegant way to fix this inverting.

max100
Normal user
Posts: 21
Joined: 08 Feb 2024, 23:29

Re: I can't program ESP32 sw:"ESPEasy_mega_20240229_ESP32_binaries"

#31 Post by max100 » 24 Mar 2024, 14:38

It's a shame that someone didn't think about it and implemented it in ESPmega... ;)

User avatar
Ath
Normal user
Posts: 3521
Joined: 10 Jun 2018, 12:06
Location: NL

Re: I can't program ESP32 sw:"ESPEasy_mega_20240229_ESP32_binaries"

#32 Post by Ath » 24 Mar 2024, 14:59

About 30 minutes ago I opened PR #5010 with exactly this feature 8-)

Build will be ready soon, so you can test already, downloading from this GH Actions run (Github account is required to be able to download, creating an account is free).

Edit: Updated GH Actions run link
/Ton (PayPal.me)

TD-er
Core team member
Posts: 8756
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: I can't program ESP32 sw:"ESPEasy_mega_20240229_ESP32_binaries"

#33 Post by TD-er » 24 Mar 2024, 22:37

@max100
Can you report if the test build Ton made is working?
If so, then it can be included in the next upcoming build.

max100
Normal user
Posts: 21
Joined: 08 Feb 2024, 23:29

Re: I can't program ESP32 sw:"ESPEasy_mega_20240229_ESP32_binaries"

#34 Post by max100 » 24 Mar 2024, 23:46

@TD-er
I think it's OK, I tested it for a while and only 0/1 could change in the Values folder.

Thank you all.

TD-er
Core team member
Posts: 8756
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: I can't program ESP32 sw:"ESPEasy_mega_20240229_ESP32_binaries"

#35 Post by TD-er » 24 Mar 2024, 23:52

Thanks for reporting back.

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 34 guests