pico-sdk icon indicating copy to clipboard operation
pico-sdk copied to clipboard

Question: PSRAM, is there a way of setting this up as a separate heap?

Open AndrewCapon opened this issue 1 year ago • 4 comments

Hi Guys,

I have a Pimoroni Pico Plus 2 here, and I have the PSRAM mapped and working

I have had a look through the sdk docs and I am not sure how to set this memory up as some form of secondary heap, is there anything built into the sdk for doing this?

Many thanks

Andy

AndrewCapon avatar Aug 13 '24 16:08 AndrewCapon

not currently

kilograham avatar Aug 14 '24 19:08 kilograham

Thanks for the info.

AndrewCapon avatar Aug 14 '24 21:08 AndrewCapon

We at SparkFun have a working solution here, in case that helps: https://github.com/sparkfun/sparkfun-pico?tab=readme-ov-file#replacing-the-integrated-memory-allocator-routines

sfe-SparkFro avatar Aug 19 '24 16:08 sfe-SparkFro

Thanks for the info.

I ended up knocking a c++ wrapper up: https://github.com/AndrewCapon/PicoPlusPsram

AndrewCapon avatar Aug 19 '24 18:08 AndrewCapon