Env: SES, nrf52 DK, Linux
I need to define a buffer (array of structure) in order to buffer readings. If i have more RAM I should create a bigger buffer if I have few RAM I need to create a short buffer.
My problem is that I can not get the available RAM.
When I rebuild program using SES it shows 2 charts with FLASH and RAM measurements, However, If I create a
unsigned char arr;
as a global var or as a main function var the measurement is always the same after compilation. Why doesnt SES take into account the RAM occupied by new array?
Would be better to ask this on the SES forum - as it's not specific to nRF52
This would be information passed back from the Linker.
SES builds its own linker script - so you'd have to ask Segger if they make any provision for this and, if so, what.
Alex Co said:as a main function var
You mean as a local - ie, automatic - within main() ?
In that case, it would be on the stack - so wouldn't show up in the RAM usage.
Thanks. I am going to ask to segger people
Alex Co said: I am going to ask to segger people
There was a problem on the Segger forum which resulted in your post getting deleted.
You might want to try again ...
(and don't forget to give links between the 2 threads).