~/talk

Zephyr RTOS: Under 1KB of RAM

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

Zephyr compiles and runs with under 1 KB of RAM by combining linker/device-tree tweaks, compiler -Oz, and targeted code removal; the kernel itself drops to about 128 B and the final firmware measures ~892 B RAM. Analysis uses west RAM/ROM reports, pcov/poke tools, stack canaries and fake device-tree RAM to find a 112 B dummy-thread cost and stack consumers (sleep ~216 B, mutex ~248 B). A custom system-timer replaces missing SysTick and I2C target + ADC work, with measured sleep current under 2 µA.

AI-written summary · about

  1. 0:00Introduction
  2. 1:04Current RAM usage
  3. 3:35Porting to MSPM0 CX
  4. 5:23Initial optimizations
  5. 7:10Low-hanging fruit
  6. 7:55Execute-in-place RAM
  7. 8:36Memory analysis tools
  8. 10:21RAM report limits
  9. 11:02RAM layout with report
  10. 13:07Data section variables
  11. 15:34Boot and thread init
  12. 17:22Dummy thread impact
  13. 18:49Remove dummy thread
  14. 21:59Final optimizations
  15. 22:41Debug hello world
  16. 23:46SysTick-less timer
  17. 25:29I2C under 1KB RAM
  18. 27:15Stack overflow analysis
  19. 29:00Stack canary method
  20. 31:12I2C scan optimizations
  21. 31:55Kernel optimizations
  22. 33:25Q&A
~/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.