Commit Graph

679 Commits

Author SHA1 Message Date
Gwenhael Goavec-Merou 61aa0d4785 libgpiodJtagBitbang: update copyright + lint 2022-07-25 19:08:23 +02:00
balika011 421eefc605 MCU firmware isn't added to the checksum 2022-07-24 17:51:24 +02:00
balika011 e44af80776 use RawParser for gowin mcu flashing 2022-07-24 17:31:36 +02:00
balika011 c3d13e8b75 remove unneeded code 2022-07-24 17:30:59 +02:00
Niklas Ekström bb6d286736 Remove unnecessary null check 2022-07-22 10:14:53 +02:00
Niklas Ekström f69ce8a465 Only show libgpiod cable in list if enabled 2022-07-22 10:01:23 +02:00
Niklas Ekström 4ed3ff835c Clarify code by using different API function
Use gpiod_chip_open instead of gpiod_chip_open_by_name, and thus avoid
having to remove "/dev/" prefix.
2022-07-22 09:52:12 +02:00
balika011 e847c3a7b0 Add connecting MCU to JTAG support for GW1NSR-4C 2022-07-20 23:32:21 +02:00
balika011 0581803def Add MCU Firmware flashing support for GW1NSR-4C 2022-07-20 23:32:16 +02:00
Niklas Ekström 8d920d7ed0 Bugfix to allow NULL tx pointer
Also set the _clkHZ variable which is needed for timing operations
such as erase.
2022-07-18 18:09:34 +02:00
Niklas Ekström 12955b8711 Initial commit of libgpiod JTAG driver
Not tested yet.
2022-07-18 18:09:34 +02:00
Gwenhael Goavec-Merou 3e35944a4f xvc_server: fix message size 2022-07-06 21:36:57 +02:00
Gwenhael Goavec-Merou 975c40a00a enable xvc only for Linux OS 2022-07-06 21:14:25 +02:00
Gwenhael Goavec-Merou a90a7b6fa5 main: enable xvc_server 2022-07-06 21:00:24 +02:00
Gwenhael Goavec-Merou 34ff4f4020 xvc_server: first draft 2022-07-06 20:58:19 +02:00
Gwenhael Goavec-Merou e91ae5e65b xvc_client: fix frequency convertion 2022-07-06 20:57:47 +02:00
Gwenhael Goavec-Merou de42f8b239 ftdiJtagMPSSE: add writeTMSTDI method with full tms & tdi buffer. Always return TDO buffer 2022-07-03 21:44:03 +02:00
Gwenhael Goavec-Merou f364ea2c8f
Merge pull request #239 from BBBSnowball/better-message-if-cmsisdap-disabled
cmsisDAP: better error message if support is not enabled
2022-07-02 22:30:18 +02:00
Benjamin Koch 8c9a86699b cmsisDAP: better error message if support is not enabled 2022-07-02 17:24:02 +02:00
Benjamin Koch 80cf8edc31 cmsisDAP: fix crash in case hid device cannot be opened 2022-07-02 17:03:31 +02:00
Gwenhael Goavec-Merou 2f30668dbc ORBTrace Mini support (DFU mode) 2022-06-18 22:55:58 +02:00
Gwenhael Goavec-Merou 702ca39300 stop using get_state and promote the use of get_status 2022-06-18 22:50:55 +02:00
Gwenhael Goavec-Merou de2cdcb67a ftdispi: add missing index param 2022-06-18 20:21:13 +02:00
Gwenhael Goavec-Merou 780ea66384 DFU: fix potential leak 2022-06-18 18:47:27 +02:00
Gwenhael Goavec-Merou e21a251af3 DFU: fix detect -> bypass bitstream 2022-06-18 18:39:58 +02:00
Gwenhael Goavec-Merou e278b87a64
Merge pull request #236 from Icenowy/gw2a
Add GW2A support
2022-06-16 07:06:41 +02:00
Gwenhael Goavec-Merou 0779034921
Merge pull request #233 from Icenowy/ep4ce115
Add EP4CE115 support
2022-06-16 06:23:35 +02:00
Icenowy Zheng 3e00756976 part: add GW2A(R)-18(C)
Add JTAG ID code for GW2A(R)-18(C), tested with GW2A-18C on Sipeed Tang
Primer 20K.

