I have a complex firmware with lot of functionality for a unique design board withESP32-WROVER-IE-N16R8. Now as I merge different functions together I ran into issue with SPIFFS.
Especially calling SPIFFS.begin(true) funtion, it returns with ESP_ERR_NO_MEM. Previously it was working well with webserver + ethernet but now when I am using webserver + wifi + spi I ran into this issue.
What can be the issue? How can allocate more memory for that?
When building the code I have this memory usage:
Any idea will be welcomed.
Thanks!
Calling SPIFFS.begin(true) -> esp_vfs_spiffs_register returns with ESP_ERR_NO_MEM
-
- Posts: 832
- Joined: Mon Jul 22, 2019 3:20 pm
Re: Calling SPIFFS.begin(true) -> esp_vfs_spiffs_register returns with ESP_ERR_NO_MEM
SPIFFS.begin is a bool, it returns true or false. What do you mean by this?
If you are getting out of memory messages, those are about active RAM, not firmware space. Use ESP.getFreeHeap() or heap_caps_get_free_size() to find out how much memory is available.
If you are getting out of memory messages, those are about active RAM, not firmware space. Use ESP.getFreeHeap() or heap_caps_get_free_size() to find out how much memory is available.
Re: Calling SPIFFS.begin(true) -> esp_vfs_spiffs_register returns with ESP_ERR_NO_MEM
Thanks for the suggestion! I will definitely try this out.
Yes, you are right. SPIFFS.begin returns bool. The esp_vfs_spiffs_register() function returns with the error and SPIFFS.begin just prints the error before it returns.
Yes, you are right. SPIFFS.begin returns bool. The esp_vfs_spiffs_register() function returns with the error and SPIFFS.begin just prints the error before it returns.
Re: Calling SPIFFS.begin(true) -> esp_vfs_spiffs_register returns with ESP_ERR_NO_MEM
The heap was running out... There was a dummy 32kB static allocation in my code that consumed too much memory. After removing that dummy array from the code the webserver + wifi + spi are wokring well.
Who is online
Users browsing this forum: No registered users and 38 guests