How to use PSRAM for static definitions and malloc()?
Posted: Sat Dec 21, 2019 3:02 am
If I wish to place a static definition such as a string in PSRAM, what should I do? This doc vaguely mentions EXT_RAM_ATTR but is that the correct keyword? They mention "additional data" and BSS so I want to be clear.
Also, how do I malloc from external PSRAM? I know there is a threshold but I wish to allocate only a couple hundred bytes and don't wish to change the threshold. Is there a special malloc() function that only allocates PSRAM? Thank you! My next question will be how to switch banks but that requires me to know how to allocate first
Also, how do I malloc from external PSRAM? I know there is a threshold but I wish to allocate only a couple hundred bytes and don't wish to change the threshold. Is there a special malloc() function that only allocates PSRAM? Thank you! My next question will be how to switch banks but that requires me to know how to allocate first