ESP 01S flashing OK but not connected

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
rjcab
New user
Posts: 6
Joined: 10 Feb 2024, 11:18

ESP 01S flashing OK but not connected

#1 Post by rjcab » 10 Feb 2024, 11:31

Hello all,

A ma facing an issue for now 2 weeks.
I have this board, https://www.letscontrolit.com/wiki/ind ... le=ESP-01 I don't see any puya mark on it.

I triyed to flash it with esptool and firmware r120. everything seems ok but unable to see ssid ESP_0 or ESP_Easy_0. So I tired to add the network ssid into my iphone or windows pc but same issue

Code: Select all

Uploading 411264 bytes from ESPEasy_R120_4096.bin to flash at 0x00000000
        erasing flash
        size: 064680 address: 000000
        first_sector_index: 0
        total_sector_count: 101
        head_sector_count: 16
        adjusted_sector_count: 85
        adjusted_size: 055000
        espcomm_send_command: sending command header
        espcomm_send_command: sending command payload
        setting serial port timeouts to 10000 ms
        setting serial port timeouts to 1000 ms
        espcomm_send_command: receiving 2 bytes of data
        writing flash
..................................................................................................................................................................................................................................................................................................................................................................................................................
starting app without reboot
        espcomm_send_command: sending command header
        espcomm_send_command: sending command payload
        espcomm_send_command: receiving 2 bytes of data
closing bootloader
        flush start
        setting serial port timeouts to 1 ms
        setting serial port timeouts to 1000 ms
        flush complete
Then I tried with the wrapper ESP.Easy.Flasher and firmware ESP_Easy_mega_20231225_normal_ESP8266_4M1M.bin with setting SSID, PWD, and IP:

Code: Select all