Signed-off-by: Icenowy Zheng <uwu@icenowy.me>
2022-06-16 09:54:02 +08:00
Icenowy Zheng fe0b4d347b gowin: add support for GW2A
GW2A has no internal flash, and it uses a yet unknown checksum
algorithm.

Support it by forcing external flash and skip checksum check now.

Signed-off-by: Icenowy Zheng <uwu@icenowy.me>
2022-06-16 09:52:44 +08:00
Icenowy Zheng 37dbaba6b8 part: add EP4CE115
Altera EP4CE115 is a part from Cyclone IV E line.

Add it to the part database.

Signed-off-by: Icenowy Zheng <uwu@icenowy.me>
2022-06-16 08:52:32 +08:00
Gwenhael Goavec-Merou 82c17f6a7d dfu: display error code 2022-06-14 23:14:01 +02:00
Gwenhael Goavec-Merou 4d69675041 dfu: check iProduct and iInterface -> set to a default string when empty 2022-06-14 23:09:43 +02:00
Gwenhael Goavec-Merou c64f1970d6 spiFlash: stop if jedec_id == 0xffffff 2022-06-02 08:52:56 +02:00
Gwenhael Goavec-Merou 1f842e4ebc cable: add missing mpsse_bit_config index 2022-06-02 08:51:47 +02:00
Rengifo, Rodrigo dec1a0920f add means to set cable index from command line 2022-06-01 07:17:38 -07:00
Gwenhael Goavec-Merou 610a495898 main: skip-reset fix typo 2022-05-28 18:06:51 +02:00
Gwenhael Goavec-Merou 26ea58c305 main: always check if board is not null before access 2022-05-28 17:20:53 +02:00
Gwenhael Goavec-Merou 051e2ecbfb add option to bypass reset in SPI write mode. Adapt altera accordingly 2022-05-24 07:29:35 +02:00
Gwenhael Goavec-Merou e066c7f5b0
Merge pull request #222 from el-coder-sb/add-skip-sram-cmd
Add skip sram cmd
2022-05-24 07:16:24 +02:00
Simon Buhrow 847a5040cf add skip_load_bridge cmd-line parameter 2022-05-23 11:51:16 +02:00
Gwenhael Goavec-Merou 056518e7c7 ihexParser: check buffer size, increase if required 2022-05-22 07:34:09 +02:00
Gwenhael Goavec-Merou e1eff76162
Merge pull request #228 from MPLew-is/zcu106
Correct part number for ZCU106 board
2022-05-16 08:52:28 +02:00
Mike Lewis 5295544200 Correct part number for ZCU106 board 2022-05-16 00:44:59 -06:00
Gwenhael Goavec-Merou c9fb3f4065 latticeBitParser: fix end header position with MACHOX3D .bit file 2022-05-14 19:00:21 +02:00
Gwenhael Goavec-Merou a4d5fd8448 lattice: MACHXO3D no exception when flash-sector is not provided in SRAM mode 2022-05-14 18:54:01 +02:00
Xiretza ee3b6965f0 fix(part.hpp): use uint32_t instead of int for fpga_list index
This resulted in an error with GCC 12:

In file included from src/main.cpp:29:
src/part.hpp:148:1: error: narrowing conversion of ‘2165379139’ from ‘unsigned int’ to ‘int’ [-Wnarrowing]
  148 | };
      | ^
