• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Runtime error since updating to IDE 2.x

Q&A Forum › Category: ESP32 › Runtime error since updating to IDE 2.x
0 Vote Up Vote Down
Barry asked 2 months ago

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 OK

server.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

 

Question Tags: webserver
1 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 2 months ago

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

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.