~/talk

Zephyr RTOS: Under 1KB of RAM

Talkat Open Source Summit Europe 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 runs under 1 KB of SRAM by aggressively shrinking the data section and stacks: kernel footprint drops to ~128 bytes, final board image sits at ~892 bytes RAM used before toggling device to real 1 KB. Techniques include fake RAM in device tree to iterate builds, compiler flags (-Oz), west RAM/ROM/pcov reports and pole analysis, and runtime tricks like enabling heap briefly and stack canary measurement. Result: multitasking with UART/GPIO and working I2C target scans plus ADC transfers on TI MSPM0, with system timer implemented and sub-2 µA sleep.

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.