~/talk

Demystifying Memory: A Practical Tutorial on Managing & Optimizing Memory in Zephyr

Talkat Open Source Summit Europe 2025 · on Wednesday, 2025-08-27· at 11:55· G105 (Level 1)· [web-performance]
links:none on file
slides:none on file

Hands‑on Zephyr memory tuning for an nRF5340 + nRF7002 product that starts with only 61 KB flash and 69 KB RAM for application code, using the Azure IoT Hub sample as the baseline. Shows concrete tools: west build + punkcover and nm/addr2line for static reports, thread analyzer and heap/mempool shell commands for runtime stats. Finds embedTLS heap ~81KB used 50KB, tunes k_heap/memory slabs, reduces stacks and network buffers, disables IPv6 to shrink flash and speed connect, reclaims 8 KB from TFM — and doubles usable RAM for the app.

AI-written summary · about

  1. 0:00Memory management in Zephyr
  2. 6:04Flash and RAM basics
  3. 8:14Heap and slab techniques
  4. 12:32Memory analysis tools
  5. 16:52Heap runtime analysis
  6. 21:13Network stack memory
  7. 24:53Memory optimization strategy
  8. 28:45Demo: puncover tool
  9. 33:47Analyzing memory with puncover
  10. 36:59RAM runtime analysis
  11. 41:13Flash partition table
  12. 43:28Optimization results
  13. 45:58Key learnings
  14. 48:28Closing remarks
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.