~/talk

Writing a SD Card driver in Rust

Talkat EuroRust 2024 · 2024-10-10..10-11· [rust]
slides:none on file

Rust code implements an SPI SD Card driver that uses embedded-hal traits to send the actual six‑byte command frames, handles responses and CRC checks, and initializes cards over SPI; it reads/writes 512‑byte blocks via a blocking block‑device API and issues command 17 and 18 for reads, respecting the weird timing requirement of 74 clock cycles. A FAT implementation maps blocks to files, a few demos run, tests are slow, occasional corruption reports make it unsuitable for production without more testing.

AI-written summary · about

  1. 0:00Introduction
  2. 1:26What is an SD card
  3. 5:17Systems engineering
  4. 8:04Block devices
  5. 14:12Sending commands
  6. 17:10SPI bus API
  7. 18:55FAT file system
  8. 25:05Open Directory
~/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.