~/talk

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

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

Build targets are an nRF5340 plus nRF7002 with external flash and XIP, running the Azure IoT Hub sample and LVGL assets; out of the box the image leaves ~61 KB flash and ~69 KB RAM for application logic. Analysis uses nm, addr2line, the punkcover visualizer, thread analyzer and the kernel-heap shell to find big spenders: embedTLS heap (~81 KB allocated, ~50 KB actually used), Wi‑Fi pools and stacks. Tweaks (heap/slab sizes, disable IPv6, move firmware to external flash) roughly double usable RAM and reclaim ~8 KB from the TFM partition.

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.