Commit Graph

1137 Commits

Author SHA1 Message Date
Colin O'Flynn ed492715e1 xilinx: Add XADC reads of VCC registers 2024-05-23 09:40:19 -03:00
Gwenhael Goavec-Merou 578c899327 ../src/gwu2x_jtag.cpp 2024-05-22 20:54:14 +02:00
Gwenhael Goavec-Merou 26b4516aeb added lilygo-t-fpga board (based on gwu2x #434) 2024-05-20 21:18:20 +02:00
Gwenhael Goavec-Merou 53578876d5 added support for Gowin GWU2X USB (JTAG mode) (#434) 2024-05-20 21:10:29 +02:00
Gwenhael Goavec-Merou 7e90d071d9 libusb_ll: rework. Splitted scan method -> help futur dev with a common code to detect/select usb devices 2024-05-20 16:18:50 +02:00
Gwenhael Goavec-Merou 37a0f9c03e device: fixed warning in read_registers 2024-05-20 16:16:42 +02:00
Michael Schenk 6e85edaa9a
adding support for XC2C64A-xVQ44 with ID 0x06e5e093 (#458)
* adding support for XC2C64A-xVQ44

* remove comment
2024-05-19 17:13:16 +02:00
Evan Kahn 66c47fe3bd Add support for EP4CE6E22 and EP4CE10F17 2024-04-30 14:51:29 -04:00
Hans Baier 55b094ce00 add EP4CGX150 2024-04-27 16:18:23 +07:00
Florent Kermarrec 943a458f03 src/part.hpp: Add xcau15p support. 2024-04-25 17:17:47 +02:00
Gwenhael Goavec-Merou 4fe3d7ccc1 xilinx: added readback access to registers (stat, conf, ...) 2024-04-21 14:35:23 +02:00
Gwenhael Goavec-Merou 99147efa27 board,doc: added CERN SPEC45 support 2024-03-28 22:15:17 +01:00
Gwenhael Goavec-Merou 9b35959198 part: added xilinx xc6slx45t 2024-03-28 22:14:52 +01:00
Gwenhael Goavec-Merou 172295fb38 spiFlashdb: added M25P32 chip 2024-03-28 22:12:57 +01:00
Gwenhael Goavec-Merou 62f818cd68
Merge pull request #450 from kalata23/master
Added Zetta ZD25WQ16CSIGT
2024-03-28 22:02:21 +01:00
kalata23 206795c9c7 Added Zetta ZD25WQ16CSIGT 2024-03-28 14:20:08 +02:00
uint69-t 089bc5aa4e Add support for the Cyclone II 2024-03-27 12:58:50 -03:00
Gwenhael Goavec-Merou 02c33271e0 lattice,xilinx: new try to fix (again) uint64_t print format 2024-03-18 06:57:59 +01:00
Gwenhael Goavec-Merou 1d276ebb9d spiFlashdb: MX25R6435F: added missing bp bit 4 2024-03-15 07:02:31 +01:00
Gwenhael Goavec-Merou 41ecac5d0c
Merge pull request #447 from pu-cc/spiflashdb-mx25r643f
spiFlashdb: add MX25R6435F and fix SPIFlash::bp_to_len
2024-03-15 07:00:12 +01:00
Patrick Urban 972ded1298 spiFlashdb: add MX25R6435F and fix SPIFlash::bp_to_len 2024-03-15 00:44:17 +01:00
Patrick Urban 7dc3ff7803 gatemate: fix jtag-spi-bypass with dirtyJtag 2024-03-15 00:13:12 +01:00
Patrick Urban e52d647d7b gatemate: fix passive spi segfaults and improve verbosity 2024-03-15 00:11:11 +01:00
Patrick Urban 5bb8ce83b3 gatemate: fix CFG_MD typos 2024-03-15 00:07:05 +01:00
Patrick Urban 2e5c35edde gatemate: remove flash reset, power_up and read_id duplicates 2024-03-14 23:31:34 +01:00
Patrick Urban 1304f67f1b gatemate: fix unintended gpio access with dirtyJtag cables 2024-03-14 18:02:50 +01:00
Gwenhael Goavec-Merou f1bf4fdf57 jtag,main,xilinx: fix warnings, lint 2024-03-09 10:21:21 +01:00
Gwenhael Goavec-Merou 6366518ff7 device,ftdiJtagMPSSE,jtag: check/lint happy 2024-03-07 06:58:31 +01:00
Gwenhael Goavec-Merou 6dc2e752f4 ch347jtag: drop unused sync_cb 2024-03-07 06:57:27 +01:00
Uwe Bonnes e299061992 xilinx.cpp: After programming, go to bypass
Needed for xc7s50 on VMM3 boards to detect FLASH
2024-03-04 15:33:25 +01:00
Gwenhael Goavec-Merou bcbd8aa0e3 new board: olimex_gatemateevb Olimex GateMate A1 EVB 2024-03-03 08:25:55 +01:00
Uwe Bonnes 645471a16c spiFlashdb.hpp: Detect N25Q256A. 2024-03-01 13:38:23 +01:00
Uwe Bonnes f57abf9024 Add Trenz TEC0330 board. 2024-03-01 13:38:12 +01:00
Uwe Bonnes 88c4d86e63 Add xc7vx330t 2024-03-01 10:50:28 +01:00
Uwe Bonnes ae39b2c556 board.hpp: Add TE0712-8 Board (XC7A200TFBG484) 2024-02-28 22:46:01 +01:00
Gwenhael Goavec-Merou a2d8bc861f
Merge pull request #437 from UweBonnes/xc6v
Add spilOverJtag for Virtex6
2024-02-28 22:03:53 +01:00
ZhiYuanNJ 4af0bf6ed5
update CH347 (#424) 2024-02-28 20:44:49 +01:00
Uwe Bonnes a926ab9b88 Add (Cern) VMM3 board 2024-02-28 11:50:10 +01:00
Uwe Bonnes 0e99360d1c Add (Cern) VEC_V6 Board 2024-02-28 11:50:10 +01:00
Uwe Bonnes 354d3f86ab Virtex6: Add spiOverJtag for Virtex6, detect xc6vlx130 and provide bitfile for xc6vlx130tff784 2024-02-28 11:50:10 +01:00
Uwe Bonnes 956d9355a6 Add S25FL128L flash 2024-02-28 11:50:10 +01:00
Gwenhael Goavec-Merou 85d9ca5d20 board: added digilent cmoda7_15t 2024-02-26 21:18:33 +01:00
Gwenhael Goavec 0182d592be dfu,ftdipp_mpsse: sprintf -> snprintf 2024-02-20 20:59:13 +01:00
Gwenhael Goavec-Merou 3165552994 DFU: fix code to accept tinyDFU implementation (where not altsettings have an DFU descriptor) 2024-02-15 06:45:13 +01:00
Giovanni Bruni ffc519c0e2 lattice: improve info about "BSE Error Code" from Device Status Register 2024-02-13 09:32:30 +01:00
Giovanni Bruni e923ef4059 lattice nexus boards: change from CABLE_DEFAULT (i.e. 6MHz) to CABLE_MHZ(1) (i.e. 1MHz)
as at 6MHz the download of bitstreams is not stable.

With "not stable" we mean that:
- when dealing with Certus/Crosslink, most of the times it works
- when dealing with CertusPro devices, most of the times it doesn't work

We think this is due to the size of the bitstream and the way that the
transmission/storing is handled on the receiving side (i.e. the FPGA).
2024-02-13 09:24:47 +01:00
Giovanni Bruni 0f9422f09a latticeBitParser: add support for loading Lattice (Nexus) encrypted bitstreams,
by adding key and preamble of encrypted bitstreams to if statements.
2024-02-13 09:22:34 +01:00
Michael Davidsaver daa1e38799 xvc client: handle failed ll_write()
Avoids "Send instruction failed" in a tight loop...
2024-02-11 14:25:00 -08:00
Michael Davidsaver 4c737b2b96 xvc client ensure send() entire buffer 2024-02-11 14:25:00 -08:00
Gwenhael Goavec-Merou 39be00fd56
Merge pull request #427 from jgroman/master
Fix Tang Primer 25K SRAM loading when flash is erased
2024-02-02 13:09:45 +01:00
jgroman eba9c37027 Fix SRAM loading on invalid flash 2024-02-02 12:54:17 +01:00
sigmaeo fc58ffed38
Update spiFlashdb.hpp for Macronix MX25L3233F used on Cmod A7-35T
Digilent changed from Micron N25Q032A to Macronix MX25L3233F in 2020/2021, so this flash is needed in openfpgaloader to load to Cmod A7-35T
2024-02-01 19:48:21 +01:00
Gwenhael Goavec-Merou f9c1aa4eed
Merge pull request #423 from jgroman/master
Add faulty MPSEE cmd 8E workaround
2024-01-29 07:17:50 +01:00
jgroman 33eaf58869 Add faulty MPSEE cmd 8E workaround 2024-01-27 13:02:46 +01:00
Michal Sieron 1aaa1b37ac board: add Antmicro LPDDR4 Tester board
Signed-off-by: Michal Sieron <msieron@antmicro.com>
2024-01-25 12:29:12 +01:00
Michal Sieron 59f5759888 board: add Antmicro DDR5 Tester board
Signed-off-by: Michal Sieron <msieron@antmicro.com>
2024-01-25 12:25:07 +01:00
Michal Sieron 17939d587e board: add Antmicro DDR4 Tester board
Signed-off-by: Michal Sieron <msieron@antmicro.com>
2024-01-25 12:23:27 +01:00
Gwenhael Goavec-Merou 308e47c5c0
Merge pull request #420 from sean-anderson-seco/xilinx-ids
xilinx: Add remaining ZynqMP IDs
2024-01-19 07:25:54 +01:00
Sean Anderson da0f6f6f2a xilinx: Add remaining ZynqMP IDs
The IDs were taken from UG1085 v2.2 table 1-2.
2024-01-18 14:50:23 -05:00
Sean Anderson 9943c3072a lattice: Add all MachXO[23] part IDs
The version field is the only difference between many parts in the
MachXO[23] family, including between different families. Add the version
field to all parts, fixing detection of some MachXO3 parts as MachXO2s.
The id codes were extracted from the BSDL files on Lattice's website.
2024-01-18 13:48:50 -05:00
Chuang Zhu 4148be3d31 part: 0x012bc043 is for LCMXO2-4000HC
I found this when I was trying to program a LCMXO2-4000HC, but
openFPGALoader said it is a LCMX03LF-4300C:

	$ openFPGALoader --detect
	No cable or board specified: using direct ft2232 interface
	Jtag frequency : requested 6.00MHz   -> real 6.00MHz
	index 0:
		idcode 0x12bc043
		manufacturer lattice
		family MachXO3LF
		model  LCMX03LF-4300C
		irlength 8

From what I found on the internet, the idcode for LCMX03LF-4300C seems
to be 0x612BC043:
https://bsdl.info/details.htm?sid=b483da5dec63d6cd88ca59b002289d77
2024-01-11 10:00:02 +08:00
Gwenhael Goavec-Merou a3826614b3 gowin: writeFLASH: increase delay before CRC check (required for 9K device) 2024-01-09 19:56:53 +01:00
Gwenhael Goavec-Merou 0b59efcb42 src/gowin: GW5A/SPI flash: adding delay after erase flash and after SPI mode instruction. Seems fixed write error. 2024-01-09 18:48:21 +01:00
Gwenhael Goavec-Merou 62ad3a3003 gowin: fix flash erase for GW1NSR-4C: during shiftDR sequence TDI MUST be 0x0000 2024-01-04 07:24:02 +01:00
Gwenhael Goavec-Merou c51dbcb0ed
Merge pull request #410 from pu-cc/gatemate-chain-fix
gatemate: fix configuration byte alignment in jtag chains
2023-12-27 14:42:29 +01:00
Patrick Urban 001f20c884 gatemate: use more suitable change to RUN_TEST_IDLE state 2023-12-27 13:38:13 +01:00
Catherine 8c6c0ee85a Add WebAssembly support. 2023-12-22 21:07:33 +00:00
Catherine bca3bd6623 Use correct format specifier for printing uint64_t. 2023-12-22 21:07:23 +00:00
Gwenhael Goavec-Merou cd40de37cb main: allows mcufw only mode for gowin 2023-12-14 13:13:48 +01:00
Gwenhael Goavec-Merou 22f33618b0 gowin: mcufw may be written without fs (but this erase all memory) 2023-12-14 13:13:29 +01:00
Gwenhael Goavec-Merou 2093ce7520 gowin: fix gw1n external flash access 2023-12-14 11:48:14 +01:00
Gwenhael Goavec-Merou 1dbc9e664b gowin: programFlash/writeFlash: disable previous rewrite (fix write with tangnano4k) 2023-12-14 11:38:34 +01:00
Patrick Urban 1dfdec6ce1 gatemate: fix configuration in jtag chains 2023-12-12 10:21:30 +01:00
Gwenhael Goavec-Merou ed547ed893 boards: adding AMD Virtex UltraScale+ FPGA VCU1525 Acceleration Development Kit 2023-12-11 12:23:37 +01:00
Gwenhael Goavec-Merou d8186c5e8a gowin: GW5AST work around 2023-12-11 07:20:37 +01:00
Gwenhael Goavec-Merou 1c7a4afd01 ftdipp_mpsse: display/typo 2023-12-11 07:18:02 +01:00
Gwenhael Goavec-Merou bd917d51ef gowin: try second eraseSRAM before writeSRAM. Not always working but better... 2023-12-10 08:14:06 +01:00
Tim Paine b70a3991cc Add pynq-z1 board 2023-12-08 14:51:38 -05:00
Gwenhael Goavec-Merou 2a2435ecbe board: Xilinx KCU105 (Kintex Ultrascale xcku040) 2023-12-08 16:00:59 +01:00
Gwenhael Goavec-Merou 807d794703 latticeBitParser: add ECP3 VERIFY ID support (avoid to fail with bitstream) 2023-12-08 07:07:35 +01:00
Gwenhael Goavec-Merou fb587e73d8 gowin: Fix clk cycle after sending a command, don't read status register programSRAM sequence 2023-12-04 07:25:43 +01:00
Gwenhael Goavec-Merou 0dcd851187 gowin: avoid multiple status register access 2023-12-04 07:05:40 +01:00
Gwenhael Goavec-Merou 01d6244a0f gowin: Fix status register parse for GW5AST 2023-12-04 07:01:56 +01:00
Gwenhael Goavec-Merou 8007ffe263 xilinx: lint more happy 2023-11-25 15:14:32 +01:00
bma 234f7f5a35
XADC and DNA for Xilinx FPGA (#407)
* xilinx: add XADC and DNA args, see https://github.com/cfib/openFPGALoaderXADC/tree/XADC_3
parts: add xcku060
* doc: add xcku060
2023-11-25 08:47:24 +01:00
Gwenhael Goavec-Merou b119a955a6 gowin: GW5A SPI flash support 2023-11-19 13:29:15 +01:00
Gwenhael Goavec-Merou a5f2aa56c8 gowin: displayReadReg update. Now GW5A field are correctly displayed 2023-11-19 10:25:06 +01:00
Gwenhael Goavec-Merou 31c89e21a3 gowin: detectFamily new function 2023-11-19 10:18:45 +01:00
Gwenhael Goavec-Merou 1cbdee362d jtag,main: fix warnings 2023-11-19 10:17:54 +01:00
Mark Featherston 7059c15960 Add user device list for non-fpga JTAG devices 2023-11-10 14:00:24 -07:00
Hans Baier 63c1950f2f Add xc7k70t and small fixes for xc7k160t 2023-11-09 07:45:46 +07:00
Gwenhael Goavec-Merou 1a86fa21ae
Merge pull request #399 from bg-gsl/fix_lattice_bscan_nexus
Fix lattice bscan nexus in clearSRAM()
2023-11-08 12:47:34 +01:00
Giovanni Bruni fa5ff873e4 lattice.cpp: restore bypass instruction in clearSRAM() 2023-11-08 09:49:14 +01:00
Alexey Starikovskiy f71858f96a Rewrite GOWIN algorithms 2023-10-29 08:07:48 +01:00
Gwenhael Goavec-Merou 790d2bccab fsParser: adding GW5A-25 IDCODE 2023-10-29 07:02:12 +01:00
Gwenhael Goavec-Merou 59b56bcc95 all jtag cable: no more hardcoding tdi bit with writeTMS 2023-10-29 06:41:39 +01:00
Gwenhael Goavec-Merou 43ae0d8fdd ftdiJtagMPSSE,jtagInterface: {set|get}{Read|Write}Edge signature 2023-10-29 06:12:09 +01:00
Haakan T Johansson 46ce2e61a7 ALINX AX7101 board. 2023-10-28 17:22:42 +02:00
Giovanni Bruni d58a1c3fc7 lattice: correct mask for sram erase for NEXUS_FAMILY, as it is 0x00 2023-10-26 11:30:24 +02:00
Giovanni Bruni 917e42127b lattice: fix bscan register initialization inside clearSRAM()
For NEXUS family fpgas, the Bscan register is 362 bits long
or 45.25 bytes => 46 bytes.

This error was already correct when programming the sram.
clearSRAM() is instead used when programming the spi flash memory.
2023-10-25 17:43:49 +02:00
Haakan T Johansson a87d689d83 ALINX AX7102 board. 2023-10-24 14:03:18 +02:00
Gwenhael Goavec-Merou fd8497026a ftdiJtagMPSSE,jtag,jtagInterface: allows to force read/write edge configuration (useful to mimic SPI through JTAG) 2023-10-24 07:26:19 +02:00
Gwenhael Goavec-Merou b76a67963e board: SiPEED tang Mega 138K 2023-10-24 06:11:53 +02:00
Gwenhael Goavec-Merou 9a2fe6e157 board: SiPEED tang Primer 25K 2023-10-24 06:07:42 +02:00
Gwenhael Goavec-Merou 988bedefb6 lattice: fix typo / warning 2023-10-23 07:12:45 +02:00
Giovanni Bruni 590611a8d5 lattice: fix the warning "left shift count >= width of type" shown in win32/64 builds 2023-10-20 08:44:20 +02:00
Giovanni Bruni bab386911a spi flash: add mapping for Micron MT25/N25Q128_1_8V (Lattice Certus Versa and CertusPro eval boards) and distinguish between N25Q128 1.8V and 3V memories 2023-10-20 07:57:56 +02:00
Giovanni Bruni 940da5fb2b spi flash: add mapping for Macronix MX25L51245G (CertusPro Versa board and gr740-mini) 2023-10-20 07:55:53 +02:00
Giovanni Bruni 5f6074a7fc lattice: fix bscan width and other minor things for NEXUS family 2023-10-20 07:55:53 +02:00
Giovanni Bruni dce0c050a7 board: add gr740-mini 2023-10-20 07:55:53 +02:00
Giovanni Bruni 2754e99215 cable: add FTDI FT4232HP mapping 2023-10-20 07:55:53 +02:00
Gwenhael Goavec-Merou 0bbf817c92 part: fix typo 2023-10-19 17:46:50 +02:00
sgoadhouse 32ef0bd29c
Adding xcku115 to parts list (#394)
* Adding xcku115 to parts list

* Adding xcku115 to list of supported FPGAs

---------

Co-authored-by: Stephen Goadhouse <stephen.david.goadhouse@cern.ch>
2023-10-19 17:45:42 +02:00
Giovanni Bruni dafe350fbe lattice nexus family: REFRESH (plus config logic reset) in case of fpga in error state and add capabilities to handle the whole 64-bits status register 2023-10-12 09:06:54 +02:00
Giovanni Bruni 5733ca29c3 fix lattice programming and add nexus boards
Fix to lattice programming:
we considered a svf file generated by Lattice Radiant-Programmer
and compared it with the current way lattice devices were programmed.
There were few differences dealing with configuration reset and REFRESH.
These fixes allow us to program an fpga when it is in a state
of error (e.g. there's no bitstream in the SPI Flash).

Lattice parts added:
- CertusPro FPGA

Nexus boards added:
- Certus Versa Evaluation board
- CertusPro Evaluation board
- CertusPro Versa Evaluation board
2023-10-11 09:52:45 +02:00
Gwenhael Goavec-Merou ec35f15a51 altera,efinix,gowin,xilinx: Fix 'Flash SRAM' -> 'Load SRAM' 2023-10-09 14:53:57 +02:00
Patrick Urban 18056180a8 gatemate: do not call ftdi-related routines when using alternative cables 2023-10-04 15:41:10 +02:00
Gwenhael Goavec-Merou ad5ada90db board: trion_t20_bga256_jtag support 2023-10-03 06:51:38 +02:00
Gwenhael Goavec-Merou e9b31425d6 cable: efinix jtag ft2232 variant 2023-10-03 06:48:47 +02:00
Zhongyi Chen c0ad3225cc Add support for Xilinx xczu17eg. It's tested on xczu17eg board with Digilent HS3 at 30Mbps. 2023-09-22 19:33:01 -07:00
Alexey Starikovskiy c82a8e6207 Make CH347 driver faster
Speed up toggleClk

Defer write-only USB transactions to better utilize bus
2023-09-22 07:08:48 +02:00
Alexey Starikovskiy 67159e8297 Move JTAG chain bit init to device_select() 2023-09-22 07:05:20 +02:00
Alexey Starikovskiy 4c39abf51c Add missing pieces to JTAG 2023-09-22 07:01:48 +02:00
Alexey Starikovskiy 85f9791600 drop div_by_5 to allow 2.5MHz clock 2023-09-22 06:55:21 +02:00
Alexey Starikovskiy 01ac90a172 [xilinx] add jtag->flush before sleep 2023-09-21 07:38:25 +02:00
Alexey Starikovskiy b10be9ae8a properly fill dummy arrays 2023-09-21 07:36:41 +02:00
Alexey Starikovskiy d3410e0e30 Update JTAG chain detect 2023-09-21 07:33:54 +02:00
Gwenhael Goavec-Merou afbf0c4ff8 board: adding @lambdaconcept ecpix5_r03 (ft4232) 2023-09-21 06:24:30 +02:00
Alexey Starikovskiy 6c16417ee9 Merge UPDATE_DR and UPDATE_IR handling in JTAG state machines 2023-09-20 07:59:34 +02:00
Alexey Starikovskiy 6a0de15bff Parse LoadingRate field 2023-09-20 07:58:06 +02:00
Alexey Starikovskiy 0c89ac9a44 Add GD32VF103 to misc devices 2023-09-20 07:48:21 +02:00
Gwenhael Goavec-Merou 94b62460c5 jtag: shiftDR: (fix daisy chain) when more than one FPGA, a sequence of '0' before and/or after must be sent instead of '1' (fix #189 and #133 2023-09-17 08:59:26 +02:00
Gwenhael Goavec-Merou 9810735e32 jtag: rework detectChain: try unmasked idcode first 2023-09-14 21:53:27 +02:00
Gwenhael Goavec-Merou 57fc9bcb6f part: machXO3: re-add partially revision 2023-09-14 21:52:53 +02:00
Rodrigo Rengifo 5e9cc7c440 pass along reset paramaters to provide control to the caller
Upsteam-Status: Submitted [https://github.com/traucucayre/openFPGALoader]
  - Submitted to upstream, waiting approval
2023-09-10 20:46:08 -07:00
Gwenhael Goavec-Merou c417ce6746 lattice: spi_put: avoid loop when tx == NULL 2023-09-06 15:50:28 +02:00
Gwenhael Goavec-Merou 61b59ce827 jtag: fix state machine (issue introduce by commit 9e91c3) 2023-09-06 15:47:32 +02:00
Alexey Starikovskiy 9e91c31e31 Fixes for PVS errors 2023-09-01 22:30:24 +03:00
Alexey Starikovskiy 0f3afbcaea Make IDCODE unsigned 2023-08-29 20:01:21 +03:00
Alexey Starikovskiy 8976404b78 Use JTAG state 2023-08-29 20:00:28 +03:00
Alexey Starikovskiy 1908ccd83b make output buffer const 2023-08-29 19:51:41 +03:00
Icenowy Zheng 0de2ea6b39 gowin: add preliminary support for GW5AST-138
Arora V series is a new series of Gowin FPGA, in which the flashing
process has changed.

Add preliminary support by adding FS file line count and deal with the
SRAM writing process. Flash writing is not yet done.

Signed-off-by: Icenowy Zheng <uwu@icenowy.me>
2023-08-12 12:36:06 +08:00
Icenowy Zheng 6a4e107e42 part: add known ID codes for GW5 series
Codes are from Gowin UG704.

Signed-off-by: Icenowy Zheng <uwu@icenowy.me>
2023-08-09 22:11:41 +08:00
Shareef Jalloq 9d22d62a54 part/board: adding Avnet Mini-ITX
Adding the Avnet Mini-ITX dev board that uses the XC7Z100 Zynq-7000
device.
2023-08-07 17:06:02 +01:00
Gwenhael Goavec-Merou e3c8d6be1d board: added QMTECH cyclone10 LP starter kit (10CL016YU484C8G) 2023-08-05 11:49:53 +02:00
Gwenhael Goavec-Merou 7424ea2af9 part: update altera/intel idcode (same idcode for III/IV/10 LP) 2023-08-05 06:47:51 +02:00
Florent Kermarrec baff0cad1e src/part: Fix Xilinx XC2 ident. 2023-08-03 16:12:51 +02:00
Florent Kermarrec 502f38fb00 src/part.hpp: Add Kintex Ultrascale+ KU3P ID-Code. 2023-08-03 16:07:55 +02:00
Florent Kermarrec 4042646434 src/part.hpp: Add separator for each vendor. 2023-08-03 16:07:43 +02:00
Florent Kermarrec c3e0707f6b src/part.hpp: Reorder families (older first, smaller first) and minor alignment cleanups. 2023-08-03 16:07:33 +02:00
Florent Kermarrec a1dea79230 src/part.hpp: Add separator for each chip family. 2023-08-03 16:07:24 +02:00
Gwenhael Goavec-Merou 4c5f6f361b svf_jtag: fix -Wmismatched-new-delete delete -> delete[] 2023-08-03 07:53:59 +02:00
Gwenhael Goavec-Merou 6ef87c5466 ftdipp_mpsse: fix format-zero-length snprintf -> memset 2023-08-03 07:43:56 +02:00
Gwenhael Goavec-Merou 0e1e07262c ftdispi: add missing status_pin 2023-08-03 07:42:06 +02:00
Gwenhael Goavec-Merou 2f8056cba5 usbBlaster: cleanup 2023-07-30 08:54:13 +02:00
Gwenhael Goavec-Merou 75d98d12e9 jtag: merge init_internal to CTOR, pass verbose to jtag drivers 2023-07-30 08:45:57 +02:00
Gwenhael Goavec-Merou 4bf4b94bbb cables: verbose type coherency 2023-07-30 08:39:15 +02:00
Gwenhael Goavec-Merou 469e1c3669 efinix: remove verbose comparison 2023-07-30 07:28:29 +02:00
Gwenhael Goavec-Merou 76f84c1190 ftdipp_mpsse: _verbose int8_t -> bool 2023-07-30 07:23:19 +02:00
Gwenhael Goavec-Merou c41ef7539c ftdispi: convert verbose bool -> int8_t 2023-07-30 07:19:17 +02:00
Gwenhael Goavec-Merou baeb9d52ec
Merge pull request #358 from inkdot7/decimal_busdev
Parse USB bus:dev as decimal integers, to be consistent with `--scan-usb`.
2023-07-29 18:10:48 +02:00
Haakan T Johansson bed17f3be8 Parse USB bus:dev as decimal integers, to be consistent with --scan-usb.
Do not accept auto-detected base 0 (e.g. prefix '0x' for hex), since '0'
prefix gives an octal interpretation, and the user is likely to copy
values from `--scan-usb` or `lsusb` that could then be misinterpreted,
e.g. 005:010.
2023-07-29 09:49:52 +02:00
Haakan T Johansson 4f7a4c33aa Tell USB bus and address when ftdi open fails, when bus and addr both non-zero. 2023-07-29 08:52:16 +02:00
Gwenhael Goavec-Merou 3955a70843 jtag: fix warning (uninitialized tms) 2023-07-27 07:39:20 +02:00
Gwenhael Goavec-Merou ab9eff7412 jlink: fix warning (uninitialized length) 2023-07-27 07:35:14 +02:00
Gwenhael Goavec-Merou 1dba0572ff lattice: fix warning (uninitialized rx_buf) 2023-07-27 07:18:59 +02:00
Gwenhael Goavec-Merou a1e9d3f7db main: (SPI mode) sanity check: print error and quit when manufacturer is unknown 2023-07-27 07:15:49 +02:00
Gwenhael Goavec-Merou a89fc54f29 cable: ch347: fix for CI (libusb_strerror with a cast in -> libusb_error, fix libusb callback signature) 2023-07-26 08:37:39 +02:00
Alexey Starikovskiy 0fc8ba10a8 Add WCH CH347T(mode #3) JTAG cable
Signed-off-by: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
2023-07-26 08:17:57 +02:00
Gwenhael Goavec-Merou 8ffa024a95 spiFlash: temporary disable read extended (#345) 2023-07-24 14:45:13 +02:00
Stéphane Chevigny 91f2900f0c add support for colorlight-i9+ board + spiOverJtag/spiOverJtag_xc7a50tfgg484.bit.gz 2023-06-30 11:36:32 +02:00
Gwenhael Goavec-Merou 3e25a33346 boards: added support for 14bits 125MHz redpitaya board (7010) 2023-06-29 16:59:42 +02:00
Gwenhael Goavec-Merou 1f5d6cb373 xilinx: rework error message for zynqXX in SPI_MODE 2023-06-01 20:33:27 +02:00
Andrew Dennison 87b17ed9bf efinix: support using JTAG interfaces 2023-06-01 11:05:26 +10:00
Andrew Dennison ec82dd6467 jlink: support J-Link BASE and J-Trace PRO 2023-05-29 11:57:47 +10:00
Andrew Dennison 23d65823aa jlink: report skipped devices with verbose 2023-05-29 11:57:47 +10:00
Andrew Dennison bddfe97997 jlink: suport writeTDI() with tx=NULL
fixes crash and is consistent with other jtag cables
2023-05-29 11:57:47 +10:00
Gwenhael Goavec-Merou d2f7040527 main: parse_opt: busdev-num: explicitly set hex base 2023-05-28 17:14:48 +02:00
wonderfullook 9331bf7a6b
add sipeed tang nano 20k 2023-05-25 19:24:48 +08:00
William D. Jones 5e98333a8d Fix off-by-one errors in calculating UFM start page. 2023-05-05 02:00:35 -04:00
Gwenhael Goavec-Merou d8bc361e7f lattice: UFM printf -> printInfo 2023-05-01 21:11:22 +02:00
Gwenhael Goavec-Merou caafc8edc3 lattice: bypass refresh instruction for machXO2 2023-05-01 21:07:32 +02:00
Gwenhael Goavec-Merou a0fdccc2a4 lattice: fix cast int vs uint8_t 2023-05-01 01:05:36 +02:00
William D. Jones 0db174ed7e
Add support for flashing UFM on MachXO2 using JEDEC file. (#339)
* Add support for flashing UFM on MachXO2 using JEDEC file.

* Use a better guard value for getUFMStartPageFromJEDEC.

* Fix if-else style in  getUFMStartPageFromJEDEC.
2023-05-01 00:50:16 +02:00
Gwenhael Goavec-Merou 873de96a3b spiOverJtag: added efinix Titanium Ti60 support 2023-04-27 16:41:58 +02:00
Gwenhael Goavec-Merou 07a0708eb8 efinix:
- jtag mode: added spiOverJtag support;
- spiOverJtag: added efinix support: verilog file and t8f81 bitstream
- xyloni: part code for spiOverJtag flash access/load bridge
2023-04-27 16:41:17 +02:00
Balint Cristian 933ed793e8 Add libgpiod v2 api support
Signed-off-by: Balint Cristian <cristian.balint@gmail.com>
2023-04-19 23:27:09 +03:00
Gwenhael Goavec-Merou cd8a143164 DATA_DIR override with environment variable (#333) 2023-04-17 20:55:10 +02:00
Viktor P 4100675a6b Allow VID:PID override for JLink probe 2023-04-17 19:15:04 +03:00
Gwenhael Goavec-Merou 0a9e8a7e4b src/xx: cppcheck 2023-04-15 08:20:05 +02:00
chenzhuoyu cf04d64377 feat: option to use an extra GPIO as the status indicator 2023-04-11 00:36:16 +08:00
nulltek 9aa0e72afb
Add Support for Xilinx Artix-7 a25t (xc7a25t) 2023-04-07 17:33:16 +12:00
Gwenhael Goavec-Merou a43f94fcf5 spiFlashdb: Windbond w25q80bv 2023-04-03 23:26:03 +02:00
Gwenhael Goavec-Merou ccdcc49cb0 gowin: fix typo 2023-03-17 19:42:23 +01:00
Gwenhael Goavec-Merou 6161e550c1 main: deduplicate messages about board's default cable/user's selection, display warn always instead of when verbose mode is set. 2023-03-09 21:19:35 +01:00
Maik Ender 4161c79920
Add Support for Xilinx KCU116 (#322)
* initial kcu116 support

* add kintex ultrascale plus family to xilinx.cpp

* add docs

* combine xcku and xcvu check

* rebuild bitstream for -1 speedgrade
2023-03-09 20:48:19 +01:00
Gwenhael Goavec-Merou d5f5593421 cmake,usbBlaster: add option to fix firmware path at build time 2023-03-05 23:20:16 +01:00
Gwenhael Goavec-Merou 8c7b110766 spiFlashdb: Macronix MX25L12833 2023-03-05 16:02:22 +01:00
Gwenhael Goavec-Merou 0675cadfe7 spiFlashdb: ST M25P16 2023-03-05 13:14:01 +01:00
Gwenhael Goavec-Merou 4a6e6f0d35 lattice: when loadConfiguration fails -> check if external flash is blank 2023-03-05 10:16:08 +01:00
Gwenhael Goavec-Merou 3babd5d07d spiInterface: add read method 2023-03-05 10:13:08 +01:00
Gwenhael Goavec-Merou a5489e62f8 spiFlash: ST M25P16 2023-03-04 18:14:37 +01:00
Gwenhael Goavec-Merou cda14f24e3 board: hseda-xc6slx16 2023-03-04 17:55:02 +01:00
Gwenhael Goavec-Merou c35f21a5be latticeBitParser: add SPI_MODE missing instruction (issue #324) 2023-03-04 08:02:24 +01:00
hycrypt 3d9717f7c3 add the skip_load_bridge and skip_reset arguments also for Xilinx devices 2023-03-03 11:18:08 +01:00
Gwenhael Goavec-Merou 9c1876818f README,main: add remote bitbang for ip and port 2023-03-02 13:55:40 +01:00
Gwenhael Goavec-Merou 500c33e037
Merge pull request #318 from trabucayre/remoteBitbang
remoteBitbang_client: adding new protocol (client side)
2023-03-02 13:50:12 +01:00
Gwenhael Goavec-Merou fd97c244d9 remoteBitbang_client: adding new protocol (client side) 2023-03-02 13:47:11 +01:00
Gwenhael Goavec-Merou 7de494f666 adding Opal Kelly XEM8320 board 2023-02-28 22:40:41 +01:00
AEW2015 fe0f0ac0c0 Artix+ AU25P support for Opal Kelly Board 2023-02-28 14:24:49 -07:00
Gwenhael Goavec-Merou 657d98f3c3 args: better --offset description (#319) 2023-02-27 21:15:34 +01:00
Gwenhael Goavec-Merou 567d854edf efinix: fix JTAG: detect family, fix irlen for titanium, add support for bit file, hex file can't be used with titanium 2023-02-26 10:10:46 +01:00
Gwenhael Goavec-Merou 6799115451 parts: fix Efinix titanium irlen 2023-02-26 10:02:26 +01:00
Gwenhael Goavec-Merou 64d6b614b6 efinix: in jtag mode fix access to the ll driver 2023-02-25 18:36:04 +01:00
Gwenhael Goavec-Merou d7d414ea55 jtag: adding getter to lowlevel transport driver 2023-02-25 17:15:25 +01:00
Gwenhael Goavec-Merou daf233d983 efinix: in JTAG mode keep bus_addr, device_addr between jtag and spi interfaces 2023-02-25 17:11:55 +01:00
Gwenhael Goavec-Merou ea6b1989d0 ftdipp_mpsse: adding bus_addr, device_addr getters 2023-02-25 17:10:40 +01:00
Gwenhael Goavec-Merou 7f1f9445d4 cable: bus_addr, device_addr: int -> uint8_t 2023-02-25 17:10:01 +01:00
Jiajie Chen 49ae479833 Add flash support for VCU128
VCU128 does not have secondary flash.
2023-02-22 09:51:16 +08:00
Jiajie Chen f54781471b Add initial support for VCU128 2023-02-19 18:39:14 +08:00
Gwenhael Goavec-Merou a0180f0bc6 xvc_server: fix comm when Vivado acts as client 2023-02-18 09:31:25 +01:00
Gwenhael Goavec-Merou a481c1e699 gowin: merge CRC check into one method, check usercode/checksum as fallback when usercode register doesn't match computed file's checksum (issue #279) 2023-02-16 20:02:36 +01:00
Gwenhael Goavec-Merou 6f070d8e97 fsParser: fix usercode/checksum size 2023-02-16 19:59:58 +01:00
Gwenhael Goavec-Merou 2869db7580 libusb_ll: fix typo in scan method 2023-02-16 08:00:39 +01:00
Gwenhael Goavec-Merou 391dcb3dee dirtyJtag: throw exception when getVersion fails, use a #define for TIMEOUT value 2023-02-16 07:59:54 +01:00
Bastian Löher 8e20f1eb7d Fix typo in part name and family. 2023-02-15 15:06:02 +01:00
wdevore 9a09e427e3 Added Lone Dynamics Schoko and Konfekt SBCs 2023-02-11 17:15:45 +01:00
Gwenhael Goavec-Merou 2c7334cc35 src/part: add LCMXO2-256HC, update doc/FPGAs 2023-02-08 20:18:04 +01:00
Bastian Löher b93862bd65 Sort. 2023-02-08 14:08:45 +01:00
Bastian Löher d4095ddb93 Add ID code for part xa2c64a (Coolrunner-II). 2023-02-08 14:05:45 +01:00
Ricardo Barbedo 090a16656d Only delete bitstream objects if non-null 2023-02-07 10:30:28 +01:00
Ricardo Barbedo beb93d8321 Replace the string arguments usage with a bitfield 2023-02-06 15:17:53 +01:00
Ricardo Barbedo 0536ab4754 Add target-flash and secondary-bitstream CLI options for VCU118 2023-02-06 11:23:10 +01:00
Olivier Galibert 5a00f0d184 part: Add all cyclone V variant
board: Add the Terasic C5G
2023-01-29 15:35:47 +01:00
Gwenhael Goavec-Merou 4a07ffa2b8
Merge pull request #297 from barbedo/vcu118-flash-ir-codes
Add support for XCVU9P IR length and codes
2023-01-24 06:31:40 +01:00
Ricardo Barbedo 43e6c0c867
Add support for 4-byte QSPI flash addressing (#295)
* Add support for 4-byte QSPI flash addressing

* Avoid code duplication
2023-01-23 15:18:46 +01:00
Ricardo Barbedo ad9ad539ff Add support for XCVU9P IR length and codes 2023-01-21 14:45:50 +01:00
Ricardo Barbedo e5481787d8 Fix VCU118 board part name and IR length 2023-01-21 14:45:50 +01:00
Ricardo Barbedo 85fd2f316f Add support for MT25QU01 flash 2023-01-21 13:47:51 +01:00
Michal Sieron d127fb9554 bitparser: replace _raw_data.size() with _file_size
Signed-off-by: Michal Sieron <msieron@antmicro.com>
2023-01-20 09:09:41 +01:00
Michal Sieron bc53c1d022 bitparser: check bitstream length in the file
It was present before, but for some reason was removed in 16932786.

Signed-off-by: Michal Sieron <msieron@antmicro.com>
2023-01-19 21:07:40 +01:00
Marcus Andrade 67563983f9 feat(board): add support for Terasic DE10-Lite 2023-01-09 15:52:54 -06:00
Icenowy Zheng fdf4c94d83 boards: add Sitlinv STLV7325
Sitlinv STLV7325 is a board with XC7K325T-FFG676.

Add support for it.

The board does not have JTAG cables on board, however its vendor
provides an option to buy a FT4232-based JTAG cable with the board, so
the default cable is set to ft4232.

Signed-off-by: Icenowy Zheng <uwu@icenowy.me>
2023-01-06 15:22:43 +08:00
Marcus Andrade 14fce33109 feat(board): add support for Arrow/Terasic DECA 2023-01-04 13:11:21 -06:00
Gwenhael Goavec-Merou cc1bc89f29 boards: Trenz TEI0010 - AnalogMax 2023-01-04 19:00:08 +01:00
Gwenhael Goavec-Merou 751b057596 parts: Intel MAX10 (10M08) 2023-01-04 18:53:25 +01:00
Gwenhael Goavec-Merou 8ee65e7f9d usbBlaster,ftdiJtagMPSSE: fix alignment for 1 bit len read transaction 2023-01-04 18:50:13 +01:00
Gwenhael Goavec-Merou 84aa0d14b9 main: xvc_server: catch exception 2023-01-02 18:02:43 +01:00
Gwenhael Goavec-Merou 2182a8ff7f xvc_server: don't stop when connection close, rework read to return code for error and for disconnect 2023-01-02 18:02:28 +01:00
Gwenhael Goavec-Merou c28e955bb9 usbBlaster: change tx_len size (16 -> 32) to fix a potential overflow when log2(xfer_len) > 16 in toggleClk method 2023-01-02 08:57:52 +01:00