"Not enough heap memory"


Author Message
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3751
Posted: 02:49pm 02 Apr 2026      

WeAct RP2350B 48-pin module with ILI9488 LCD:

  Quote  PicoMite MMBasic RP2350B V6.02.01RC5
OPTION SYSTEM SPI GP18,GP19,GP16
OPTION SYSTEM I2C GP10,GP11
OPTION FLASH SIZE 16777216
OPTION LIBRARY_FLASH_SIZE  52000
OPTION COLOURCODE ON
OPTION PICO OFF
OPTION CPUSPEED (KHz) 340000
OPTION DISPLAY 48, 133
OPTION LCDPANEL ILI9488, LANDSCAPE,GP24,GP23,GP21
OPTION TOUCH GP27,GP29
OPTION SDCARD GP22
OPTION PSRAM PIN GP0


MAX_RECS=5000 works for stub program; also works for PicoRR+PicoDB:

?MAX_RECS,MM.INFO(HEAP)
5000    5166336

So it looks like those big arrays of structures are in PSRAM now. And all with the change in the value of a single variable.

  Quote  > memory
Program:
 88K (26%) Program (2489 lines)
240K (74%) Free

Library:
 51K (15%) Library
277K (85%) Free

Saved Variables:
 16K (100%) Free

RAM:
909K (13%) 279 Variables
455K ( 6%) General
5155K (81%) Free


Thanks so much for all your efforts.