I'm using v3.3.7 on a NANO.
Using function GetFreeCount() to get the number of free system buffers, I get a value of 266. If I am following the code correctly, the buffer pool, declared in buffers.cpp (line 85), is created with 256 buffers. Am I looking in the wrong place?
Free Buffers
Re: Free Buffers
System allocates any extra SRAM availible to SRAM pool buffers, so 2546 in SDRAM and whatever space is left in SRAM.
SRAM buffers are much faster..
SRAM buffers are much faster..
-
- Posts: 630
- Joined: Mon May 12, 2008 10:55 am
Re: Free Buffers
I'm not following. I was just trying to determine the percentage of system buffers used, as was suggested. If 266 is the number of free buffers, what is the total number of buffers?
Re: Free Buffers
There is no fixed number.
It uses ALL the unused SRAM for additional buffers...
So depending on what your program allocates in SRAM (will vary by what code is linked and some flag options)
it will vary.
The 256 allocated in SDRAM is a fixed number.
It uses ALL the unused SRAM for additional buffers...
So depending on what your program allocates in SRAM (will vary by what code is linked and some flag options)
it will vary.
The 256 allocated in SDRAM is a fixed number.
Re: Free Buffers
Record the number of free buffers as the very first thing you do in UserMain and thats a good number to use for 100%.