Current firmware not work on Wroom02 (2MB)

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
Micha_he
Normal user
Posts: 372
Joined: 07 Feb 2018, 19:14
Location: Helmstedt, Germany

Current firmware not work on Wroom02 (2MB)

#1 Post by Micha_he » 15 Oct 2020, 08:01

Hello. I've two Wroom02 with 2MB. With firmware (self-build 2M256) from 10/2019 they do there job.

With the current source from yesterday, the pre-build (2M256) from 09/29/2020 and the ESPEasy_ESP82xx_mega-20201009-60-PR_2778 from TD-er, I've the following problem:

- Flash 2M256 is ok
- Reboot is done
- Old config is not load. New wifi credentials not saved. After a reboot, the initial-wifi-setup appears again.

- Flash 2MB blank
- Flash 2M256
- Wifi-config isn't saved again !

- Back to firmware 10/2019
- All is ok.

Any idea ? I'll try to find a version since the last year, which change the behavior on the Wroom02.

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

Re: Current firmware not work on Wroom02 (2MB)

#2 Post by TD-er » 15 Oct 2020, 12:40

Can you check the used flash type?
Is it either XMC or PUYA? (not entirely sure about the XMC brand name, but should look similar)

Micha_he
Normal user
Posts: 372
Joined: 07 Feb 2018, 19:14
Location: Helmstedt, Germany

Re: Current firmware not work on Wroom02 (2MB)

#3 Post by Micha_he » 15 Oct 2020, 17:13

That's the info from the tools page:

Flash Chip ID: Vendor: 0xC8 Device: 0x4015
Flash Chip Real Size: 2048 kB
Flash IDE Size: 1024 kB
Flash IDE Speed: 40 MHz
Flash IDE Mode: DOUT
Flash Writes: 0 daily / 0 boot
Sketch Size: 838 kB (36 kB free)
SPIFFS Size: 110 kB (26 kB free)
Page size: 256
Block size: 4096
Number of blocks: 27
Maximum open files: 5
Maximum path length: 32

This is the boot-log from a newer version (here 20200703), that didn't work:

Code: Select all

INIT : Booting version: mega-20200703 (ESP82xx Core a5432625, NONOS SDK 2.2.2-dev(38a443e), LWIP: 2.1.2 PUYA support)
88 : Info  : INIT : Free RAM:33360
90 : Info  : INIT : Warm boot #18437 Last Task: Const Interval timer, id: 1 Last systime: 3429418375 - Restart Reason: Software/System restart
91 : Info  : FS   : Mounting...
101 : Info  : FS   : Mount successful, used 75802 bytes of 214856
114 : Info  : CRC  : No program memory checksum found. Check output of crc2.py
121 : Info  : CRC  : SecuritySettings CRC   ...OK
125 : Info  : WIFI  : Start network scan
2348 : Info  : INIT : Free RAM:29880
2349 : Info  : INIT : I2C
2349 : Info  : INIT : SPI not enabled
2430 : Info  : INFO : Plugins: 46 [Normal] (ESP82xx Core a5432625, NONOS SDK 2.2.2-dev(38a443e), LWIP: 2.1.2 PUYA support)
2433 : Info  : Webserver: start
2434 : Info  : Time set to 3429418375.000
2435 : Info  : Current Time Zone: STD time start: 2078-10-30 03:00:00 offset: 0 min
2439 : Info  : Local time: 2078-09-03 08:12:55
2453 : Info  : WIFI  : Scan finished, found: 4
2458 : Error : WIFI : No valid wifi settings
2560 : Info  : WIFI : Set WiFi to AP+STA
3550 : Info  : WIFI : AP Mode ssid will be ESP-Easy with address 192.168.4.1
3551 : Error : WIFI : Could not prepare WiFi!
3785 : Info  : WD   : Uptime 0 ConnectFailures 0 FreeMem 20896 WiFiStatus 0
Also after 'WifiSSID,xxx', 'WifiKey,yyy', 'Reboot' via serial-console,... nothing has changed. Same error: 'Error : WIFI : No valid wifi settings'
(Here I made another mistake: WifiSSID - WifiKey - Save (!) - Reboot is correct)

Maybe the self-compiled firmware is a 'normal_ESP8266_1M' version. I've renamed it the past, because it's a special version for a 128x32px display.
A 1M-version from 20191003 works, a 1M-version from latest release doesn't. I'll check the versions between, to find the latest working version.

If I flash a (wrong) 1M-version on the 2M-Wroom02, is it necessary to reformat it ?
Last edited by Micha_he on 15 Oct 2020, 22:49, edited 1 time in total.

Micha_he
Normal user
Posts: 372
Joined: 07 Feb 2018, 19:14
Location: Helmstedt, Germany

Re: Current firmware not work on Wroom02 (2MB)

#4 Post by Micha_he » 15 Oct 2020, 20:23

Maybe I've found the problem... I'll do some tests and report here...

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

Re: Current firmware not work on Wroom02 (2MB)

#5 Post by Ath » 15 Oct 2020, 21:03

You might need to run an empty flash on the ESP, and after that the desired .bin file, you seem to have a different memory layout, and when switching (memory)layout a forced clean is strongly advised. The WiFi settings are specifically 'vulnerable' as at some point they may have been saved outside of the normal memory layout by the base ESP framework, causing all kinds of WiFi related issues.
/Ton (PayPal.me)

Micha_he
Normal user
Posts: 372
Joined: 07 Feb 2018, 19:14
Location: Helmstedt, Germany

Re: Current firmware not work on Wroom02 (2MB)

#6 Post by Micha_he » 15 Oct 2020, 21:48

@Ath: You mean, flash a 2MB-blank should clean the entire flash and is enough if I change from 1M to 2M256. Then....

The main problem while the tests with 1M-firmware was a 1000µF capacitor on the USB-TTL-programm adapter. When I power-cycle (disconnect-connect) the ESP incl. the adapter after the flash procedure, it seems the ESP not do a full reset. When I disconnect the ESP from the USB-TTL-Adapter, the boot is ok.

But only the 1M-firmware works on my 2MB-Wroom-02. Not the 'normal_WROOM02_2M256' (can't connect to wifi) and also the 'normal_WROOM02_2M' (no boot) is working on my Wroom-02.

Has someone a solution? Is there a problem with the WROOM02-files ? Or is my WROOM02 a 'special one' ?

Edit: :roll: The WROOM02_2M256 works !!! Flash blank before and save the Wifi-setup via serial-com works. I've done too many tests, flashes and work with new ways late in the evening :?

Post Reply

Who is online

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