Commit Graph

101 Commits

Author SHA1 Message Date
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
Gwenhael Goavec-Merou 2245712108 spiInterface: abstract class for SPI xfer 2020-04-21 08:53:52 +02:00
Udi Finkelstein 4558f8b395 Fixed ordering to be alphabetical 2020-04-16 10:54:53 +03:00