[10/02/2024 10:46:55] trying to connect
[10/02/2024 10:46:55] 	flush start
[10/02/2024 10:46:55] 	setting serial port timeouts to 1 ms
[10/02/2024 10:46:55] 	setting serial port timeouts to 1000 ms
[10/02/2024 10:46:55] 	flush complete
[10/02/2024 10:46:55] 	espcomm_send_command: sending command header
[10/02/2024 10:46:55] 	espcomm_send_command: sending command payload
[10/02/2024 10:46:55] 	espcomm_send_command: receiving 2 bytes of data
[10/02/2024 10:46:55] 	espcomm_send_command: receiving 2 bytes of data
[10/02/2024 10:46:55] 	espcomm_send_command: receiving 2 bytes of data
[10/02/2024 10:46:55] 	espcomm_send_command: receiving 2 bytes of data
[10/02/2024 10:46:55] 	espcomm_send_command: receiving 2 bytes of data
[10/02/2024 10:46:55] 	espcomm_send_command: receiving 2 bytes of data
[10/02/2024 10:46:55] 	espcomm_send_command: receiving 2 bytes of data
[10/02/2024 10:46:55] 	espcomm_send_command: receiving 2 bytes of data
[10/02/2024 10:46:55] Uploading 1004992 bytes from C:\Users\Audrey\Documents\ESPFlasher\bin\ESP_Easy_mega_20231225_normal_ESP8266_4M1M.bin to flash at 0x00000000
[10/02/2024 10:46:55] 	erasing flash
[10/02/2024 10:46:55] 	size: 0f55c0 address: 000000
[10/02/2024 10:46:55] 	first_sector_index: 0
[10/02/2024 10:46:55] 	total_sector_count: 246
[10/02/2024 10:46:55] 	head_sector_count: 16
[10/02/2024 10:46:55] 	adjusted_sector_count: 230
[10/02/2024 10:46:55] 	erase_size: 0e6000
[10/02/2024 10:46:55] 	espcomm_send_command: sending command header
[10/02/2024 10:46:55] 	espcomm_send_command: sending command payload
[10/02/2024 10:46:55] 	setting serial port timeouts to 15000 ms
[10/02/2024 10:46:55] 	setting serial port timeouts to 1000 ms
[10/02/2024 10:46:55] 	espcomm_send_command: receiving 2 bytes of data
[10/02/2024 10:46:55] 	writing flash
[10/02/2024 10:47:04] ................................................................................ [  8% ]
[10/02/2024 10:47:13] ................................................................................ [ 16% ]
[10/02/2024 10:47:21] ................................................................................ [ 24% ]
[10/02/2024 10:47:30] ................................................................................ [ 32% ]
[10/02/2024 10:47:38] ................................................................................ [ 40% ]
[10/02/2024 10:47:47] ................................................................................ [ 48% ]
[10/02/2024 10:47:56] ................................................................................ [ 57% ]
[10/02/2024 10:48:04] ................................................................................ [ 65% ]
[10/02/2024 10:48:13] ................................................................................ [ 73% ]
[10/02/2024 10:48:22] ................................................................................ [ 81% ]
[10/02/2024 10:48:30] ................................................................................ [ 89% ]
[10/02/2024 10:48:39] ................................................................................ [ 97% ]
[10/02/2024 10:48:41] ......................                                                           [ 100% ]
[10/02/2024 10:48:41] starting app without reboot
[10/02/2024 10:48:41] 	espcomm_send_command: sending command header
[10/02/2024 10:48:41] 	espcomm_send_command: sending command payload
[10/02/2024 10:48:41] 	espcomm_send_command: receiving 2 bytes of data
[10/02/2024 10:48:41] closing bootloader
[10/02/2024 10:48:41] 	flush start
[10/02/2024 10:48:41] 	setting serial port timeouts to 1 ms
[10/02/2024 10:48:41] 	setting serial port timeouts to 1000 ms
[10/02/2024 10:48:41] 	flush complete
[2024-02-10 10:48:41] DONE!
######POST FLASH######
[2024-02-10 10:48:43] Sending SERIAL: "..."
[2024-02-10 10:48:56] Sending SERIAL: " Name R6 "
[2024-02-10 10:49:53] Sending SERIAL: " Password 151200 "
[2024-02-10 10:51:06] Sending SERIAL: " WifiSSID INT35 "
[2024-02-10 10:51:38] Sending SERIAL: " WifiKey FC3D71E49E3xxxxxxxxxx36719671F "
[2024-02-10 10:52:17] Sending SERIAL: " ip 192.168.1.166 "
[2024-02-10 10:52:58] Sending SERIAL: " gateway 192.168.1.1 "
[2024-02-10 10:53:01] Sending SERIAL: " dns 8.8.8.8 "
[2024-02-10 10:53:28] Sending SERIAL: " subnet 255.255.255.0 "
[2024-02-10 10:53:53] Sending SERIAL: "Save"
[2024-02-10 10:54:14] Sending SERIAL: "WifiConnect"
[2024-02-10 10:54:14] Serial programming done.
[2024-02-10 10:54:28] ERROR: Unit do not have an IP address.
############################
[2024-02-10 10:54:28] JOB COMPLETED, over and out!
An error but I don't understand ... and board not seen on the network.

So I tried without setting anything:

Code: Select all

[10/02/2024 10:29:13] Uploading 1004992 bytes from C:\Users\Audrey\Documents\ESPFlasher\bin\ESP_Easy_mega_20231225_normal_ESP8266_4M1M.bin to flash at 0x00000000
[10/02/2024 10:29:13] 	erasing flash
[10/02/2024 10:29:13] 	size: 0f55c0 address: 000000
[10/02/2024 10:29:13] 	first_sector_index: 0
[10/02/2024 10:29:13] 	total_sector_count: 246
[10/02/2024 10:29:13] 	head_sector_count: 16
[10/02/2024 10:29:13] 	adjusted_sector_count: 230
[10/02/2024 10:29:13] 	erase_size: 0e6000
[10/02/2024 10:29:13] 	espcomm_send_command: sending command header
[10/02/2024 10:29:13] 	espcomm_send_command: sending command payload
[10/02/2024 10:29:13] 	setting serial port timeouts to 15000 ms
[10/02/2024 10:29:13] 	setting serial port timeouts to 1000 ms
[10/02/2024 10:29:13] 	espcomm_send_command: receiving 2 bytes of data
[10/02/2024 10:29:13] 	writing flash
[10/02/2024 10:29:21] ................................................................................ [  8% ]
[10/02/2024 10:29:30] ................................................................................ [ 16% ]
[10/02/2024 10:29:39] ................................................................................ [ 24% ]
[10/02/2024 10:29:47] ................................................................................ [ 32% ]
[10/02/2024 10:29:56] ................................................................................ [ 40% ]
[10/02/2024 10:30:05] ................................................................................ [ 48% ]
[10/02/2024 10:30:13] ................................................................................ [ 57% ]
[10/02/2024 10:30:22] ................................................................................ [ 65% ]
[10/02/2024 10:30:31] ................................................................................ [ 73% ]
[10/02/2024 10:30:39] ................................................................................ [ 81% ]
[10/02/2024 10:30:48] ................................................................................ [ 89% ]
[10/02/2024 10:30:57] ................................................................................ [ 97% ]
[10/02/2024 10:30:59] ......................                                                           [ 100% ]
[10/02/2024 10:30:59] starting app without reboot
[10/02/2024 10:30:59] 	espcomm_send_command: sending command header
[10/02/2024 10:30:59] 	espcomm_send_command: sending command payload
[10/02/2024 10:30:59] 	espcomm_send_command: receiving 2 bytes of data
[10/02/2024 10:30:59] closing bootloader
[10/02/2024 10:30:59] 	flush start
[10/02/2024 10:30:59] 	setting serial port timeouts to 1 ms
[10/02/2024 10:30:59] 	setting serial port timeouts to 1000 ms
[10/02/2024 10:30:59] 	flush complete
[2024-02-10 10:30:59] DONE!
############################
[2024-02-10 10:30:59] The COM port was already in use... the post-flash did not complete.
[2024-02-10 10:30:59] JOB COMPLETED, over and out!
I got the same issue.

Thanks in advance for your help


If you have any clue

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

Re: ESP 01S flashing OK but not connected

#2 Post by Ath » 10 Feb 2024, 12:04

rjcab wrote: 10 Feb 2024, 11:31 Hello all,

A ma facing an issue for now 2 weeks.
I have this board, https://www.letscontrolit.com/wiki/ind ... le=ESP-01 I don't see any puya mark on it.

I triyed to flash it with esptool and firmware r120. everything seems ok but unable to see ssid ESP_0 or ESP_Easy_0. So I tired to add the network ssid into my iphone or windows pc but same issue
Please do not even try to use that 6 year old firmware, there is no support for that anymore (despite that, it may work, but still no support)

Also, we have some more modern documentation, the Wiki hasn't been updated in a long time, and will not get updated either.
rjcab wrote: 10 Feb 2024, 11:31 Then I tried with the wrapper ESP.Easy.Flasher and firmware ESP_Easy_mega_20231225_normal_ESP8266_4M1M.bin with setting SSID, PWD, and IP:

...

An error but I don't understand ... and board not seen on the network.
Well, the firmware you tried to flash is intended for a 4MB unit, and unless you replaced the 1MB flash chip on the ESP01, that won't fit nor work.
You should use the ESP_Easy_mega_20231225_normal_ESP8266_1M.bin, intended for the 1MB units.

NB: Next time when you are shopping for an ESP, you are strongly advised to buy ESP32, ESP32-C2, ESP32-C3, ESP32-C6 or ESP32-S3 boards, (by default these come with 4MB flash), and if possible with 8MB or 16MB flash (available on ESP32, ESP32-S3).
If you require the small form-factor of the ESP01, there are ESP32-C3 boards available that are drop-in replacements for the ESP01.
/Ton (PayPal.me)

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

