Add configuration to flash by ecpdap.
This commit is contained in:
parent
94c99367ba
commit
e0f77ceead
|
@ -0,0 +1,2 @@
|
||||||
|
# Allow access to all CMSIS-DAP compatible adapters
|
||||||
|
ATTRS{product}=="*CMSIS-DAP*", MODE="660", GROUP="plugdev", TAG+="uaccess"
|
|
@ -6,6 +6,22 @@
|
||||||
sudo apt-get install build-essential clang bison flex libreadline-dev gawk tcl-dev libffi-dev git graphviz xdot pkg-config python3 libboost-system-dev libboost-python-dev libboost-filesystem-dev zlib1g-dev build-essential libboost-system-dev libboost-thread-dev libboost-program-options-dev libboost-test-dev libboost-iostreams-dev python3.9-dev libboost-iostreams-dev libeigen3-dev libudev-dev cmake python3-pip gcc gdb autoconf automake libtool libusb-dev libusb-1.0-0-dev python2.7-dev
|
sudo apt-get install build-essential clang bison flex libreadline-dev gawk tcl-dev libffi-dev git graphviz xdot pkg-config python3 libboost-system-dev libboost-python-dev libboost-filesystem-dev zlib1g-dev build-essential libboost-system-dev libboost-thread-dev libboost-program-options-dev libboost-test-dev libboost-iostreams-dev python3.9-dev libboost-iostreams-dev libeigen3-dev libudev-dev cmake python3-pip gcc gdb autoconf automake libtool libusb-dev libusb-1.0-0-dev python2.7-dev
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## install ecpdap for configuration to the flash
|
||||||
|
|
||||||
|
```bash
|
||||||
|
curl https://sh.rustup.rs -sSf | sh # install catgo
|
||||||
|
cargo install ecpdap # install ecpdap
|
||||||
|
# Run ecpdap help for detailed usage.
|
||||||
|
|
||||||
|
# install CMSIS-DAP probes driver
|
||||||
|
sudo cp 99-cmsis-dap.rules /etc/udev/rules.d
|
||||||
|
sudo udevadm control --reload
|
||||||
|
|
||||||
|
ecpdap flash write xxx.bit # Write configuration to the flash
|
||||||
|
ecpdap program xxx.bit # Configure with xxx.svf
|
||||||
|
ecpdap flash erase # Erase flash
|
||||||
|
```
|
||||||
|
|
||||||
## install verilator form source to use new version
|
## install verilator form source to use new version
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
|
@ -16,8 +16,10 @@ $(TARGET).bit: $(TARGET).cfg
|
||||||
${TARGET}.svf : ${TARGET}.bit
|
${TARGET}.svf : ${TARGET}.bit
|
||||||
|
|
||||||
prog: ${TARGET}.svf
|
prog: ${TARGET}.svf
|
||||||
# openFPGALoader -c digilent_hs2 $(TARGET).bit
|
./dapprog blink.svf
|
||||||
./dapprog ${TARGET}.svf
|
|
||||||
|
flash: ${TARGET}.bit
|
||||||
|
ecpdap flash write blink.bit
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f *.svf *.bit *.config *.ys *.json
|
rm -f *.svf *.bit *.config *.ys *.json
|
||||||
|
|
Loading…
Reference in New Issue