Problem with ESP_Easy_mega-20200426_test_ESP32_4M316k.bin

Moderators: grovkillen, TD-er, Stuntteam

Post Reply
Message
Author
BertB
Normal user
Posts: 1029
Joined: 25 Apr 2015, 14:39

Problem with ESP_Easy_mega-20200426_test_ESP32_4M316k.bin

#1 Post by BertB » 26 Apr 2020, 14:58

Hi,

I have one ESP32 that worked fine up until ESP_Easy_mega-20200426_test_ESP32_4M316k.bin.
I get this serial info:
ets Jun 8 2016 00:22:57

rst:0x1 (POWERON_RESET),boot:0x17 (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:1
load:0x3fff0010,len:4
load:0x3fff0014,len:812
load:0x40078000,len:0
load:0x40078000,len:10164
entry 0x400789f8
user code done

ESP_Easy_mega-20200410_test_ESP32_4M316k.bin works fine.

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

Re: Problem with ESP_Easy_mega-20200426_test_ESP32_4M316k.bin

#2 Post by TD-er » 26 Apr 2020, 15:30

See my reply in the other thread.

BertB
Normal user
Posts: 1029
Joined: 25 Apr 2015, 14:39

Re: Problem with ESP_Easy_mega-20200426_test_ESP32_4M316k.bin

#3 Post by BertB » 26 Apr 2020, 17:35

Okay, I will give it a try, but it then is a different way to load the firmware. With this ESP32 I could always use the .cmd file containing:
esptool.exe --chip esp32 --port COM4 --baud 256000 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size detect 0x10000 ESP_Easy_mega-20200410_test_ESP32_4M316k.bin

BertB
Normal user
Posts: 1029
Joined: 25 Apr 2015, 14:39

Re: Problem with ESP_Easy_mega-20200426_test_ESP32_4M316k.bin

#4 Post by BertB » 26 Apr 2020, 19:23

Well, the programming of the ESP32 with the factory version did not lead to a working processor either.

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

Re: Problem with ESP_Easy_mega-20200426_test_ESP32_4M316k.bin

#5 Post by TD-er » 26 Apr 2020, 23:01

Have you set the offset to 0, when using the factory image? In your command line it has a 0x10000, so make sure it is set to 0.
The baudrate of 256000 is also not a standard baud rate. Better try some standard rate like 115200.

BertB
Normal user
Posts: 1029
Joined: 25 Apr 2015, 14:39

Re: Problem with ESP_Easy_mega-20200426_test_ESP32_4M316k.bin

#6 Post by BertB » 27 Apr 2020, 14:44

This is the cmd line:
esptool.exe --chip esp32 --port COM4 --baud 115200 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size detect 0x00000 ESP_Easy_mega-20200426_test_ESP32_4M316k_factory.bin

And this the result:
ets Jun 8 2016 00:22:57

rst:0x1 (POWERON_RESET),boot:0x17 (SPI_FAST_FLASH_BOOT)
flash read err, 1000
ets_main.c 371
ets Jun 8 2016 00:22:57

rst:0x10 (RTCWDT_RTC_RESET),boot:0x17 (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:DOUT, clock div:1
load:0x3fff0018,len:4
load:0x3fff001c,len:1044
load:0x40078000,len:8896
load:0x40080400,len:5816
entry 0x400806ac
ets Jun 8 2016 00:22:57

With this cmd line, and the previous version, it just works fine.
esptool.exe --chip esp32 --port COM4 --baud 115200 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size detect 0x10000 ESP_Easy_mega-20200410_test_ESP32_4M316k.bin

szurke
Normal user
Posts: 3
Joined: 28 Apr 2020, 09:48

Re: Problem with ESP_Easy_mega-20200426_test_ESP32_4M316k.bin

#7 Post by szurke » 28 Apr 2020, 09:53

I have same problem. I tried lots of combination (firmware type and adresses), but the new latest 0426 firmware upgrade didn't work.

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

Re: Problem with ESP_Easy_mega-20200426_test_ESP32_4M316k.bin

#8 Post by TD-er » 28 Apr 2020, 12:02

OK, I will test it this evening to see what's wrong here.
Just to be sure, the previous build you tested, with 'factory' in the name was a build from the nightly builds and not one that I made as a test build?

szurke
Normal user
Posts: 3
Joined: 28 Apr 2020, 09:48

Re: Problem with ESP_Easy_mega-20200426_test_ESP32_4M316k.bin

#9 Post by szurke » 28 Apr 2020, 14:41

Sure
I tested these ones with 0 offset: ESP_Easy_mega-20200426_custom_ESP32_4M316k_factory.bin; ESP_Easy_mega-20200426_test_ESP32_4M316k_factory.bin
And this one, with the 0x10000: ESP_Easy_mega-20200426_test_ESP32_4M316k.bin
I erased the flash before I flashed. My chip is ESP32D0WDQ6

I rolled back to the previous build ESP_Easy_mega-20200410_test_ESP32_4M316k.bin, and everything is working fine now. I use esptool.exe with esptool.py 2.1

I think we need a different bootloader or different offset of the adresses.

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

Re: Problem with ESP_Easy_mega-20200426_test_ESP32_4M316k.bin

#10 Post by TD-er » 28 Apr 2020, 17:01

I performed an OTA update using the latest nightly build and got this reply in the web interface:

Code: Select all

Update error: Could Not Activate The Firmware
So that's probably the reason why it fails to load when you flash it using serial.

BertB
Normal user
Posts: 1029
Joined: 25 Apr 2015, 14:39

Re: Problem with ESP_Easy_mega-20200426_test_ESP32_4M316k.bin

#11 Post by BertB » 20 May 2020, 06:39

Is this solved with the new release?

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

Re: Problem with ESP_Easy_mega-20200426_test_ESP32_4M316k.bin

#12 Post by TD-er » 20 May 2020, 13:31

BertB wrote:
20 May 2020, 06:39
Is this solved with the new release?
Flashing OTA on ESP32 should work.
I've not tested the actual build, but I've been working with this feature the last week(s) and the last build should be based on the same code.

szurke
Normal user
Posts: 3
Joined: 28 Apr 2020, 09:48

Re: Problem with ESP_Easy_mega-20200426_test_ESP32_4M316k.bin

#13 Post by szurke » 20 May 2020, 14:12

Yes, the latest ESPEasy_mega-20200515 release is working fine already

BertB
Normal user
Posts: 1029
Joined: 25 Apr 2015, 14:39

Re: Problem with ESP_Easy_mega-20200426_test_ESP32_4M316k.bin

#14 Post by BertB » 20 May 2020, 14:14

I have tested it too. Looks fine now.
Next I shal try this on my other ESP 32 devices.

Post Reply

Who is online

Users browsing this forum: No registered users and 22 guests