ESP32 Lolin

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
taku
New 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: 8739
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
New 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: 8739
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
New 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: 8739
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
New 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: 8739
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: ESP32 Lolin

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

Thanks

selorbis
New user
Posts: 4
Joined: 17 Jan 2019, 00:56

Re: ESP32 Lolin

#9 Post by selorbis » 06 Apr 2020, 17:15

Hello,

I just try to flash a lolin32 with the newest firmware.
I try this way and it works: https://www.letscontrolit.com/forum/vie ... php?t=6354
I use the last update of the "espressif download tool" : https://www.espressif.com/sites/default ... v3.6.8.zip
I use the 3 first files post by "epost" : https://www.letscontrolit.com/forum/vie ... 354#p35434
and the last binary in the release package for the 4 field: https://github.com/letscontrolit/ESPEasy/releases
Like : ESP_Easy_mega-20200328_test_ESP32_4M316k.bin or ESP_Easy_mega-20200328_custom_ESP32_4M316k

On my side when I use the file included in the 20100 release package : http://www.letscontrolit.com/downloads/ ... R20100.zip it doesn't works.
But with the "epost" files partitions2.bin instead of ESPEasy.ino.partitions in particular, it works.

At this point I've some question for succeed to build ESPEasy sources in PlatformIO and include the servo motor library in, but I'll post a question in the forum about this after some research.
https://www.letscontrolit.com/forum/vie ... f=6&t=7598

Post Reply

Who is online

Users browsing this forum: No registered users and 65 guests