RP2350 PSRAM: how to wire, how to use?


Author Message
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4370
Posted: 03:53pm 26 Aug 2024      

  matherp said  Things like the block table have to be permanently allocated.  MmBasic doesn't use Malloc. To use the PSRAM you just need to set the CS pin to the appropriate alternate function and set the memory writable in zip ctrl


If you wanted to be tricksy then it may be possible to arrange the block table and the MMBasic heap to be contiguous (block table followed by heap) then you can on startup adjust the base pointer from which the running program can be allocated heap space depending on whether you need the bigger block table ... or not ... it's not really important to me .

Best wishes,

Tom
Edited 2024-08-27 01:53 by thwill