tinyfpga / TinyFPGA-Bootloader

An open source USB bootloader for FPGAs
Apache License 2.0
357 stars 94 forks source link

Add 7 series support #30

Closed TomKeddie closed 5 years ago

TomKeddie commented 5 years ago

This PR adds working 7 series support specifically for the arty 7 but applicable to all 7 series devices. No changes were made to the python, it works as is, although there will be a bunch of unsupported spi commands sent to the flash searching for non existent security pages. This PR resolves https://github.com/tinyfpga/TinyFPGA-Bootloader/issues/2

python -m tinyprog -p ~/tmp/project_1/project_1.runs/impl_1/top1.bin 

TinyProg CLI
------------
Using device id 1d50:6130
Only one board with active bootloader, using it.
Programming /dev/ttyACM0 with /home/tom/tmp/project_1/project_1.runs/impl_1/top1.bin
Programming at addr 100000
Waking up SPI flash
214420 bytes to program
Erasing: 100%|#######################################################| 214k/214k [00:01<00:00, 182kB/s]
Writing: 100%|#######################################################| 214k/214k [00:01<00:00, 184kB/s]
Reading: 100%|#######################################################| 214k/214k [00:00<00:00, 380kB/s]
Success!
TomKeddie commented 5 years ago

Bump. @tinyfpga when you have a moment (hah) lets merge this.

mithro commented 5 years ago

I'm assuming this is abandoned? (Your working on Foboot / ValentyUSB stuff now right?)

Reopen if you still want it merged.