Re: ESP 01S flashing OK but not connected

#3 Post by Ath » 10 Feb 2024, 12:09

rjcab wrote: 10 Feb 2024, 11:31 Then I tried with the wrapper ESP.Easy.Flasher and firmware ESP_Easy_mega_20231225_normal_ESP8266_4M1M.bin with setting SSID, PWD, and IP:
The latest firmware comes with the Espressif flash download tool, that can be used with all supported ESP units, both the ESP8266 and ESP32 (all supported models).

That tool doesn't allow to set the Wifi parameters, but for that you can use the Web flasher, that also offers a console to enter commands on the newly flashed unit:

https://td-er.nl/ESPEasy/ (requires Chrome or Edge browser)
/Ton (PayPal.me)

rjcab
New user
Posts: 6
Joined: 10 Feb 2024, 11:18

Re: ESP 01S flashing OK but not connected

#4 Post by rjcab » 10 Feb 2024, 13:41

thanks a lot for the reply.
I didnn't know this url, it's awesome :https://td-er.nl/ESPEasy/

I tried to flash with 20231225 normal 1M ESP8266, flashing OK but nothing then, not ssid appeared.

I have alors ESP32 C3 mini, but It didn't work although I put GPIO9 to GND.

If you have any clue :=)

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

Re: ESP 01S flashing OK but not connected

#5 Post by Ath » 10 Feb 2024, 14:43

rjcab wrote: 10 Feb 2024, 13:41 I tried to flash with 20231225 normal 1M ESP8266, flashing OK but nothing then, not ssid appeared.
After flashing, leave the unit connected for at least a couple of seconds, then either reset or power-cycle the unit.

You can open a Console window from the Web tool (Logs & Console). You should then be able to see the log produced by ESPEasy, and you can type commands to the unit.

Once you have that, you can type these commands to connect it to your WiFi network:

Code: Select all

wifissid,your_wifi_ssid
wifikey,your_wifi_password
save
(Press the <Enter> key after each command)
/Ton (PayPal.me)

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

Re: ESP 01S flashing OK but not connected

#6 Post by Ath » 10 Feb 2024, 14:45

rjcab wrote: 10 Feb 2024, 13:41 I have alors ESP32 C3 mini, but It didn't work although I put GPIO9 to GND.
You have to keep that GPIO to GND while resetting or powering up the ESP32-C3 to get it into Flas-mode. But that's similar to the ESP01S.
Doesn't your ESP32-C3 have Boot and Reset buttons? (many have, even those minis)
/Ton (PayPal.me)

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

Re: ESP 01S flashing OK but not connected

#7 Post by TD-er » 10 Feb 2024, 16:17

The ESP01S doesn't have electronics to automatically toggle it to flash mode, so that one needs to have GPIO-0 pulled to GND before power on.

The ESP32-C3 can be a bit tricky on some boards indeed.
I do have one (received last week), which is just about the cheapest C3 you can find (2 euro) which is indeed a bit tricky to get into flash mode.
However it does have 2 buttons.
N.B. some really cheap boards with USB-C do appear to have a preference for orientation of the USB-C plug.

Not sure if pulling GPIO-9 to GND on the C3 board is a good idea if flashing via USB as most boards use the emulated USB-to-serial feature of the C3.
And if the board is pulled to flash mode at power on, you might not see a serial port appear in your device manager.

Also make sure to use Chrome as not all browsers support access to the serial port from a web browser.
Sometimes it can also help to close the tab and open a new tab to load the flash page.
This way you can be sure the serial port is not locked by some process.

rjcab
New user
Posts: 6
Joined: 10 Feb 2024, 11:18

Re: ESP 01S flashing OK but not connected

#8 Post by rjcab » 10 Feb 2024, 16:41

thanks a lot @Ath for your support.
It went well for the ESP 01 but may be there is an default, because I lost the connection and when un plug it on the relay board https://www.temu.com/fr/kuiper/n9.html? ... f-08e7f9c3 the relay made a "clic" and both led esp and relay card have a blue led turn on for 2s and then turn off.

Then I reset the board directly from the relay board but not possible to reach the esp despite of fixing an ip address.

Something wrong I made ?

rjcab
New user
Posts: 6
Joined: 10 Feb 2024, 11:18

Re: ESP 01S flashing OK but not connected

#9 Post by rjcab » 10 Feb 2024, 16:47

for the esp32 C3 super mini I read that doc: https://docs.espressif.com/projects/esp ... ction.html
The ESP32-C3 will enter the serial bootloader when GPIO9 is held low on reset. Otherwise it will run the program in flash.
GPIO8 must also be driven High, in order to enter the serial bootloader reliably. The strapping combination of GPIO8 = 0 and GPIO9 = 0 is invalid and will trigger unexpected behavior.

In normal boot mode (GPIO9 high), GPIO8 is ignored.
I am a bit lost :)

besides, strange, but on the board it doesn't seem there is an embeded CH340 or similar to communicate. I am wondering if I need to plug it to an USB to ESP to flash it. indeed communication impossible.

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

Re: ESP 01S flashing OK but not connected

#10 Post by Ath » 10 Feb 2024, 16:59

The newer ESP32 devices like the S3, C2 and C3 have a built-in USB port, so they can act as a COM port themselves.

You could try to flash it using the Web flasher, without pulling GPIO 9 to GND, as it can be set to flash-mode via USB, like TD-er explained.
/Ton (PayPal.me)

rjcab
New user
Posts: 6
Joined: 10 Feb 2024, 11:18

Re: ESP 01S flashing OK but not connected

#11 Post by rjcab » 10 Feb 2024, 18:13

thanks again for your avalaibility and reactivity.

so for the C3, I did nothing with pin, just plug the board on USB and launch Web flasher, I confirm install normal 4M little FS, then erase device, then install and I got the following message:

Failed to initialize. Try resetting your device or holding the BOOT button while clicking INSTALL.
So i clic on RST, then I hold boot button till the popup install but same error :o

Once the board is plugged via USB always a red led is on

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

Re: ESP 01S flashing OK but not connected

#12 Post by Ath » 10 Feb 2024, 19:14

The procedure is to hold the boot button pressed, the shortly press rst, and start the flash process. Once that starts you can release the boot button.
/Ton (PayPal.me)

rjcab
New user
Posts: 6
Joined: 10 Feb 2024, 11:18

Re: ESP 01S flashing OK but not connected

#13 Post by rjcab » 10 Feb 2024, 19:44

I did what you suggested Ath but doesn't work. to make is sure :)

- I plug USB to PC
- I plug USBC to ESP
- I press and hold boot button
- I press and release rst button
- I go on chrome and url web flash, I select 20231225 Normal 4M Little FS ESP32,ESP32-S2/C2/C3/C6
- I do connect
- I select port 3 and connect
- I choose Install normal 4M littlefs
- I tick off erase device then next
- I confirm installation and I got preparing installation and then the message: (I am still pressing boot button)

Code: Select all

    Failed to initialize. Try resetting your device or holding the BOOT button while clicking INSTALL.
I tried on 3 new devices, same issue :(

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

Re: ESP 01S flashing OK but not connected

#14 Post by Ath » 10 Feb 2024, 20:07

Your steps sound correct to me, so, it may be a case of keep trying until you succeed :?

As TD-er already mentioned, some are quite hard to get flashed.
Did you try to close the browser tab and reopen, to release any previously connected COM ports?
/Ton (PayPal.me)

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

Re: ESP 01S flashing OK but not connected

#15 Post by TD-er » 10 Feb 2024, 20:40

Maybe you can also try the Espressif Download tool.

Post Reply

Who is online

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