-
-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: How can store CircularBuffer in PSRAM on ESP32? #26
Comments
You can either change the source code for your case or use a macro switch to switch to a different implementation: I might consider accepting a pull request which uses the latter, but you need to test it also against AVR8 platforms as I don't want to break the library to support a corner case. |
https://github.com/debsahu/CircularBuffer @rlogiacco I changed the array |
Sorry, I'm not an expert on ESP32, but if you found a solution I'll be very willing to publish your solution. I mean, why didn't you simply:
|
Thank you will try that, my testing ESP32 unit with PSRAM is stuck at work (future me: due to a global pandemic). I will test it out next week. |
closing this as we got no feedback from the OP |
I would like to not use the RAM on ESP32, but rather use PSRAM attached using SPI interface. Data can be stored directly on PSRAM using ps_malloc() as per esp32-hal-psram.c.
I declare
CircularBuffer<time_t, 2880> logTimeBuffer;
globally that stores stuff in regular RAM. So is there a way to call ps_malloc() to use the PSRAM?There is a good reference on doing this for ArduinoJson is here
The text was updated successfully, but these errors were encountered: