Closed kdschlosser closed 1 month ago
Could not reproduce on TTGO T7S3, which uses the same module:
all works as expected. what I can suggest:
I think you should really start posting such questions to https://github.com/orgs/micropython/discussions, the community will help. And if it turns out to be a bug, the discussion can easily be converted to a bug report. Cheers!
Same on MicroPython v1.23.0 on 2024-06-02; Generic ESP32S3 module with Octal-SPIRAM.
But, if I use the non-OCTAL version of MPY v1.23.0, the PSRAM is not detected and it gives me:
>>> gc.mem_free()
248000
Maybe, that's yours case as well
I just actually got it sorted out last night. It was a matter of the octal spiram,.
Port, board and/or hardware
ESP32-S3 N16R8
MicroPython version
1.23.0
Reproduction
micropython.mem_info()
,gc.mem_alloc()
andgc.mem_free()
are not returning the expected values. I am not 100% sure what is going on. I see in the documentation something about using a split heap but I am not able to locate anywhere in the MicroPython code any of themulti_heap_*
functions of the ESP-IDF being used. malloc and other stdlib memory functions are not going to allocate memory or free memory from an esp multi heap.I don't know if this is a bug or possibly an issue with my understanding of what is going on.... The numbers are not even close to what they should be for having an MCU that has 8mb of external SPIRAM.
Expected behaviour
For the numbers to match up properly.
Observed behaviour
Additional Information
No, I've provided everything above.
Code of Conduct
Yes, I agree