Page 1 of 1

ESP_ERR_ESPNOW_NO_MEM

Posted: Sat Oct 03, 2020 5:31 pm
by Rubbernose
Hello,

i used the example code for ESPNow for my project for weeks now.
The project grows, but i changed nothing on the ESPNow code beause it works
Now i got the Message: ESP_ERR_ESPNOW_NO_MEM (out of memory).
After download and studying the 1741 pages of the documentation i know that ESP_ERR_ESPNOW_NO_MEM means: out of memory.
But how to solve that?
I restarted and replaced (!) both ESP32 Wroom 32 and both PC (to check the serial monitor).
But the error still exists after some seconds, that' weird!
What does: ESP_ERR_ESPNOW_NO_MEM mean?

Re: ESP_ERR_ESPNOW_NO_MEM

Posted: Sun Oct 04, 2020 12:26 pm
by Rubbernose
Solved! An interrupt disturbed the ESPNow routine.

My thougts were:
ESP_ERR_ESPNOW_NO_MEM is caused by an error after sending.
Was it a n error from receiver (response) or from sender? Are there further informations?

Re: ESP_ERR_ESPNOW_NO_MEM

Posted: Thu Feb 25, 2021 10:32 am
by neel_basu
I am also encountering similar issues. Too frequent send is causing ESP_ERR_ESPNOW_NO_MEM. How did you solve that ? What interrupt you are talking about ?

Re: ESP_ERR_ESPNOW_NO_MEM

Posted: Thu Oct 21, 2021 5:32 pm
by moefear85
I'm experiencing the same issue. I think just before/after calling esp_now_send(...), you have to un-/lock something, ie wrap the send statement in a critical section, so that it doesn't get interrupted? It's just a guess that I will be trying myself later.