PSRAM disappears from get_free_heap_size around esp32_wifi (init and/or start)
Posted: Sun Jan 28, 2018 9:59 am
I've added some prints in my application, using esp_get_free_heap_size(), to find out where heap becomes smaller and got this:
After commenting both functions,(init and start) heap stays the same.
I'm not sure, is it esp32_wifi_init or esp_32_wifi_start. Picture changed during testing from time to time.
BTW, I checked heap after Adding pool of 4096K of external SPI memory to heap allocator, and its more than 4MB, from there to app_main in main.c 1MB disappears, but thats a different problem, at least in my eyes.
I checked with Enable SO_REUSEADDR option both enabled and disabled, problem stays
After commenting both functions,(init and start) heap stays the same.
I'm not sure, is it esp32_wifi_init or esp_32_wifi_start. Picture changed during testing from time to time.
BTW, I checked heap after Adding pool of 4096K of external SPI memory to heap allocator, and its more than 4MB, from there to app_main in main.c 1MB disappears, but thats a different problem, at least in my eyes.
Code: Select all
WARNING: before esp32_wifi_init: 2997272
WARNING: esp32_wifi_init done: 2940184
WARNING: before esp_wifi_start: 2940184
WARNING: esp_wifi_start done: 53772