-->
Page 1 of 1

ESP8266 - don’t work properly after increase code size

PostPosted: Mon Aug 13, 2018 3:51 pm
by Alberto Fierro
Hi All,

Let me explain, I'm using PlatformIO to write my code and I did some quick test with a ESP8266 and they worked without problem (I could connect and use it without problem).

But after to increase the code with the real behavior that I want, it stop to work…or well… it doesn’t work properly…

I’m using ESP8266 512k, and I’m using spiff data and C++ code, basically after to push it the wifi is detected but when I try to connect the network disappears (it seems to switch the wifi off), or sometimes it spent a lot of time getting the IP and suddenly it stops and restart the wifi network.

When I upload the code I see this information:

Code: Select all
Building .pioenvs/esp01/firmware.bin
Retrieving maximum program size .pioenvs/esp01/firmware.elf
Checking size .pioenvs/esp01/firmware.elf
Memory Usage -> http://bit.ly/pio-memory-usage
DATA: [==== ] 44.0% (used 36016 bytes from 81920 bytes)
PROGRAM: [======= ] 74.2% (used 322224 bytes from 434160 bytes)


I guess that probably I’m in the limit of the memory usage… I don’t remember very well, but I think that I’ve read something about it.

So do you have any suggestion?, maybe something to debug or profiling the code?

Thanks in advance!!