This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Reported available RAM with Visual Studio + VisualGDB

I don't know if this is the correct place to ask this or in the VisualGDB forum, so I'm gonna ask in both.

At the end of the compilation process, Visual Studio reports that I’m using 200K out of the 250 KB of RAM available (256K/1024) in the 52840.
Does that value already include the size that was set aside for the stack and heap? In my case, they are 16K each (so it actually has 218K of available RAM)
I’m asking this now because it looks like that we cant go over the 200ish K limit of reported used RAM, after that the code still compiles fine, but we start to see weird memory problems
It looks like a specific call in our code is overwriting the heap/stack and that’s causing undefined behaviors and/or a reboot of the board.
Even if that’s true, we should be able to go to around 218K of used RAM with no problems

How is that reported generated? Does it take into account the size for the stack/heap? One other thing that it could be is that this report doesn’t take into account the RAM used by the soft device

 

Any input will be greatly appreciated. Thanks!

Related