ecpprog.git
3 years agoMerge pull request #4 from alanvgreen/nx_clkdiv
Gregory Davill [Tue, 15 Sep 2020 01:16:34 +0000 (10:46 +0930)]
Merge pull request #4 from alanvgreen/nx_clkdiv

clkdiv: added clkdiv

3 years agoclkdiv: added clkdiv
Alan Green [Mon, 14 Sep 2020 07:30:33 +0000 (17:30 +1000)]
clkdiv: added clkdiv

This change allows arbitrary divider values to be used for the 6MHz FTDI
SPI/JTAG clock.

I find that, on the Lattice NX Evaluation Board, the FTDI clock divider
needs to be set to a value of 3 or higher in order to program the flash
rom. This may be because the board uses an ES (Early Silicon/Engineering
Sample) CrossLink/NX-40. I see similar behavior with the Radiant
programmer where a divisor of 2 or higher is needed.

With a slower clock divider, ecpprog is also able to verify programmed
flash rom content.

3 years agoupdate help screen
Greg Davill [Sun, 30 Aug 2020 02:30:24 +0000 (12:00 +0930)]
update help screen

3 years agoread/check: fix total bytes
Greg Davill [Sun, 30 Aug 2020 02:29:03 +0000 (11:59 +0930)]
read/check: fix total bytes

3 years agoremove reading extended device ID
Greg Davill [Sun, 30 Aug 2020 02:01:55 +0000 (11:31 +0930)]
remove reading extended device ID

3 years agonx: Add support for NX IDCODEs
Greg Davill [Tue, 25 Aug 2020 02:44:47 +0000 (12:14 +0930)]
nx: Add support for NX IDCODEs

4 years agoupdated readme
Greg Davill [Sun, 19 Apr 2020 10:27:51 +0000 (19:57 +0930)]
updated readme

4 years agoprogress output on read/write. Add SR2 readout
Greg Davill [Sun, 19 Apr 2020 10:20:02 +0000 (19:50 +0930)]
progress output on read/write. Add SR2 readout

4 years agotidy up code
Greg Davill [Sun, 19 Apr 2020 08:31:25 +0000 (18:01 +0930)]
tidy up code

4 years agointial loading bitstream logic works
Greg Davill [Sun, 19 Apr 2020 08:09:10 +0000 (17:39 +0930)]
intial loading bitstream logic works

4 years agoshift out bytes instead of bits, when possible
Greg Davill [Sun, 19 Apr 2020 05:30:11 +0000 (15:00 +0930)]
shift out bytes instead of bits, when possible

4 years agoadd readme
Greg Davill [Sun, 19 Apr 2020 04:10:03 +0000 (13:40 +0930)]
add readme

4 years agomove project into folder
Greg Davill [Sun, 19 Apr 2020 04:00:19 +0000 (13:30 +0930)]
move project into folder

4 years agocleanup warnings and errors
Greg Davill [Sun, 19 Apr 2020 03:53:21 +0000 (13:23 +0930)]
cleanup warnings and errors

4 years agoflash functions soould now operate correctly
Greg Davill [Sun, 19 Apr 2020 03:43:07 +0000 (13:13 +0930)]
flash functions soould now operate correctly

4 years agoupdate jtag_shift
Greg Davill [Sun, 19 Apr 2020 03:38:15 +0000 (13:08 +0930)]
update jtag_shift

4 years agocleanup of un-used code
Greg Davill [Sun, 19 Apr 2020 03:13:17 +0000 (12:43 +0930)]
cleanup of un-used code

4 years agofix issue with missing data
Greg Davill [Sun, 19 Apr 2020 03:05:35 +0000 (12:35 +0930)]
fix issue with missing data

4 years agoFix clock divider
Greg Davill [Sun, 19 Apr 2020 02:02:02 +0000 (11:32 +0930)]
Fix clock divider

4 years agomore speedups
Greg Davill [Sat, 18 Apr 2020 16:36:18 +0000 (02:06 +0930)]
more speedups

4 years agosome more jtag speedups
Greg Davill [Sat, 18 Apr 2020 16:28:30 +0000 (01:58 +0930)]
some more jtag speedups

4 years agospeed up jtag xfers
Greg Davill [Sat, 18 Apr 2020 15:57:35 +0000 (01:27 +0930)]
speed up jtag xfers

4 years agoslight speedup to jtag-tap
Greg Davill [Sat, 18 Apr 2020 15:24:41 +0000 (00:54 +0930)]
slight speedup to jtag-tap

4 years agofix flag decoding
Greg Davill [Sat, 18 Apr 2020 14:49:10 +0000 (00:19 +0930)]
fix flag decoding

4 years agoupdate program name
Greg Davill [Sat, 18 Apr 2020 14:46:40 +0000 (00:16 +0930)]
update program name

4 years agoadd readout of status register
Greg Davill [Sat, 18 Apr 2020 14:35:15 +0000 (00:05 +0930)]
add readout of status register

4 years agoremove some ice40 specifics
Greg Davill [Sat, 18 Apr 2020 14:05:30 +0000 (23:35 +0930)]
remove some ice40 specifics

4 years agoupdate copyright
Greg Davill [Sat, 18 Apr 2020 13:58:54 +0000 (23:28 +0930)]
update copyright

4 years agoupdate to background spi entry
Greg Davill [Sat, 18 Apr 2020 13:54:41 +0000 (23:24 +0930)]
update to background spi entry

4 years agoadd idcode readout
Greg Davill [Sat, 18 Apr 2020 12:20:04 +0000 (21:50 +0930)]
add idcode readout

4 years agoadd jtag_tap logic from luna
Greg Davill [Sat, 18 Apr 2020 11:59:53 +0000 (21:29 +0930)]
add jtag_tap logic from luna

4 years agoinitial commit, start with iceprog as a base
Greg Davill [Sat, 18 Apr 2020 09:52:27 +0000 (19:22 +0930)]
initial commit, start with iceprog as a base