Hello! I don’t know if that’s a question I should ask here or at the Nordic forum, so I’ll ask on both
I’m working with a NRF52840 that has 256KB of RAM
At the end of the compilation process, Visual Studio reports that I’m using 200K of the 250 KB of RAM available (256K/1024)
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 behaviours 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 that into account the RAM used by the NRF soft device
Any input will be greatly appreciated