ESP32 Lolin

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
taku
Normal user
Posts: 8
Joined: 25 May 2018, 10:30

ESP32 Lolin

#1 Post by taku » 01 Mar 2020, 10:03

Hello!
please tell me, I can’t understand how to flash esp32 to the latest firmware ESPEasy_mega-20200222
but i can flashing ESPEasy32_R20100-and it's ok,
what should i do to flash ?
I also tried to flash through flash_download_tools
indicating memory address 0x00 but not worked.
Did anyone flash esp32 ?

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

Re: ESP32 Lolin

#2 Post by TD-er » 01 Mar 2020, 14:09

Flashing ESP32 may indeed need some attention.

You also need some bin files for the regions before the actual sketch.
I don't have the files + screenshot at hand here, maybe someone else has?

taku
Normal user
Posts: 8
Joined: 25 May 2018, 10:30

Re: ESP32 Lolin

#3 Post by taku » 02 Mar 2020, 12:06

wath i needed files ?
the firmware ESP_Easy_mega-20200222_test_ESP32_4M316k.bin is't include ?:
boot_app0.bin
bootloader.bin
ESPEasy.ino.partitions.bin

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

Re: ESP32 Lolin

#4 Post by TD-er » 02 Mar 2020, 12:49

It seems so indeed.
I have seen several reports of users not being able to flash ESP32 using the nightly builds.
I myself always flash it directly from the IDE, so then the other files are included in the flash procedure.

Like I said, I really need to give the ESP32 some more attention, but there are only 24h in a day...

gefahrensucher
Normal user
Posts: 4
Joined: 09 Mar 2020, 10:38
Location: Germany

Re: ESP32 Lolin

#5 Post by gefahrensucher » 09 Mar 2020, 11:10

Hi guys i'm new here and would like to give a little bit input from my side.

I was able to to fash ESP-Easys mege with these steps:
1. only if you hav a fresh one with factory firmware installed, erase the flash with esptool.
2. an one time i have to flas the flashed bootloader and partition2 and boot_app0.bin
esptool.exe --chip esp32 --port COM6 --baud 256000 --before default_reset --after hard_reset erase_flash
esptool.exe --chip esp32 --port COM6 --baud 256000 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size detect 0x8000 partitions2.bin 0xe000 boot_app0.bin 0x1000 bootloader.bin
3. then flash the firmware
esptool.exe --chip esp32 --port COM6 --baud 256000 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size detect 0x10000 ESP_Easy_mega-20191208_test_ESP32_4M316k.bin

later i was abele to update the firmware only with
esptool.exe --chip esp32 --port COM6 --baud 256000 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size detect 0x10000 ESP_Easy_mega-20200305_test_ESP32_4M316k.bin

one hint: start the flashtool then hit the boot button on esp32. The esptool is not the one came with ESP-Easy this does not work with ESP32 (i don't kow why). I found esptool.exe version of the esptool.py. i use this because i don't have installed python. But i think esptool.py should also work.

one thing i noticed is that the buildin LED is not working as a WIFI Status LED (GIO2). I can manually switch it on an off. But it is not working like the ESP8266 devices.

cheers

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

Re: ESP32 Lolin

#6 Post by TD-er » 10 Mar 2020, 02:02

gefahrensucher wrote:
09 Mar 2020, 11:10
Hi guys i'm new here and would like to give a little bit input from my side.

I was able to to fash ESP-Easys mege with these steps:
1. only if you hav a fresh one with factory firmware installed, erase the flash with esptool.
2. an one time i have to flas the flashed bootloader and partition2 and boot_app0.bin
esptool.exe --chip esp32 --port COM6 --baud 256000 --before default_reset --after hard_reset erase_flash
esptool.exe --chip esp32 --port COM6 --baud 256000 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size detect 0x8000 partitions2.bin 0xe000 boot_app0.bin 0x1000 bootloader.bin
3. then flash the firmware
esptool.exe --chip esp32 --port COM6 --baud 256000 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size detect 0x10000 ESP_Easy_mega-20191208_test_ESP32_4M316k.bin

later i was abele to update the firmware only with
esptool.exe --chip esp32 --port COM6 --baud 256000 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size detect 0x10000 ESP_Easy_mega-20200305_test_ESP32_4M316k.bin

one hint: start the flashtool then hit the boot button on esp32. The esptool is not the one came with ESP-Easy this does not work with ESP32 (i don't kow why). I found esptool.exe version of the esptool.py. i use this because i don't have installed python. But i think esptool.py should also work.

one thing i noticed is that the buildin LED is not working as a WIFI Status LED (GIO2). I can manually switch it on an off. But it is not working like the ESP8266 devices.

cheers
Can you make 2 issues of this post on Github?
One with the needed steps for flashing the ESP32, so we can add that to the documentation.

And one for the last line you reported regarding the status LED.
I will never find it again if it is hidden here in a forum post.

gefahrensucher
Normal user
Posts: 4
Joined: 09 Mar 2020, 10:38
Location: Germany

Re: ESP32 Lolin

#7 Post by gefahrensucher » 13 Mar 2020, 17:51

As requested i created 2 issues at github
#2940
#2941
cheers

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

Re: ESP32 Lolin

#8 Post by TD-er » 14 Mar 2020, 00:42

Thanks

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests