Wemos D1 Mini works with 1mb but not 4mb flash

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
killerwhaletank
New user
Posts: 1
Joined: 03 May 2018, 17:35

Wemos D1 Mini works with 1mb but not 4mb flash

#1 Post by killerwhaletank » 03 May 2018, 17:42

Hi,

I'm having trouble getting the AP running on initial boot of my flashed Wemos D1 Mini v2.1.0 with ESP_Easy_mega-20180503_normal_ESP8266_4096 with FlashESP8266.exe.

I can successfully flash the 4mb image but the AP never shows up. As an alternative, I tried flashing the 1mb image... also successful and this time the AP shows up.

When running the 1mb image, the system info storage shows the following... indicating that 4mb is available. Anyone have any ideas why the 4mb doesn't boot on my D1 Mini?

Flash Chip ID Vendor: 0xE0 Device: 0x4016
Flash Chip Real Size: 4096 kB
Flash IDE Size: 1024 kB
Flash IDE speed: 40 MHz
Flash IDE mode: DOUT
Flash Writes 3 daily / 3 boot
Sketch Size 669 kB (204 kB free)

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

Re: Wemos D1 Mini works with 1mb but not 4mb flash

#2 Post by TD-er » 05 May 2018, 00:27

We are experiencing some very strange issues with builds lately.
It appears that when you build then twice, the firmware versions are much more stable.
The nightly builds are only built once (which is how it should be). As an experiment I am now -as we speak- building the whole set several times in a row, which I will upload when ready.

So please try that special build, which I will add to the releases folder within the next hour.

spachal
Normal user
Posts: 55
Joined: 22 Feb 2018, 22:11

Re: Wemos D1 Mini works with 1mb but not 4mb flash

#3 Post by spachal » 05 May 2018, 00:47

Same problem here .. I tried 20180504 release, normal version problems with wifi (AP not vissible at all), testing AP OK, but I can't reach IP of AP, dev version seems to be OK, but I don't need so much plugins etc. loaded .. hw NodeMCU V3.
I'll try that multiple compiled version, all of them and report it back here.
Please excuse my English, thanks!


spachal
Normal user
Posts: 55
Joined: 22 Feb 2018, 22:11

Re: Wemos D1 Mini works with 1mb but not 4mb flash

#5 Post by spachal » 05 May 2018, 17:45

Hi, I'm trying to test this 'special version', here are my results:

ESP_Easy_mega-20180504-1-g92680c5_normal_ESP8266_4096.bin
- everything seems to be OK, after flash there is vissible AP, I can configure wifi settings, seems stable

ESP_Easy_mega-20180504-1-g92680c5_test_ESP8266_4096.bin
- flashing same as normal version, after configuring wifi connection, there is bootloop

Code: Select all

206027 : WIFI : Connecting wlandev attempt #0
206125 : WIFI : Connected! AP: wlandev (00:0D:0B:6E:E6:CE) Ch: 6 Duration: 97 ms
207165 : WIFI : DHCP IP: 192.168.x (ESP-Easy-0) GW: 192.168.x SN: 255.255.255.0   duration: 1040 ms
211512 : WD   : Uptime 4 ConnectFailures 0 FreeMem 13256
215716 : WIFI : Disconnected! Reason: '(200) Beacon timeout' Connected for 9582 ms
216027 : WIFI : Connecting wlandev attempt #0
216089 : WIFI : Disconnected! Reason: '(201) No AP found' Connected for 61 ms
218027 : WIFI : Connecting wlandev attempt #1

ESP_Easy_mega-20180504-1-g92680c5_dev_ESP8266_4096.bin
- flashing wo problems, after reset log seems to be OK, but AP is vissible only for a few moments, I can't connect
- after a few resets log still OK (AP mode is running), but AP 'ESP_Easy_0' is not vissible at all

Code: Select all

INIT : Booting version: mega-20180505_TD-er (ESP82xx Core 2_4_1, NONOS SDK 2.2.1(cfd48f3), LWIP: 2.0.3)
100 : INIT : Warm boot #2
102 : FS   : Mounting...
128 : FS   : Mount successful, used 75802 bytes of 957314
448 : CRC  : program checksum       ...OK
454 : CRC  : SecuritySettings CRC   ...OK
455 : CRC  : binary has changed since last save of Settings
561 : INIT : Free RAM:21448
562 : INIT : I2C
562 : INIT : SPI not enabled
578 : INFO : Plugins: 72 [Normal] [Testing] [Development] (ESP82xx Core 2_4_1, NONOS SDK 2.2.1(cfd48f3), LWIP: 2.0.3)
579 : WIFI : No valid wifi settings
581 : WIFI : Could not connect to AP!
584 : WIFI : Set WiFi to AP
1507 : WIFI : AP Mode ssid will be ESP_Easy_0 with address 192.168.4.1
1513 : WD   : Uptime 0 ConnectFailures 0 FreeMem 19072

ESP_Easy_mega-20180504-1-g92680c5_test_ESP8285_1024.bin
- I also tried this 1M version
- flash again no problems, after reset I can see AP, I can connect it
- in wizard I can see all AP's around, when I choose my dev router and put pass, I receive '(201) No AP found' Connected'
- when I try to configure AP manually (the same AP and pass), it works ..

Code: Select all