2022-05-14 15:36:02 +02:00
Mike Lewis 76f13604d1 Add initial support for ZCU106 development board 2022-05-14 02:48:23 -06:00
Gwenhael Goavec-Merou f83670996e spiFlashdb: adding S25FL512S 2022-05-14 10:16:08 +02:00
Gwenhael Goavec-Merou 74eda1cd8a spiFlashdb: N25Q64 part 2022-05-10 19:07:56 +02:00
Hans Baier 6a2a62cae6 support Kintex XC7K420T 2022-05-10 13:07:47 +07:00
Gwenhael Goavec-Merou 2bbf372a1d
Merge pull request #218 from ejdan/efinix-jtag
efinix: support loading a bitstream to SRAM using only JTAG pins (no GPIO)
2022-05-02 07:05:37 +02:00
Gwenhael Goavec-Merou 84d5c59dfe ftdipp_mpsse: don't throw exception when iProduct is empty: display warn and use empty string 2022-05-01 17:09:53 +02:00
Gwenhael Goavec-Merou db410839af spiInterface: unprotect_flash: fix return. Improve messages 2022-04-30 20:16:30 +02:00
Anders Ejdeling e094494a59 efinix: support loading a bitstream to memory using only JTAG pins (no GPIO). Tested with Trion T120 BGA324 Development Kit but should work on T20BGA324, T20BGA400, T35, T55, T85, and T120 FPGA. 2022-04-29 15:57:20 +02:00
Gwenhael Goavec-Merou d7365495aa spiFlash: fix display: when bp_len==0 -> set bp/tb = 0, otherwise parse reg 2022-04-23 17:58:33 +02:00
Gwenhael Goavec-Merou 5692482152 jlink: write_data -> writeTMSTDI. Fix behaviour 2022-04-17 12:33:37 +02:00
Gwenhael Goavec-Merou b12d174131 part: add 5CEBA9 entry (issue #213) 2022-04-11 19:14:58 +02:00
Gwenhael Goavec-Merou 80eeaef6ab ip CLI arg for XVC 2022-04-11 06:53:22 +02:00
Gwenhael Goavec-Merou 188d7518d1 jlink: check usb_claim error 2022-04-11 06:51:34 +02:00
Gwenhael Goavec-Merou 7bfce0fb2b xvc_client: Xilinx Virtual Cable client PoC 2022-04-10 16:02:39 +02:00
Patrick Urban dce9406599 gatemate: fix failed signal polarity and update documentation
* CFG_FAILED signal is no longer inverted
* minor fix in CFG_MD settings in doc/vendors/colognechip.rst
* update evaluation board URL

Signed-off-by: Patrick Urban <patrick.urban@web.de>
2022-04-09 13:08:57 +02:00
Gwenhael Goavec-Merou 08c460135e xilinx: fix wait until done for spartan3e 2022-04-02 11:53:46 +02:00
Gwenhael Goavec-Merou 285cbde7f4 part: explictly add spartan3e and xc3s250e 2022-04-02 11:52:58 +02:00
Gwenhael Goavec-Merou 7a8ed993f3 spiFlash: bulk_erase: check bp before erase 2022-03-31 06:36:37 +02:00
Gwenhael Goavec-Merou f615627b3c
Merge pull request #204 from rstephan/p_one_flash
Support for the Microchip SST25VF040B flash
2022-03-30 06:45:53 +02:00
Stephan Ruloff 648d8b9e3b Removed `must_relock` part for the "SST25VF040B" as requested 2022-03-29 18:30:23 +02:00
Sylvain Munaut 7a5284212b part: Add support for Kintex Ultrascale XCKU040
Signed-off-by: Sylvain Munaut <tnt@asuka.home.246tnt.com>
2022-03-29 10:40:52 +02:00
Sylvain Munaut 6578bed6aa part: Add support for ZynqMP Ultrascale Plus XCZU11EG
Signed-off-by: Sylvain Munaut <tnt@asuka.home.246tnt.com>
2022-03-29 10:40:38 +02:00
Gwenhael Goavec-Merou f9eb32c778 spiFlash: handle case where TB is not configurable 2022-03-29 07:49:08 +02:00
Gwenhael Goavec-Merou b8fd59e770 ftdipp_mpsse: don't display error when attach kernel driver, when the device hasn't been detach before or when driver isn't loaded. 2022-03-28 18:53:36 +02:00
Gwenhael Goavec-Merou 27f0ff2816
Merge pull request #205 from rstephan/spartan3e
Spartan3E (xc3s500evq100) and Papilio One
2022-03-28 18:37:43 +02:00
Stephan Ruloff 6da87c3d24 xc3s500e IDCODE: revision set to zero. 2022-03-28 18:14:25 +02:00
Stephan Ruloff 8337a926fb Removed TOP/BOTTOM settings from SST25VF040B 2022-03-28 17:54:43 +02:00
Steven Koo 8b6b09ea25 part: Add kintex7 variant xc7k410t 2022-03-28 10:43:11 -05:00
Gwenhael Goavec-Merou 9243a21fe2 xilinx: adapts flow_disable/flow_enable for xc3s, adding custom method to load bitstream for xc3s 2022-03-27 18:11:31 +02:00
Gwenhael Goavec-Merou 386f89ea3a latticeBitParser: when .bit is encrypted use Part: from header to retrieve idcode 2022-03-27 07:51:18 +02:00
Gwenhael Goavec-Merou da3dfff609 part: re-adding version nibble to remove ambiguities between U, UM and UM5G 2022-03-27 07:47:38 +02:00
Gwenhael Goavec-Merou 10ee84bb6d jtag: when verbose > 1: display unfiltered/raw IDCODE 2022-03-27 07:14:14 +02:00
Gwenhael Goavec-Merou 65c1d2ff0e ftdipp_mpsse: change verbose level 2022-03-27 07:13:40 +02:00
Stephan Ruloff b60f37b56d Support for the Papilio One board 2022-03-25 21:44:05 +01:00
Stephan Ruloff 8c4b1b3afd Support for the Microchip SST25VF040B flash.
Programming is slow, only one byte at a time :-(
2022-03-25 21:15:09 +01:00
Gwenhael Goavec-Merou 7d730eeeb6 ftdiJtagxx: check lowlevel init return value 2022-03-20 16:27:51 +01:00
Gwenhael Goavec-Merou 5d22374408 ftdipp_mpsse: robustness: check all function return code / improve a bit error message 2022-03-20 16:20:57 +01:00
Gwenhael Goavec-Merou 7ed9c201ce anlogicCable: remove unused _verbose, _tdi, _tms 2022-03-20 10:10:30 +01:00
Gwenhael Goavec-Merou cdc68b5dfc efinixHexParser: remove unused reverseOrder 2022-03-20 08:51:18 +01:00
Gwenhael Goavec-Merou 3f5aca5248 colognechip: explicitly set _spi or _ftdi_jtag to null, drop useless else if -> if not _spi it must be jtag 2022-03-20 08:44:55 +01:00
Gwenhael Goavec-Merou 684a4363ba efinix: fix dumpFlash: add override, remove filename param and use _filename from constructor 2022-03-20 08:27:13 +01:00
Gwenhael Goavec-Merou 648de05e6d colognechip: fix dumpFlash: add override, remove filename param and use _filename from constructor 2022-03-20 08:25:51 +01:00
Gwenhael Goavec-Merou 74790c40b6 configBitstreamParser: string::find return size_t not uint32_t 2022-03-20 08:24:49 +01:00
Jean THOMAS 80e917fcf1 Use uint32_t for misc_dev_list (fixes #196) 2022-03-19 12:13:07 +01:00
Gwenhael Goavec-Merou 3cef7f920d board: Xilinx ZCU102 2022-03-19 10:08:51 +01:00
Gwenhael Goavec-Merou 8d3310d486 part: ZynqMPSoC XCZU9EG 2022-03-19 10:06:44 +01:00
Gwenhael Goavec-Merou 3210bcd9cb
Merge pull request #194 from infphyny/qmtech_5cefa5f23
Add qmtechCycloneV_5cefa5f23 board and spiOverJtag/spiOverJtag_5cefa5…
2022-03-13 15:25:01 +01:00
Stéphane Chevigny 2ed5eb5eec Rename 5cefa5f23 to 5ce523, add documentation for board and fpga 2022-03-13 09:14:52 -04:00
Gwenhael Goavec-Merou 9f025e8278 jlink: fix workflow failure 2022-03-12 19:01:54 +01:00
Gwenhael Goavec-Merou 18100ec0f3 cable: new SEGGER J-Link support (PoC) 2022-03-12 18:46:23 +01:00
Stéphane Chevigny 7b36bdc893 Add qmtechCycloneV_5cefa5f23 board and spiOverJtag/spiOverJtag_5cefa5f23.rbf.gz bitstream to write flash 2022-03-12 09:25:22 -05:00
Gwenhael Goavec-Merou 15fb5ac591 board: PYNQ-Z2 2022-03-12 14:54:24 +01:00
Stéphane Chevigny ee08b1ac39 add Cyclone V 5CEFA5 in part database 2022-03-11 14:01:50 -05:00
Gwenhael Goavec-Merou 964c7d6659 ftdi MPSSE / jtag: add option to use neg edge for TDO's sampling 2022-03-11 07:45:48 +01:00