Skip to content

cpu/esp32: instabilities in multiheap memory management #11941

@gschorcht

Description

@gschorcht

Description

There seems to be an instability in the multiheap implementation of ESP32. If the WiFi interface is used with module esp_now or esp_wifi, the multiheap memory management of the SDK is used extensively. After some time the ESP32 stops to work and a short error message can be observed in the terminal

> CORRUPT

before it blocks completely. After that ESP32 can be only reactivated by hardware reset.

This error message is caused by an assertion in the mutiheap implementation and should normally looks like:

CORRUPT HEAP: multi_heap.c:428 detected at 0x3FC00123

Steps to reproduce the issue

Setup an ESP-NOW network of two ESP32 nodes. For that purpose compile and flash two nodes with:

USEMODULE=esp_now make BOARD=esp32-wroom-32 -C examples/gnrc_networking flash

After that, connect to the nodes with a terminal program and use some commands like ifconfig and ping6 to check whether it works and wait. After some time there should come a CORRUPT message.

Metadata

Metadata

Assignees

Labels

Platform: ESPPlatform: This PR/issue effects ESP-based platformsType: bugThe issue reports a bug / The PR fixes a bug (including spelling errors)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions