As the title says... Chat on...

User avatar
By Eyal
#16239 This baffles me ATM. I recently acquired an esp-12 which was advertised as a 4MB version but when checked it showed 512KB:
Code: Select all> =node.flashsize()
524288
> =string.format("%x %x %x %x %x %x %x %x", node.info())
0 9 5 a05aa1 1640ef 200 0 2625a00
> =string.format("%d %d %d %d %d %d %d %d", node.info())
0 9 5 10508961 1458415 512 0 40000000

It was fast, my app reported it started (first line in init.lua) in 280ms and IP is available 770ms later.
Yesterday I updated my app (and the fw too) and noticed that the compile of the lua files (about 10) was slow. I checked the setup again and found it to now report 4MB flash:
Code: Select all> =node.flashsize()
4194304
> =string.format("%x %x %x %x %x %x %x %x", node.info())
0 9 5 a05aa1 1640ef 1000 0 2625a00
> =string.format("%d %d %d %d %d %d %d %d", node.info())
0 9 5 10508961 1458415 4096 0 40000000

That the reported size changes I consider understandable, the size test is probably unreliable. But that everything is now slower is unexpected. It now starts in 610ms and IP is available 2.7 seconds later. This change means the battery lasts less than half the time. Why the change?

My other small-flash modules (-01, -07 and -201) are still fast. The -201 while reporting small flash, compiling fast and starting fast is slow to establish wifi connection, so overall is actually in the slow class.

This may look like nitpicking but it is critical to select the proper device for a battery operated application.

This is all done with nodemcu master (git clone) and sdk 0.9.5patch1.

In summary, am I flashing it incorrectly? I flash all 4 parts (0x0, 0x1, blank and defaults). Anything else I can tweak?

TIA
User avatar
By Eyal
#16242 This is not accurate. Some modules have the standard 512KB flash but others have more. Some of mine have 4MB. These all use the esp-12 module.

Anyone recalls where the flash IDs are listed? I remember it appearing on some forum at one point.

TIA