aboutsummaryrefslogtreecommitdiffstats
path: root/doc/MemoryAnalysis.md
diff options
context:
space:
mode:
authorFinlay Davidson <finlay.davidson@coderclass.nl>2023-03-01 23:42:29 +0100
committerRiku Isokoski <riksu9000@gmail.com>2023-03-02 09:45:47 +0200
commit3b084d74c3b3864a4ce666dce0285aaf43a48a29 (patch)
treef10572424b672988235a73b293b8aa588712b183 /doc/MemoryAnalysis.md
parent692a9bee5d560b7df6e2a72036291460fefa3498 (diff)
branches: Update files to refer to main instead of develop
Diffstat (limited to 'doc/MemoryAnalysis.md')
-rw-r--r--doc/MemoryAnalysis.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/MemoryAnalysis.md b/doc/MemoryAnalysis.md
index fe493ba0..86180fcc 100644
--- a/doc/MemoryAnalysis.md
+++ b/doc/MemoryAnalysis.md
@@ -104,7 +104,7 @@ In Infinitime 1.1, the biggest buffers are the buffers allocated for LVGL (14KB)
### Stack
-The stack will be used for everything except tasks, which have their own stack allocated by FreeRTOS. The stack is 8192B and is allocated in the [linker script](https://github.com/InfiniTimeOrg/InfiniTime/blob/develop/nrf_common.ld#L148).
+The stack will be used for everything except tasks, which have their own stack allocated by FreeRTOS. The stack is 8192B and is allocated in the [linker script](https://github.com/InfiniTimeOrg/InfiniTime/blob/main/nrf_common.ld#L148).
An easy way to monitor its usage is by filling the section with a known pattern at boot time, then use the firmware and dump the memory. You can then check the maximum stack usage by checking the address from the beginning of the stack that were overwritten.
#### Fill the stack section by a known pattern:
@@ -216,7 +216,7 @@ According to my experimentations, we don't use the stack that much, and 8192 byt
### Heap
-The heap is declared in the [linker script](https://github.com/InfiniTimeOrg/InfiniTime/blob/develop/nrf_common.ld#L136) and its current size is 8192 bytes. The heap is used for dynamic memory allocation(`malloc()`, `new`...).
+The heap is declared in the [linker script](https://github.com/InfiniTimeOrg/InfiniTime/blob/main/nrf_common.ld#L136) and its current size is 8192 bytes. The heap is used for dynamic memory allocation(`malloc()`, `new`...).
Heap monitoring is not easy, but it seems that we can use the following code to know the current usage of the heap: