Open sky5media opened 4 years ago
Same problem here. Did you find a solution in the meantime?
Bump this issue - having the same one here... Any solution for this?
Hello there, I have found a similar problem using many heapcaps* functions when CONFIG_SPIRAM_USE_CAPS_ALLOC=y
after calling esp_himem_map(...) and esp_himem_unmap(...).
Probably this is related to this issue also, but I am using currently a ESP32 WROVER When i produce reproductible evidences i will create a pull request with the bugfix then you can test it.
It seems esp_psram_init() miscalculates the correct heap blocks when himem is enabled and reserves some memory.
@lucaskdc Which esp-idf version are you using?
Environment
Problem Description
I am trying to build latest micropython for ESP32-CAM. Board has 8M PSRAM chip (IPUS IPS1704L-SQ)
When trying to allocate 160 KB buffer with:
heap_caps_calloc(_fb2->size, 1, MALLOC_CAP_SPIRAM)
I am getting Guru Meditation ErrorGuru Meditation Error: Core 1 panic'ed (LoadStoreAlignment). Exception was unhandled.
I tried both CONFIG_SPIRAM_USE_CAPS_ALLOC=y and CONFIG_SPIRAM_USE_MALLOC=y same result
Some debugging info:
When dumping or trying to get info about heap with MALLOC_CAP_SPIRAM getting same Guru Meditation Error after which device restarts
Same behavior on 2 different boards of the same type
Board images:
![20200416_221634](https://user-images.githubusercontent.com/50394555/79497487-72247980-8030-11ea-97c3-4626659f26a6.jpg)
Expected Behavior
Buffer should be allocated
Actual Behavior
Guru Meditation Error: Core 1 panic'ed (LoadStoreAlignment). Exception was unhandled.
Code to reproduce this issue
Debug Logs
Other items if possible
sdkconfig:
I tried either of CONFIG_SPIRAM_USE_MEMMAP CONFIG_SPIRAM_USE_CAPS_ALLOC CONFIG_SPIRAM_USE_MALLOC But none of the setting increase heap size