> =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 40000000It 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:
> =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 40000000That 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