Posted: 08:54pm 19 Nov 2026 Copy link to clipboard
Nordhesse Newbie
Hello forum i am new here and i am new with PicoMite. I have started my first project and was stopped when i used an array of structures. If the size of the array exceeds 256 bytes the error „Not enough memory“ appears.
Target: Pico RP2040, PicoMite V6.03
My code
TYPE StructRolllade AufZeit AS INTEGER AbZeit AS INTEGER Ort AS STRING LENGTH 19 END TYPE
DIM Rolllade(9) AS StructRolllade
I hope someone can help me Guido
Posted: 09:41pm 19 Nov 2026 Copy link to clipboard
AlbertR Senior Member
Hi Guido, welcome to the BackShed.
Is that really the entire program, and is that the exact error message? Arrays use heap memory, so the message should be "Not enough Heap memory"
from the manual
check the heap before the declaration with
print MM.INFO(HEAP)
Regards Albert Edited 2026-11-20 07:42 by AlbertR
Posted: 10:22pm 19 Nov 2026 Copy link to clipboard
Nordhesse Newbie
Hi Albert,
thank you for your help. But, my problem disappeared. What did I do? I've disabled all other code and there was no error. Then I deleted some not used code. And then i actived the other disabled code step by step. The error did not reappear.
I think the "not used code" was the problem. Unfortunately, I can no longer reproduce the error.
Anyway, thanks again. Guido
Posted: 05:47am 20 Nov 2026 Copy link to clipboard
AlbertR Senior Member
Ah,
glad it's working now—or maybe not. It actually always drives me crazy when I can't reproduce these problems, just so I can figure out what caused them. On the one hand, if it was my mistake, I want to avoid making the same one again; on the other hand, I want to be able to give Peter a clear description of the problem.
And we got one with the V6.03! With the program
Type struct rolllade AufZeit As integer AbZeit As integer ort As integer End Type
Dim rolllade(5050) As Struct rolllade
this produces endless "Not enough Heap memory" but it's fixed in version 7.00
Albert
Posted: 10:04am 20 Nov 2026 Copy link to clipboard
karlelch Guru
Hi AlbertR,
there should not be a space between "struct" and "rolllade"
Type StructRolllade AufZeit As integer AbZeit As integer ort As integer End Type
Dim rolllade(5050) As StructRolllade
That a structure is defined, is here implicit by "Type"