Page 1 of 1

Problem with ESP_Easy_mega-20200426_test_ESP32_4M316k.bin

Posted: 26 Apr 2020, 14:58
by BertB
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.

Re: Problem with ESP_Easy_mega-20200426_test_ESP32_4M316k.bin

Posted: 26 Apr 2020, 15:30
by TD-er
See my reply in the other thread.

Re: Problem with ESP_Easy_mega-20200426_test_ESP32_4M316k.bin

Posted: 26 Apr 2020, 17:35
by BertB
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

Re: Problem with ESP_Easy_mega-20200426_test_ESP32_4M316k.bin

Posted: 26 Apr 2020, 19:23
by BertB
Well, the programming of the ESP32 with the factory version did not lead to a working processor either.

Re: Problem with ESP_Easy_mega-20200426_test_ESP32_4M316k.bin

Posted: 26 Apr 2020, 23:01
by TD-er
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.

Re: Problem with ESP_Easy_mega-20200426_test_ESP32_4M316k.bin

Posted: 27 Apr 2020, 14:44
by BertB
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

Re: Problem with ESP_Easy_mega-20200426_test_ESP32_4M316k.bin

Posted: 28 Apr 2020, 09:53
by szurke
I have same problem. I tried lots of combination (firmware type and adresses), but the new latest 0426 firmware upgrade didn't work.

Re: Problem with ESP_Easy_mega-20200426_test_ESP32_4M316k.bin

Posted: 28 Apr 2020, 12:02
by TD-er
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?

Re: Problem with ESP_Easy_mega-20200426_test_ESP32_4M316k.bin

Posted: 28 Apr 2020, 14:41
by szurke
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.

Re: Problem with ESP_Easy_mega-20200426_test_ESP32_4M316k.bin

Posted: 28 Apr 2020, 17:01
by TD-er
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.

Re: Problem with ESP_Easy_mega-20200426_test_ESP32_4M316k.bin

Posted: 20 May 2020, 06:39
by BertB
Is this solved with the new release?

Re: Problem with ESP_Easy_mega-20200426_test_ESP32_4M316k.bin

Posted: 20 May 2020, 13:31
by TD-er
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.

Re: Problem with ESP_Easy_mega-20200426_test_ESP32_4M316k.bin

Posted: 20 May 2020, 14:12
by szurke
Yes, the latest ESPEasy_mega-20200515 release is working fine already

Re: Problem with ESP_Easy_mega-20200426_test_ESP32_4M316k.bin

Posted: 20 May 2020, 14:14
by BertB
I have tested it too. Looks fine now.
Next I shal try this on my other ESP 32 devices.