• 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

[SOLVED]assert failed: tcp_alloc /IDF/components/lwip/lwip/src/core/tcp.c:1851 (Required to lock TCPIP core functionality!)

Q&A Forum › Category: ESP32 › [SOLVED]assert failed: tcp_alloc /IDF/components/lwip/lwip/src/core/tcp.c:1851 (Required to lock TCPIP core functionality!)
0 Vote Up Vote Down
Sara Santos Staff asked 4 months ago

ISSUE:

In most of our web server and MQTT projects, we use the following libraries (that are currently deprecated):

  • ESPASyncWebServer: https://github.com/me-no-dev/ESPAsyncWebServer
  • AsyncTCP: https://github.com/me-no-dev/asynctcp

Using these libraries will result in the following error and constant rebooting of the ESP32:

assert failed: tcp_alloc /IDF/components/lwip/lwip/src/core/tcp.c:1851 (Required to lock TCPIP core functionality!)

 

SOLUTION:

To fix this issue, you must use the newest fork of those libraries, available on the following links:

  • ESPAsyncWebServer: https://github.com/ESP32Async/ESPAsyncWebServer (at least version 3.6.2)
  • AsyncTCP: https://github.com/ESP32Async/AsyncTCP (at least version 3.3.2)

 

Follow these instructions to solve the issue:

  • Go to the Arduino Libraries Manager: Sketch > Include Library > Manage Libraries
  • UNINSTALL any previous versions of the ESPAsyncWebServer and AsyncTCP libraries
  • Now, you can install the latest version of the new fork.  Follow the next instructions:

To guarantee that you’re using the latest version of the ESPAsyncWebServer and AsyncTCP libraries, please install them via ZIP folder (don’t use the Library Manager that will currently install an older version with issues).

Click the following links to download the library files.

  • Click here to download the ESPAsyncWebServer
  • Click here to download the Async TCP library.

In your Arduino IDE, go to Sketch > Include Library > Add .zip Library and select the libraries you’ve just downloaded.

 

Compile your code again. This will work with the latest version of the ESP32 core.

 

 

 

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.