Skip to content

app: Increase nRF provisioning stack size if Memfault is enabled - #407

Merged
juhaylinen merged 1 commit into
nrfconnect:mainfrom
juhaylinen:memfault_increase_nrfprov_stack
Aug 18, 2026
Merged

app: Increase nRF provisioning stack size if Memfault is enabled#407
juhaylinen merged 1 commit into
nrfconnect:mainfrom
juhaylinen:memfault_increase_nrfprov_stack

Conversation

@juhaylinen

Copy link
Copy Markdown
Contributor

Memfault uses larger CoAP options than before, which increases stack usage in the nRF Provisioning thread. Enlarge the stack to prevent overflow.

Memfault uses larger CoAP options than before, which increases stack
usage in the nRF Provisioning thread. Enlarge the stack to prevent
overflow.

Signed-off-by: Juha Ylinen <juha.ylinen@nordicsemi.no>
Copilot AI lite review requested due to automatic review settings August 18, 2026 10:58

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adjusts Kconfig defaults to prevent stack overflow in the nRF Provisioning thread when Memfault is enabled, due to increased CoAP option sizing.

Changes:

  • Adds a Memfault-conditional default for NRF_PROVISIONING_STACK_SIZE to increase the provisioning thread stack.
  • Documents why the stack increase is needed (larger CoAP options increase request struct size on the stack).

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@github-actions

Copy link
Copy Markdown

Memory usage changed for nRF91M1 configuration. See CI run

       text       data        bss        dec        hex     flash%       ram%
--- baseline
+++ pr
@@ -2 +2 @@
-    319456      74588     166734     560778      88e8a     95.29%     81.83%
+    319456      74588     167246     561290      8908a     95.29%     82.07%

@juhaylinen
juhaylinen merged commit 9a4db3a into nrfconnect:main Aug 18, 2026
3 checks passed
@juhaylinen
juhaylinen deleted the memfault_increase_nrfprov_stack branch August 18, 2026 11:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants