So you're a Noob? Post your questions here until you graduate! Don't be shy.

User avatar
By Mysterarts
#83324 I just tried static IP Config on your suggestion...
It "seems" more stable: 3 intensive tests (with manual reset and deco/reco) without any errors. Then the 4th upload gives me:

Code: Select allConnecting to Livebox-90B4

WiFi connected
IP address:
192.168.1.50
Netmask: 255.255.255.0
Gateway: 192.168.1.1
connecting to wifitest.adafruit.com
Requesting URL: /testwifi/index.html

Exception 28: LoadProhibited: A load referenced a page mapped with an attribute that does not permit loads
PC: 0x4020ab82: pgm_read_byte_inlined at /home/earle/src/esp-quick-toolchain/arena.x86_64/newlib/xtensa-lx106-elf/newlib/targ-include/sys/pgmspace.h line 60
EXCVADDR: 0x00000064

>>>stack>>>
Decoding stack results
0x402083bd: _vsnprintf_r at /home/earle/src/esp-quick-toolchain/repo/newlib/newlib/libc/stdio/vsnprintf.c line 73
0x40208400: vsnprintf at /home/earle/src/esp-quick-toolchain/repo/newlib/newlib/libc/stdio/vsnprintf.c line 42
0x402031a0: ets_printf_P(char const*, ...) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/cores/esp8266/core_esp8266_postmortem.cpp line 80
0x4020ab82: pgm_read_byte_inlined at /home/earle/src/esp-quick-toolchain/arena.x86_64/newlib/xtensa-lx106-elf/newlib/targ-include/sys/pgmspace.h line 60
0x40203338: __wrap_system_restart_local() at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/cores/esp8266/core_esp8266_postmortem.cpp line 126
0x4020ab82: pgm_read_byte_inlined at /home/earle/src/esp-quick-toolchain/arena.x86_64/newlib/xtensa-lx106-elf/newlib/targ-include/sys/pgmspace.h line 60
0x4020ab82: pgm_read_byte_inlined at /home/earle/src/esp-quick-toolchain/arena.x86_64/newlib/xtensa-lx106-elf/newlib/targ-include/sys/pgmspace.h line 60
0x4020ab82: pgm_read_byte_inlined at /home/earle/src/esp-quick-toolchain/arena.x86_64/newlib/xtensa-lx106-elf/newlib/targ-include/sys/pgmspace.h line 60
0x4020ab82: pgm_read_byte_inlined at /home/earle/src/esp-quick-toolchain/arena.x86_64/newlib/xtensa-lx106-elf/newlib/targ-include/sys/pgmspace.h line 60
0x4020ab82: pgm_read_byte_inlined at /home/earle/src/esp-quick-toolchain/arena.x86_64/newlib/xtensa-lx106-elf/newlib/targ-include/sys/pgmspace.h line 60
0x4020afa8: _svfprintf_r at /home/earle/src/esp-quick-toolchain/repo/newlib/newlib/libc/stdio/nano-vfprintf.c line 612
0x4020ac62: __ssputs_r at /home/earle/src/esp-quick-toolchain/repo/newlib/newlib/libc/stdio/nano-vfprintf.c line 233
0x4020ae4c: _svfprintf_r at /home/earle/src/esp-quick-toolchain/repo/newlib/newlib/libc/stdio/nano-vfprintf.c line 531
0x402083bd: _vsnprintf_r at /home/earle/src/esp-quick-toolchain/repo/newlib/newlib/libc/stdio/vsnprintf.c line 73
0x40208400: vsnprintf at /home/earle/src/esp-quick-toolchain/repo/newlib/newlib/libc/stdio/vsnprintf.c line 42
0x402046b0: malloc(size_t) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/cores/esp8266/umm_malloc/umm_malloc.cpp line 1677
0x402031a0: ets_printf_P(char const*, ...) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/cores/esp8266/core_esp8266_postmortem.cpp line 80
0x40215a70: mem_malloc at core/mem.c line 210
0x4020ce88: memp_malloc at core/memp.c line 356
0x4020c785: glue2esp_linkoutput at glue-esp/lwip-esp.c line 299
0x40211703: tcp_write at core/tcp_out.c line 812
0x4020ca07: new_linkoutput at glue-lwip/lwip-git.c line 235
0x40203338: __wrap_system_restart_local() at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/cores/esp8266/core_esp8266_postmortem.cpp line 126
0x40211703: tcp_write at core/tcp_out.c line 812
0x40211703: tcp_write at core/tcp_out.c line 812
0x40211703: tcp_write at core/tcp_out.c line 812
0x40211703: tcp_write at core/tcp_out.c line 812
0x40214fa4: ip4_output_if_opt_src at core/ipv4/ip4.c line 1007
0x40211703: tcp_write at core/tcp_out.c line 812
0x40201fd4: ClientContext::_write_some() at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/libraries/ESP8266WiFi/src/include/ClientContext.h line 505
0x4020ce4c: do_memp_malloc_pool at core/memp.c line 254
0x4020ce88: memp_malloc at core/memp.c line 356
0x402111e1: tcp_create_segment at core/tcp_out.c line 190
0x40202c1c: String::changeBuffer(unsigned int) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/cores/esp8266/WString.cpp line 179
0x402115e8: tcp_write at core/tcp_out.c line 666
0x40201fd4: ClientContext::_write_some() at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/libraries/ESP8266WiFi/src/include/ClientContext.h line 505
0x4020c666: operator new(unsigned int) at ../../../../../dl/gcc-xtensa/libstdc++-v3/libsupc++/new_op.cc line 52
0x4020206e: ClientContext::_write_from_source(DataSource*) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/libraries/ESP8266WiFi/src/include/ClientContext.h line 445
0x40202131: WiFiClient::write(unsigned char const*, unsigned int) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/libraries/ESP8266WiFi/src/include/ClientContext.h line 361
0x402028ac: Print::print(String const&) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/cores/esp8266/Print.h line 63
0x40201299: loop() at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/cores/esp8266/WString.h line 289
0x4020115c: setup() at /Users/Arthur/Documents/Arduino/HuzzahWifiTest/HuzzahWifiTest.ino line 44
0x40203028: loop_wrapper() at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/cores/esp8266/core_esp8266_main.cpp line 125
<<<stack<<<

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

