You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Ftditool is a C++ implementation for SPI/I2C Flash memory communication leveraging FTDI MPSSE-enabled chips.
1
+
# ftditool: A C++ implementation for SPI Flash and GPIO leveraging FTDI MPSSE-enabled chips.
2
2
3
-
The FT4222 is supported for fast qSPI transactions.
3
+
`ftditool` supports **SPI** and **GPIO** over **FT4222** and **FT2232** chips. The FT4222 specifically supports fast **QSPI** transactions.
4
4
5
-
## Getting started
6
-
Build:
5
+
## Getting Started
6
+
7
+
Install the dependencies using Nix or any other method:
8
+
9
+
```sh
10
+
nix develop
7
11
```
12
+
13
+
### Build:
14
+
```bash
8
15
cmake -B build -S ./ && cmake --build build
9
16
```
10
-
Run with --help argument for more information:
17
+
18
+
### Usage:
19
+
20
+
Run with the `--help` argument for more information:
21
+
11
22
```sh
12
23
build/ftditool --help
13
24
```
14
-
Read jedec:
25
+
26
+
**Read JEDEC ID:**
27
+
15
28
```sh
16
29
build/ftditool jedec
17
30
```
18
-
Read page 0x800:
31
+
32
+
**Read page 0x8000:**
33
+
19
34
```sh
20
35
build/ftditool read-page --addr 0x8000
21
36
```
22
37
23
-
## Dependency graph
38
+
For a full list of commands:
39
+
40
+
```sh
41
+
build/ftditool --help
42
+
```
43
+
44
+
For an example of a real-world application of `ftditool`, check out the [mocha](https://github.com/lowRISC/mocha/blob/main/util/fpga_runner.py) repository.
0 commit comments