ECE 320 · Week 9

Modern Computer: Embedded Systems

Which of the two buses comes up first, and why.

Week 9 of 10 · Das Frite

ECE 320 · Week 9 · In class

Which of the two buses comes up first, and why.

ECE 320 · Week 9 · In class

The homework is a paragraph that names which bus comes up first, and why.

ECE 320 · Week 9 · Lecture

Bring up one bus at a time

ECE 320 · Week 9 · Lecture

Check the layers from the bottom

LayerQuestionHow to check
WiringPower, ground, right pins?station sheet, multimeter
Device treeBus enabled?/proc/device-tree, overlay
Device fileDoes it exist, can you open it?ls -l /dev, permissions
SignalsDo bytes move?logic analyser
Your codeRight bytes, right decode?the mock test from week 8

ECE 320 · Week 9 · Lecture

Ask the bus before your code does

i2cdetect -l                  # the I2C buses Linux has
i2cdetect -y 1                # who answers on bus 1
i2cget -y 1 0x48 0x00         # one register from 0x48
spi-config -d /dev/spidev0.0 -q        # mode, bits, speed
head -c 4 /dev/zero | spi-pipe -d /dev/spidev0.0 -b 4 | xxd

ECE 320 · Week 9 · Lecture

A design note for the bus that does not work yet

A note someone else can pick up beats a note that says "SPI broken".

ECE 320 · Week 9 · Lecture

Survive a power cycle

ECE 320 · Week 9 · Lab

Lab

  1. Build the project from the week-7 proposal until one of the two buses works.
  2. Update the design note for the bus that does not work yet. Do not write a recovery runbook. Second pass: power-cycle once and show the working bus still answers.
  3. Assemble the lab hand-in: A checkpoint note showing one project bus working and the design note for the second bus.

ECE 320 · Week 9 · Lab

Hand in

A checkpoint note showing one project bus working and the design note for the second bus.

ECE 320 · Week 9 · Homework

Homework

ECE 320 · Week 9 · Homework

Turn in

A paragraph naming which bus comes up first, and why, outside the design note.

ECE 320 · Week 9 · Read

Read

On the lab site: Module 12, A whole system, is the reading. This week grades the checkpoint of one bus and the note for the second. Stop before a recovery runbook.

ECE 320 · Week 9 · Next

Week 10

The demo order: two buses, a service, and one question about your own capture or overlay.

Arrow keys or space to move, F for full screen, N for speaker notes, Home and End for the first and last slide. Print gives one slide per page.