Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4997

MicroPython • Re: Unable to allocate memory on a raspberry pico w

$
0
0
GC: total: 166016, used: 44352, free: 121664
No. of 1-blocks: 39, 2-blocks: 12, max blk sz: 2048, max free sz: 2306
max blk sz: 2048 blocks of 16 bytes = 32,768 bytes (largest object already allocated)
max free sz: 2306 blocks of 16 bytes = 36,896 bytes (largest free continuous memory available)
by comparing with GC: free: 121,664 (bytes) you can say the memory is quite fragmented (or full of garbage usually cleaned by gc.collect()).
Even more, the memory map (or whatever it is) ends with the following:
Code: Select all
1f800: ======..........................................................
(35 lines all free)
28800: ........
which means that addresses from 0x1f800 to 0x28800 are free, which is like 36kb?
Every character in memory map represents a 16 byte block, every full line is 64 blocks of 16 bytes =1024 bytes

Statistics: Posted by gmx — Thu Jan 16, 2025 1:08 am



Viewing all articles
Browse latest Browse all 4997

Trending Articles