Hello
I had this all working well under IDE 1.8.x Now that I’ve transitioned to IDE 2.3.4 lots of compiler gripes, which I think I have fixed, although this feels like a lib-lib compatibility issue. I’ve gone through the libs and think I’m up to date.
Code follows:
#include “page_servers.h”
//Serial.println(“Setup: >>>>> ok at line after #include pageserver.h”);
delay(50);
server.serveStatic(“/”, SPIFFS, “/”);
delay(50);
Serial.println(“Setup: >>>>> ok at server.serveStatic”);
server.addHandler(&ws);
Serial.println(“Setup: >>>>> ok at server.addHandler”); <<<< this line executes OKserver.begin(); <<<<<<<<<<<<< this line is when the panic occurs
Serial.println(“Setup: >>>>> ok at server.begin”);
Serial Monitor says:
assert failed: tcp_alloc /IDF/components/lwip/lwip/src/core/tcp.c:1851 (Required to lock TCPIP core functionality!)
Backtrace: 0x400826c9:0x3ffb1fd0 0x4008eebd:0x3ffb1ff0 0x40095172:0x3ffb2010 0x400fdfef:0x3ffb2140 0x400fe169:0x3ffb2160 0x400d8fa0:0x3ffb2180 0x400e1e25:0x3ffb21d0 0x400d53a6:0x3ffb21f0 0x400ea947:0x3ffb2270 0x4008fc06:0x3ffb2290
ANY SUGGESTIONS?
Thanks,
Barry
Hi.
Check the solution here: https://rntlab.com/question/solvedassert-failed-tcp_alloc-idf-components-lwip-lwip-src-core-tcp-c1851-required-to-lock-tcpip-core-functionality/
Regards.
Sara