SPI
Found under IO on the device's panel list.
SPI Log
Live log of SPI transfers, with a manual send.
The screen
A scrolling log fills the screen, oldest at the top and newest at the bottom. Each transfer prints two lines: the bytes sent, then the bytes that came back.
Controls
| Button | Action |
|---|---|
| Yellow | Send - opens a hex-entry box and sends the bytes you type as one SPI transfer |
| Gray | Open the Logic Analyzer view |
| PAGE | Open the Logic Analyzer view |
| Cancel | This help page |
HOME leaves the screen from here, as it does everywhere else in the menu.
Reading the log
Each transfer logs as a Tx) line, the bytes this device sent, followed by
a Rx) line, the bytes that came back at the same time - SPI always
exchanges data in both directions in one operation. Only the first 8 bytes
of a transfer are shown, even if more were sent.
Send (Yellow) opens a text box for entering bytes as hex, separated by
spaces, commas or tabs (9F 00 00 00 or 9F,00,00,00), up to 16 bytes.
The whole entry goes out as one transfer: the chip-select pin drops low, all
the bytes shift out and in together, then it goes high again. Entering
something that is not valid hex, or more than 16 bytes, rejects the input
with a message and sends nothing. Which pin is used as chip select comes
from the SPI settings menu, not from this screen.
What else shows up here
This log is shared with the rest of the firmware: any SPI transfer made elsewhere while this screen is open - by a script, the console, or another part of the system - also prints its Tx/Rx lines here. The log only fills in while this screen is on the display; leaving it stops new lines from being recorded.
Logic Analyzer view
Gray or PAGE switch to a Logic Analyzer view of the SPI lines (MISO, CS, SCLK, MOSI), with a title line showing the mode, sample rate and capture state. A labelled Back button on that view returns here.
Power
This screen needs the FPGA power zone - the SPI header pins route through the FPGA, unlike I2C's direct connection to the header. Opening this screen switches that rail on if it was off, without asking. That only happens once, on entry: nothing here re-checks the zone, or the header pins' IO direction, before a Send goes out, so a transfer sent while the rail is still coming up, or with a pin pointed the wrong way, does not warn - it just does not reach anything.
Logic Analyzer
Captures a burst of digital pins over time and draws them as waveforms, so you can see fast signal changes a live view would miss.
The screen
A title line across the top names what this view is doing: the mode it is capturing, the sample rate, and its state - for example "SPI analyzer 1M idle", changing to armed once you start a capture and to done once the capture lands. Once a capture is loaded, the title also adds a position, such as "done 2/4", showing which slice of the buffer the trace below is panned to.
Below the title, each row is one channel: its name on the left, its waveform trace beside it. Which pins appear here, and what they are named, depends on which tool you opened this screen from. Once a capture lands, a red vertical line marks the sample where the trigger fired.
On screens with a long channel list - GPIO in particular - Up and Down move a highlighted row, shown with a gray band behind its name, and whichever channel is highlighted when you arm a capture becomes its trigger source. On screens with only a few channels, there is no highlighted row: Up and Down do nothing here, and the trigger source is always the first channel shown.
The title costs some of the screen's height, so the GPIO capture - the one with the longest channel list, 13 rows - now shows 12 at a time and scrolls with Up and Down to reach the last one. The shorter protocol channel lists still show every row at once.
Controls
| Button | Action |
|---|---|
| Yellow | Cycle the trigger edge: rising, falling, or none (one-shot) |
| Green | Cycle the capture rate: 10M, 1M, 100k, or 10k samples per second |
| Blue | Arm the capture, or stop it while armed |
| Red | Force the trigger while armed |
| Left / Right | Pan through a finished capture |
| Gray / Page | Back - returns to the protocol panel this view was opened from |
| Cancel | This help page |
Red forces the trigger and keeps its Trig label to say so. Home leaves the app from here the same as it does everywhere else.
Capturing
Blue arms the capture - its label changes from Arm to Stop while armed - and waits for the trigger condition set by Yellow on its trigger source (see The screen above for how that source is chosen): a rising edge, a falling edge, or none, which starts capturing right away without waiting for either. Red forces the trigger early if you do not want to wait for it. Green sets how fast the capture samples, from 10 million samples a second down to 10 thousand; faster rates see less time but finer detail.
Capture depth
The sample buffer behind a capture is a fixed size, so the number of samples it holds depends on how many channels you are watching, not just the rate - fewer channels leaves room for more samples in the same buffer. A faster rate always covers less time, and how much less depends on that channel count.
After a capture
Once a capture lands, the waveform fills the screen with the trigger point placed roughly three-quarters of the way across, so more of what happened before the trigger is visible than after it. Left and Right step the view through the rest of the buffer around it; before a capture finishes, they do nothing.
Shared by several tools
This screen appears inside several different tools - GPIO, I2C, SPI, UART and MDIO all open it with their own Page button, each showing that tool's own pins or bus signals as the channels here. Gray or Page on this screen returns you to whichever one opened it.
The capture itself runs on the RP2350's own PIO hardware, not the FPGA, so opening this screen never needs the FPGA power zone. SPI, UART, GPIO and MDIO route their own header lines through the FPGA and need that zone regardless of this screen; I2C reaches the header directly and needs no FPGA zone at all.
See also: SPI — the console/GUI commands for this panel.