load 0x4010f000, len 1384, room 16
tail 8
chksum 0x2d
csum 0x2d
v8b899c12
~ld


Connecting to Livebox-90B4

WiFi connected
IP address:
192.168.1.50
Netmask: 255.255.255.0
Gateway: 192.168.1.1
connecting to wifitest.adafruit.com
Requesting URL: /testwifi/index.html

Exception 0: Illegal instruction
PC: 0x40211703: tcp_write at core/tcp_out.c line 812
EXCVADDR: 0x00000064

>>>stack>>>
Decoding stack results
0x4020c666: operator new(unsigned int) at ../../../../../dl/gcc-xtensa/libstdc++-v3/libsupc++/new_op.cc line 52
0x4020206e: ClientContext::_write_from_source(DataSource*) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/libraries/ESP8266WiFi/src/include/ClientContext.h line 445
0x40202131: WiFiClient::write(unsigned char const*, unsigned int) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/libraries/ESP8266WiFi/src/include/ClientContext.h line 361
0x402028ac: Print::print(String const&) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/cores/esp8266/Print.h line 63
0x40201299: loop() at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/cores/esp8266/WString.h line 289
0x4020115c: setup() at /Users/Arthur/Documents/Arduino/HuzzahWifiTest/HuzzahWifiTest.ino line 44
0x40203028: loop_wrapper() at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/cores/esp8266/core_esp8266_main.cpp line 125
<<<stack<<<

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

load 0x4010f000, len 1384, room 16
tail 8
chksum 0x2d
csum 0x2d
v8b899c12
~ld


Connecting to Livebox-90B4

WiFi connected
IP address:
192.168.1.50
Netmask: 255.255.255.0
Gateway: 192.168.1.1
connecting to wifitest.adafruit.com
Requesting URL: /testwifi/index.html

Exception 0: Illegal instruction
PC: 0x40211703: tcp_write at core/tcp_out.c line 812
EXCVADDR: 0x00000064

>>>stack>>>
Decoding stack results
0x4020c666: operator new(unsigned int) at ../../../../../dl/gcc-xtensa/libstdc++-v3/libsupc++/new_op.cc line 52
0x4020206e: ClientContext::_write_from_source(DataSource*) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/libraries/ESP8266WiFi/src/include/ClientContext.h line 445
0x40202131: WiFiClient::write(unsigned char const*, unsigned int) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/libraries/ESP8266WiFi/src/include/ClientContext.h line 361
0x402028ac: Print::print(String const&) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/cores/esp8266/Print.h line 63
0x40201299: loop() at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/cores/esp8266/WString.h line 289
0x4020115c: setup() at /Users/Arthur/Documents/Arduino/HuzzahWifiTest/HuzzahWifiTest.ino line 44
0x40203028: loop_wrapper() at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/cores/esp8266/core_esp8266_main.cpp line 125
<<<stack<<<

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

load 0x4010f000, len 1384, room 16
tail 8
chksum 0x2d
csum 0x2d
v8b899c12
~ld


But at least the connexion to the router is really fast with this changes!

About lwIP, I admit to having some difficulty understanding what it is and how change it (even with google ^^). Is selecting "v1.4 compile from source" in the tool menu enough?

I tried that (with static IP still there, does that make sense?), the connexion to the router is slower and the result seems similar (still some rare varied exceptions: 28, 29, 2, 0).

Thanks for taking the time to answering me :)
User avatar
By btidey
#83332 I have been using 2.5.2 for a while now and have not experienced any wifi / exception issues. This is using WifiManager, normal dhcp etc.

I notice the original sketch had delay(5000) in the loop. That is not a good idea and can lead to watchdog issues. Use smaller delays like 1 second and either repeat or add some counter logic in the loop.

Have you eliminated any hardware issues as contributing to your issues? Power supply needs to provide solid voltage (3.3V or %V if NodeMCU) when supplying 0.5A
User avatar
By Mysterarts
#83351 Hi,

I'm a little ashamed, it was indeed the power supply. I thought about it when I started to investigated and used a powered USB hub which was usually useful in this case, without success. And because it was working before and the HUZZAH (my board with the ESP) seemed until now less sensible to the power variations than a bare ESP, I didn't push the investigation in this direction :roll:

But connected to the 5V of the Arduino (with the 3.3V converter of the HUZZAH) rather than with the FTDI cable on my PC, it runs smoothly.

Sorry for this beginner's mistake and thank you for your answers (I also discovered the static IP ^^)!