Esp32S3 : How to improve external RAM usage ?
Posted: Mon Jun 12, 2023 6:39 am
Good morning,
I have a program running on an Esp32S3 having 2Mo of external RAM.
I have found how to use this external RAM with dynamic allocation using the heaps_caps_malloc function.
However, I would like to improve this memory usage and I am wondering if there is the possibility to put more things
in it, for example classes memory.
In order to instantiate classes, I am using the new operator and it seems that the classes are instantiated into internal RAM
by default.
Is there the possibility to overload the new operator so that classes memory is allocated using the heaps_caps_malloc function
or something like that ?
Do you know how to do it (If it is possible ?)
Best regards,
Thomas TRUILHE
I have a program running on an Esp32S3 having 2Mo of external RAM.
I have found how to use this external RAM with dynamic allocation using the heaps_caps_malloc function.
However, I would like to improve this memory usage and I am wondering if there is the possibility to put more things
in it, for example classes memory.
In order to instantiate classes, I am using the new operator and it seems that the classes are instantiated into internal RAM
by default.
Is there the possibility to overload the new operator so that classes memory is allocated using the heaps_caps_malloc function
or something like that ?
Do you know how to do it (If it is possible ?)
Best regards,
Thomas TRUILHE