INIT : Booting version: mega-20180505_TD-er (ESP82xx Core 2_4_1, NONOS SDK 2.2.1(cfd48f3), LWIP: 2.0.3)
315 : INIT : Warm boot #4
318 : FS   : Mounting...
790 : FS   : Mount successful, used 0 bytes of 113201
RESET: Resetting factory defaults...
RESET: Warm boot, reset count: 0
RESET: formatting...
RESET: formatting done...
6767 : FILE : Saved config.dat
7024 : FILE : Saved security.dat
RESET: Succesful, rebooting. (you might need to press the reset button if you've justed flashed the firmware)

 ets Jan  8 2013,rst cause:2, boot mode:(3,6)

load 0x4010f000, len 1384, room 16
tail 8
chksum 0x2d
csum 0x2d
v614f7c32
~ld
   ▒U100 :

INIT : Booting version: mega-20180505_TD-er (ESP82xx Core 2_4_1, NONOS SDK 2.2.1(cfd48f3), LWIP: 2.0.3)
100 : INIT : Warm boot #5
102 : FS   : Mounting...
108 : FS   : Mount successful, used 75802 bytes of 113201
429 : CRC  : program checksum       ...OK
436 : CRC  : SecuritySettings CRC   ...OK
436 : CRC  : binary has changed since last save of Settings
455 : INIT : Free RAM:21496
455 : INIT : I2C
455 : INIT : SPI not enabled
472 : INFO : Plugins: 71 [Normal] [Testing] (ESP82xx Core 2_4_1, NONOS SDK 2.2.1(cfd48f3), LWIP: 2.0.3)
472 : WIFI : No valid wifi settings
473 : WIFI : Could not connect to AP!
477 : WIFI : Set WiFi to AP
1399 : WIFI : AP Mode ssid will be ESP_Easy_0 with address 192.168.4.1
1407 : WD   : Uptime 0 ConnectFailures 0 FreeMem 18816
14354 : AP Mode: Client connected: 10:F1:F2:09:41:56 Connected devices: 1
14357 : Webserver: start
14372 : AP Mode: Client disconnected: 10:F1:F2:09:41:56 Connected devices: 0
17816 : AP Mode: Client connected: 10:F1:F2:09:41:56 Connected devices: 1
26911 : WIFI : Set WiFi to AP
31406 : WD   : Uptime 1 ConnectFailures 0 FreeMem 15216
35252 : WIFI : Credentials Changed, retry connection. SSID: wlandev
35277 : WIFI : Set WiFi to AP+STA
35309 : WIFI : Connecting wlandev attempt #0
37509 : WIFI : Disconnected! Reason: '(201) No AP found' Connected for 2199 ms
61406 : WD   : Uptime 1 ConnectFailures 0 FreeMem 14064
71591 : WIFI : Credentials Changed, retry connection. SSID: wlandev
71616 : WIFI : Connecting wlandev attempt #0
76129 : WIFI : Connected! AP: wlandev (00:0D:0B:6E:E6:CE) Ch: 6 Duration: 4512 ms
77173 : WIFI : DHCP IP: 192.168.x (ESP-Easy-0) GW: 192.168.x SN: 255.255.255.0   duration: 1043 ms
77615 : FILE : Saved config.dat
77870 : FILE : Saved security.dat
84932 : AP Mode: Client disconnected: 10:F1:F2:09:41:56 Connected devices: 0
91406 : WD   : Uptime 2 ConnectFailures 0 FreeMem 14544
Setup:
- bins from provided link (ZIP file)
- hw is nodeMCU V3 32MB
- sw NodeMCU-PyFlasher-3.0-x64, because there is option for Erase flash memory
- available AP with 2.4GHz, DHCP with reserved IP depending on MAC addr
- each time I disconnect nodeMCU from power (microUSB) and erase flash memory, so it should be clean install

So for testing purposes, I keep there last bin in modeMCU (test version, because I need HTTP Advanced controller available). I restore my configuration there, simple one DHT11, two controllers, no rules (http://www.letscontrolit.com/forum/view ... f=6&t=5298). And see if it's stable, because my last configuration had a lot of reboots (appr. 5-10 per hour).
Please excuse my English, thanks!

spachal
Normal user
Posts: 55
Joined: 22 Feb 2018, 22:11

Re: Wemos D1 Mini works with 1mb but not 4mb flash

#6 Post by spachal » 05 May 2018, 19:41

After few hours .. it's not stable. 20 reboots during two hours.

Mainly this problem:

Code: Select all

Panic /home/travis/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/core_esp8266_main.cpp:130 loop_task

ctx: sys 
sp: 3ffffdd0 end: 3fffffb0 offset: 01b0

>>>stack>>>
3fffff80:  3fff803c 3fff802c 3fffdab0 3fff3ae0  
3fffff90:  00000000 3fffdad0 3fff3ad4 40257f61  
3fffffa0:  40000f49 3fffdab0 3fffdab0 40000f49  
<<<stack<<<
Please excuse my English, thanks!

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

Re: Wemos D1 Mini works with 1mb but not 4mb flash

#7 Post by BertB » 10 May 2018, 11:38

I am having the same issues. Also after building it several times, using Platformio.
With Arduino IDE, which esp8266 firmware do I need? 2.3.0 or 2.4.0?

Post Reply

Who is online

Users browsing this forum: No registered users and 108 guests