Closed mrquincle closed 3 years ago
Adjust https://github.com/crownstone/bluenet/blob/master/docs/FLASH_MEMORY_LAYOUT.md so it contains some info on intended RAM usage.
Added some warnings to commit in https://github.com/crownstone/bluenet/commit/81c6210b7632d8895f5c61244c6e3b1aaf9f6739 when heap or stack goes beyond microapp settings.
Also added some compilation checks on flash in https://github.com/crownstone/bluenet/commit/81c6210b7632d8895f5c61244c6e3b1aaf9f6739. Will close this for now.
Describe the bug With both meshing and microapp support enabled, there are a lot of invalid commands coming from the microapp.
To Reproduce First run with
BUILD_MESHING=0
and you will see proper microapp behaviour. Then run withBUILD_MESHING=1
.Additional context Something is overwriting something. To debug this it is important to get some more grip on the memory layout. The following are the default configuration parameters for the microapp.
If we look at the output we'll find this:
Hence, it looks like the heap (which is growing upwards) overflows into the memory for the microapp.