Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 21:21 05 Sep 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Error : Not enough Global variable memory

Author Message
ville56
Senior Member

Joined: 08/06/2022
Location: Austria
Posts: 231
Posted: 05:57am 03 Sep 2025
Copy link to clipboard 
Print this post

Just ran into that error ...

putting a "memory" statement just before the "static" gives the following memory allocation situation.

-----------------------------------
Program:
 49K (38%) Program (1589 lines)
 79K (62%) Free

Saved Variables:
 16K (100%) Free

RAM:
 33K (20%) 258 Variables
  3K ( 1%) General
120K (79%) Free
[1468] Static integer last_state
Error : Not enough Global variable memory
-----------------------------------

setup is
PicoMite MMBasic RP2040 Edition V6.00.03
OPTION DISPLAY 40, 132
OPTION LCDPANEL ILI9488W, RLANDSCAPE,GP8,GP15,GP9,GP13
OPTION GUI CONTROLS 71
OPTION SDCARD GP22

Seems to me as if there is plenty of memory left, so I'm violating something else. Has anybody a clue for me?

thanks in advance,
Gerald
Edited 2025-09-03 15:59 by ville56
                                                                 
73 de OE1HGA, Gerald
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6300
Posted: 06:07am 03 Sep 2025
Copy link to clipboard 
Print this post

Too many global variables
See manual page 82,83
VK7JH
MMedit
 
ville56
Senior Member

Joined: 08/06/2022
Location: Austria
Posts: 231
Posted: 06:25am 03 Sep 2025
Copy link to clipboard 
Print this post

Jim, many thanks. This is what I was searching for but didn't find. I'm getting old ....
                                                                 
73 de OE1HGA, Gerald
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025