Learn to do something new with GreatFET!

View the Project on GitHub greatscottgadgets/greatfet-tutorials

Logic Analysis

Let’s take a look at how we can use GreatFET One as a logic analyzer for 3.3 V digital signals. (For I/O voltages other than 3.3 V, you would also need a level shifter.)

The GreatFET logic analysis function uses a peripheral called SGPIO, so we need to connect the SGPIO pins to our target signals. One easy way to find a target is to use one of the GreatFET’s other peripherals such as SPI.

Use jumper wires to make the following connections:

Open an interactive Python shell in your first terminal window:

gf shell

FIXME set up SPI

In a second terminal window activate logic analysis:

gf logic -p /tmp/spi-capture

FIXME file extension?

In the Python shell, type:


In the second window, terminate gf logic by typing ctrl-c.

FIXME open in pulseview

FIXME analyze in pulseview