Skip to content

Commit

Permalink
readme: debug instructions and screen instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewrk committed Dec 5, 2018
1 parent 8d15e73 commit f8d9964
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,21 @@ zig build
zig build qemu
```

#### Debugging with GDB

```
zig build qemu -Dgdb
```

In another terminal:

```
gdb zig-cache/clashos-dbg -ex 'run target remote localhost:1234'
```

Note: this crashes GDB for me, but it works if I remove the `-ex`
parameter and execute the command at the prompt.

### Actual Hardware

1. Mount an sdcard with a single FAT32 partition.
Expand Down Expand Up @@ -48,3 +63,11 @@ For further changes repeat steps 3 and 4.
* Black: Pin 6, Ground
* Yellow: Pin 8, BCM 14, TXD / Transmit
* Orange: Pin 10, BCM 15, RXD / Receive

### How to view the serial data

Where `/dev/ttyUSB0` is the device that represents the serial-to-USB cable:

```
sudo screen /dev/ttyUSB0 115200 cs8
```

0 comments on commit f8d9964

Please sign in to comment.