1
0
mirror of https://github.com/antonblanchard/chiselwatt.git synced 2026-04-25 20:01:31 +00:00

Adjust pins and Makefile for OpenOCD

Signed-off-by: Carlos de Paula <me@carlosedp.com>
This commit is contained in:
Carlos de Paula
2020-04-01 10:39:24 -03:00
parent 21e9d9f0df
commit 2d5d429708
6 changed files with 51 additions and 30 deletions

View File

@@ -108,9 +108,17 @@ and to program the FPGA:
```sh
make ECP5_BOARD=evn prog
# or if your USB device has a different path, pass it on USBDEVICE, like:
make ECP5_BOARD=evn USBDEVICE=/dev/tty.usbserial-120001 prog
```
If you connect to the serial port of the FPGA at 115200 8n1, you should see "Hello World"
Programming using OpenOCD on Docker does not work on Docker Desktop for Mac since the container is run in a Linux VM and can not see the physical devices connected to the MacOS.
For the ULX3S board, the current OpenOCD does not support ft232 protocol so to program it, download [ujprog](https://github.com/emard/ulx3s-bin/tree/master/usb-jtag) for your platform and program using `./ujprog chiselwatt.bit` or to persist in the flash, `./ujprog -j FLASH chiselwatt.bit`.
After programming, if you connect to the serial port of the FPGA at 115200 8n1, you should see "Hello World"
and after that all input will be echoed to the output. On Linux, picocom can be used.
Another option below is a simple python script.