Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kholia/Colorlight-5A-75B
Notes for Colorlight-5A-75B.
https://github.com/kholia/Colorlight-5A-75B
Last synced: 3 months ago
JSON representation
Notes for Colorlight-5A-75B.
- Host: GitHub
- URL: https://github.com/kholia/Colorlight-5A-75B
- Owner: kholia
- Created: 2020-05-12T12:36:58.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-05-13T13:10:22.000Z (over 4 years ago)
- Last Synced: 2024-08-03T21:01:57.193Z (6 months ago)
- Language: Verilog
- Homepage:
- Size: 870 KB
- Stars: 40
- Watchers: 2
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Notes for Colorlight-5A-75B
#### Colorlight 5A-75B pinout
```
|-------|------|
| J30 | TDO |
| ... | TDI |
| ... | TMS |
| J27 | TCK |
```![FPGA pinout](./colorlight_jtag_uart-1024x675.jpeg)
Image Credit: [Anton Blanchard](https://twitter.com/antonblanchard/status/1231778939888029696).
#### Programming Colorlight-5A-75B using Bus Pirate with OpenOCD:
```
sudo openocd -s /usr/local/share/openocd -f buspirate-flash.cfg
```#### Programming Colorlight-5A-75B using STM32 + DirtyJTAG with UrJTAG:
Programming Colorlight 5A-75B (15$ ECP5 FPGA board) with 2$ STM32 "Blue Pill"
based JTAG adapter is fun. Thanks to DirtyJTAG and UrJTAG! The `Blue Pill`
might be the cheapest JTAG programmer around (< 2 USD on AliExpress)?Flash [DirtyJTAG](https://github.com/jeanthom/DirtyJTAG) firmware to `Blue
Pill` (STM32F103C8T6):```
st-flash write dirtyjtag.bluepill.bin 0x8000000
```DirtyJTAG Pinout:
The `bluepill` build of DirtyJTAG has the following pinout:
| STM32 | JTAG |
|-------|------|
| PA0 | TDI |
| PA1 | TDO |
| PA2 | TCK |
| PA3 | TMS |
| PA4 | TRST |
| PA5 | SRST |Run `blinky` example on the FPGA:
```
$ sudo jtagUrJTAG 2019.12 #ae2cacce
Copyright (C) 2002, 2003 ETC s.r.o.
Copyright (C) 2007, 2008, 2009 Kolja Waschk and the respective authorsUrJTAG is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
There is absolutely no warranty for UrJTAG.warning: UrJTAG may damage your hardware!
Type "quit" to exit, "help" for help.jtag> bsdl path .
jtag> cable dirtyjtag
jtag> detect
IR length: 8
Chain length: 1
Device Id: 01000001000100010001000001000011 (0x41111043)
Filename: ./BSDLLFE5U25FCABGA256.bsm
jtag> svf /tmp/blink.svf ref_freq=100000Done ;)
```This works but I have no idea what many of these things are. Time to learn... ;)
#### References
- https://github.com/jeanthom/DirtyJTAG (JTAG probe firmware for STM32F1)
- https://saturn.ffzg.hr/rot13/index.cgi?action=weblog_display;category=FPGA
- https://github.com/jeanthom/openocd-dirtyjtag
- https://github.com/zoobab/versaloon
- https://github.com/q3k/chubby75/tree/master/5a-75b
- https://github.com/Martoni/blp/tree/master/platforms/colorlight
- http://www.fabienm.eu/flf/15-ecp5-board-kit/
- https://www.latticesemi.com/Products/FPGAandCPLD/ECP5