Gwenhael Goavec-Merou
8fb36f9ba9
main: improve flash direct access
2020-10-07 07:47:46 +02:00
Gwenhael Goavec-Merou
588094447f
rawParser: less verbose
2020-10-07 07:47:07 +02:00
Gwenhael Goavec-Merou
522489c860
main: improve previous commit
2020-10-07 07:37:40 +02:00
Gwenhael Goavec-Merou
9e0614d15d
main: fix ftdi_serial default value '' -> '-'. (jadafi)
2020-10-07 06:39:00 +02:00
Gwenhael Goavec-Merou
f77faa2657
add direct access to spi flash
2020-10-06 08:38:24 +02:00
Gwenhael Goavec-Merou
01fbbf747d
ftdispi: force mode 0 by default
2020-10-06 08:36:31 +02:00
Gwenhael Goavec-Merou
221e814509
ftdispi, ecpq: use enum for endianness and cs mode
2020-10-06 08:36:12 +02:00
Gwenhael Goavec-Merou
1a952f466a
Merge pull request #51 from martin2250/master
...
add ftdi serial number argument
2020-10-05 15:29:30 +02:00
Martin Pittermann
090a97baa0
fix line too long
2020-10-05 14:49:42 +02:00
Martin Pittermann
c41f4b597a
fix MACHXO3LF family
2020-09-29 16:13:54 +02:00
Martin Pittermann
99929f99c3
add ftdi serial argument
2020-09-29 14:16:30 +02:00
Gwenhael Goavec-Merou
7b048d2d82
fsparser: fix checksum for gw1n with ram
2020-09-29 08:07:57 +02:00
Gwenhael Goavec-Merou
5d99237652
gowin: Fix flash write message and display checksum when SRAM fail
2020-09-28 16:25:33 +02:00
Gwenhael Goavec-Merou
7d960411c2
board: crosslinknx_evn
2020-09-26 08:47:26 +02:00
Gwenhael Goavec-Merou
6536619b84
add crosslinx and certus support
2020-09-26 08:41:27 +02:00
Gwenhael Goavec-Merou
9572d060e9
lattice: adapt status register to support nexus devices
2020-09-26 08:40:43 +02:00
Gwenhael Goavec-Merou
871e28259e
latticeBitParser: support lattice radiant bit file
2020-09-26 07:58:03 +02:00
Gwenhael Goavec-Merou
d9bbcdf68b
xilinx: support writing .bit file to flash
2020-09-25 18:58:31 +02:00
Gwenhael Goavec-Merou
e8acec9873
fix xilinx to bitparser update
2020-09-25 18:43:05 +02:00
Gwenhael Goavec-Merou
fceaada9ba
bitparser: reverOrder is now configurable, fix _bit_length must be in bit instead of byte
2020-09-25 18:42:32 +02:00
Gwenhael Goavec-Merou
9a8a7400b9
Merge pull request #50 from ronyrus/add_ftdi_channel_param
...
Add FTDI channel selection command line argument.
2020-09-22 18:36:53 +02:00
Rony Kelner
41f1a7a61a
review fixes: refactoring and readme update
2020-09-22 19:22:51 +03:00
Rony Kelner
48c747edd6
Add FTDI channel selection command line argument.
2020-09-22 11:45:44 +03:00
Gwenhael Goavec-Merou
9c89c43b4d
xilinx: allow write raw binary file in flash
2020-09-19 09:50:08 +02:00
Gwenhael Goavec-Merou
a220226a9e
usbBlaster: fix read bit align and don't potentially write when just set clk low
2020-09-12 18:13:53 +02:00
Gwenhael Goavec-Merou
1345e6da6d
usbblaster:writeTDI: fix mask and force clk low after last write
2020-09-06 16:44:26 +02:00
Gwenhael Goavec-Merou
3bfd63b987
usbBlaster: init: flush FT245 buffer
2020-09-06 11:01:41 +02:00
Gwenhael Goavec-Merou
f587d7afde
anlogic, lattice, xilinx: fix comparision signed/unsigned
2020-09-05 08:00:58 +02:00
Gwenhael Goavec-Merou
8dace3e2a9
lattice: support writing arbitrary raw binary data somewhere in external flash
2020-09-05 07:55:20 +02:00
Gwenhael Goavec-Merou
800ad1ce2c
rawParser: simple class to read raw binary content with an optional reverse order
2020-09-05 07:49:57 +02:00
Gwenhael Goavec-Merou
ad4dd39cdd
main: pass write mode to anlogic constructor
2020-08-24 08:55:27 +02:00
Gwenhael Goavec-Merou
3349e65079
anlogic: add SPI flash support
2020-08-24 08:54:45 +02:00
Gwenhael Goavec-Merou
bfd7e9b6ed
anlogicBitParser: allows to reverse (or not) bytes
2020-08-24 08:53:30 +02:00
Gwenhael Goavec-Merou
31bc9cf988
spiFlash: drop annoying message in write_enable method
2020-08-24 08:52:00 +02:00
Gwenhael Goavec-Merou
cd124d2830
gowin: add missing stdexcept required by runtime_error
...
fix:
src/gowin.cpp:73:11: error: 'runtime_error' is not a member of 'std'
throw std::runtime_error("both write-flash and write-sram can't be set");
^
src/gowin.cpp:81:10: error: 'runtime_error' is not a member of 'std'
throw std::runtime_error("incompatible file format");
^
2020-08-24 08:16:48 +02:00
Gwenhael Goavec-Merou
4aab60a2e0
ftdispi: implement spiInterface
2020-08-23 17:17:51 +02:00
Gwenhael Goavec-Merou
b3ef97f95e
spiInterface: increase spi_put len param
2020-08-23 17:16:21 +02:00
Gwenhael Goavec-Merou
4bfb764e75
spiFlash: fix base addr, add method to read flash content and (non)volatile registers + cleanup
2020-08-23 17:14:21 +02:00
Gwenhael Goavec-Merou
d64f6f5055
anlogic: add bit file support. SVF conversion is no more required
2020-08-21 14:07:28 +02:00
Gwenhael Goavec-Merou
4a9fcaf1b9
add minimal support for anlogic bit file
2020-08-21 14:01:07 +02:00
Gwenhael Goavec-Merou
e0d763c4b5
add basic support for anlogic eagle s20 FPGA and lichee tang board
2020-08-20 16:59:34 +02:00
Gwenhael Goavec-Merou
c41911d039
introduce anlogic JTAG adapter (tested with sipeed lichee tang
2020-08-20 16:57:25 +02:00
Gwenhael Goavec-Merou
fc503e5b27
usbBlaster: fix build
2020-08-19 17:21:20 +02:00
Gwenhael Goavec-Merou
4a70675ea6
lattice:cppcheck
2020-08-19 17:00:44 +02:00
Gwenhael Goavec-Merou
7e763dcc25
xilinx:cppcheck
2020-08-19 16:57:07 +02:00
Gwenhael Goavec-Merou
2b3c9f0f8f
cppcheck
2020-08-19 16:53:49 +02:00
Gwenhael Goavec-Merou
050aa94b8b
main: delete jtag if someone is wrong
2020-08-19 15:15:37 +02:00
Gwenhael Goavec-Merou
4a3d1b3009
introduce intel usb blaster cable and de0nano board
2020-08-19 15:15:13 +02:00
Staf Verhaegen
ced3363ee5
Support Arty S7-50
...
Added Xilinx xc7s50 device to part.hpp; added support for generating
spiOverJtag bitstream file for that device and added bitstream to repo.
Converted xdc file from DOC line endings to native line endings.
2020-08-08 11:42:38 +02:00
Gwenhael Goavec-Merou
75f160ef00
add CLI args to provide pin mapping for bitbang mode (ft232 and ft231x)
2020-08-04 17:36:33 +02:00
Gwenhael Goavec-Merou
16ef55875d
ftdipp_mpsse: fix build failure with gcc 4.8
2020-08-04 16:41:12 +02:00
Ed Bordin
c86dae6b62
link against winsock system lib rather than implementing ad-hoc ntohs, fix warning about redefined macro on windows
2020-07-25 16:21:27 +10:00
Ed Bordin
d24c63ec8a
trabucayre/openFPGALoader#38 minor adjustments for MinGW build - use memset instead of bzero, errno_t may be replaced by int, provide ad-hoc ntohs on windows (alternative is link against winsock)
2020-07-25 12:55:41 +10:00
Gwenhael Goavec-Merou
3f4086ec89
cxxopts: fix option_matcher regex
2020-07-24 08:34:44 +02:00
Gwenhael Goavec-Merou
9c42aecef5
replace argp by cxxopts
2020-07-23 18:32:18 +02:00
Gwenhael Goavec-Merou
b6681c5430
adapt and copy cxxopts.hpp from https://github.com/jarro2783/cxxopts
2020-07-23 18:31:53 +02:00
Gwenhael Goavec-Merou
c1741b4300
prepare release 0.1
2020-07-11 08:47:54 +02:00
Gwenhael Goavec-Merou
e95a6a1792
display: use isatty() for (no)color
2020-07-11 07:56:11 +02:00
Gwenhael Goavec-Merou
d85fc68add
main: use printError instead of cerr
2020-07-11 07:47:27 +02:00
Gwenhael Goavec-Merou
447e3e47b2
catch exception when claiming cable
2020-07-11 07:23:24 +02:00
Gwenhael Goavec-Merou
23b8e61bc0
dirtyJtag: add () to fix operator priority
2020-06-24 07:19:15 +02:00
Gwenhael Goavec-Merou
e28dbdfb2f
ftdiJtagMPSSE: read mpsse_write return in toggleClk
2020-06-23 10:13:35 +02:00
Gwenhael Goavec-Merou
d5b3073e78
ftdiJtagMPSSE: drop debug message
2020-06-18 06:49:45 +02:00
Gwenhael Goavec-Merou
27b0c8a664
introduce DirtyJTAG cable
2020-06-14 15:41:00 +02:00
Gwenhael Goavec-Merou
ace902cb98
jtag: call toggleClk instead of playing with TMS
2020-06-14 15:20:47 +02:00
Gwenhael Goavec-Merou
2cadd21f02
ftdiJtagMPSSE: fix toggleClk to use clk toggle instruction only with compatible device
2020-06-14 15:18:22 +02:00
Gwenhael Goavec-Merou
9a10ac4d48
ftdiJtagBitbang: implement toggleClk
2020-06-14 15:05:47 +02:00
Gwenhael Goavec-Merou
275ba38207
restructure hierarchy/abstraction:
...
- jtagInterface as now only two method: one for tms or for tdi, in all
case full buffer is provided and specific code deal with them to write
- jtag: drop read_write logic to jtag probe abstraction
2020-05-31 15:57:21 +02:00
Gwenhael Goavec-Merou
652b3d292e
ftdipp_mpsse: change clkHZ visibility
2020-05-31 15:56:35 +02:00
Gwenhael Goavec-Merou
9b1c0d42e1
Merge pull request #36 from martin2250/master
...
add jtag frequency option
2020-05-26 07:12:08 +02:00
Martin Pittermann
e93034db69
clean up --freq parser
2020-05-25 10:33:09 +02:00
Gwenhael Goavec-Merou
50fa17b62f
gowin: add flash GW1N1 support
...
- eraseFlash need 65 x 32bits for GW1N1, 1 x 32bits for others
- improve flashFlash with delay according to the model
2020-05-23 14:51:48 +02:00
Martin Pittermann
92888956f3
add jtag frequency option
2020-05-21 13:07:20 +02:00
Gwenhael Goavec-Merou
aa752856c3
jtag, ftdiJtagBitbang: improve tms flush and fix data reconstruct in specific conditions
2020-05-19 08:32:43 +02:00
Gwenhael Goavec-Merou
9f9528599e
lattice: add mcs support for extFlash
2020-05-19 07:59:19 +02:00
Gwenhael Goavec-Merou
4b3166e8df
xilinx: update according to mcsParser modifications
2020-05-19 07:58:37 +02:00
Gwenhael Goavec-Merou
64754604f6
mcsParser: length must be in bit. Allows to store data in direct or reverse Byte order
2020-05-19 07:58:08 +02:00
Gwenhael Goavec-Merou
dec69596d3
Merge pull request #33 from jeanthom/ecpix5
...
Add support for ECPIX-5
2020-05-13 10:55:48 +02:00
Jean THOMAS
eeefe48284
Add support for ECPIX-5
2020-05-12 19:09:30 +02:00
Gwenhael Goavec-Merou
8cd6f3fe2c
gowin: fix internal flash
2020-05-12 10:49:58 +02:00
Gwenhael Goavec-Merou
564785c2d1
part: add idcode for LCMX02-7000HC
2020-05-04 13:09:01 +02:00
Gwenhael Goavec-Merou
dcbe9fb740
board: add MachXO2 Breakout Board Evaluation Kit
2020-05-02 09:58:11 +02:00
Gwenhael Goavec-Merou
5cacdf37df
part: add machXO2 LCMXO2-7000HE
2020-05-02 09:57:03 +02:00
Gwenhael Goavec-Merou
4847700b84
lattice: flash EBR when jed has this section
2020-05-02 09:47:41 +02:00
Gwenhael Goavec-Merou
099123277c
jedParser: Note lines may start with N or NOTE
2020-05-02 09:10:44 +02:00
Gwenhael Goavec-Merou
77e95d637c
jedParser: don't always consider STX as first char
2020-05-02 09:08:42 +02:00
Gwenhael Goavec-Merou
3221fd8ee2
jedParser: check if a \r char is present
2020-05-02 08:51:24 +02:00
Gwenhael Goavec-Merou
050a3a3f8d
add Saanlima Pipistrello
2020-04-28 18:22:33 +02:00
Gwenhael Goavec-Merou
e16f92199a
tested with Xilinx spartan6
2020-04-28 18:21:07 +02:00
Gwenhael Goavec-Merou
84b1d86d52
lattice: display status register when loadConfiguration fails
2020-04-28 10:00:55 +02:00
Gwenhael Goavec-Merou
56a81c1d68
lattice: update define, pass data array instead of _jed to Verify method, fix wrong index use
2020-04-27 16:37:05 +02:00
Gwenhael Goavec-Merou
9d8c528c35
jedParser: fix return value when something is wrong
2020-04-24 10:20:25 +02:00
Gwenhael Goavec-Merou
a4e489467e
jedParser: fix checksum
2020-04-24 10:16:57 +02:00
Fabien Marteau
6ec380516c
tab or space indentation, please choose
2020-04-22 20:51:54 +02:00
Gwenhael Goavec-Merou
12d69735eb
main: pass wr sram/mem to lattice constructor and update help
2020-04-22 15:23:38 +02:00
Gwenhael Goavec-Merou
cb66aa6885
lattice: add spiInterface method, split program_flash in two distinct method (one for internal flash and one for external spi flash), add constructor args to select flash or memory with bit file
2020-04-22 15:21:01 +02:00
Gwenhael Goavec-Merou
0409263f87
unlock block if locked before erase/flash
2020-04-21 19:25:35 +02:00
Gwenhael Goavec-Merou
ee4a62e968
xilinx: implement spiInterface and pass this instead of jtag to spiFlash class
2020-04-21 09:08:32 +02:00
Gwenhael Goavec-Merou
95f247a25e
spiFlash: read extented ID only when len != 0
2020-04-21 09:02:48 +02:00
Gwenhael Goavec-Merou
c94f031025
spiFlash: use spiInterface to hide communication details
2020-04-21 09:00:57 +02:00