Commit Graph

760 Commits

Author SHA1 Message Date
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
Marcus Andrade 0591af56b7 feat(board): add support for Trenz C10LP-RefKit 2022-12-25 15:53:45 -06:00
Cedric de Wijs 483304344f more typo fixes 2022-12-18 23:29:21 +01:00
Cedric de Wijs 0bdef7bab1 typo's, added git as dependency 2022-12-18 13:56:54 +01:00
Ricardo Barbedo 0855efb29f Add initial support for the VCU118 board 2022-12-11 22:11:50 +01:00
Gwenhael Goavec-Merou e536634ada adding LiteX-Acorn-Baseboards support 2022-12-11 20:39:32 +01:00
Gwenhael Goavec-Merou fb8c1a5f97 altera,intel: adding an option to bypass spiOverJtag automatic bitstream selection by providing the bitstream file path 2022-12-10 22:05:37 +01:00
Gwenhael Goavec-Merou 94d0ad6c85 src/ftdispi: typo: replace _holdn by _wpn for spi_config.wpn_pi (fix issue #277). 2022-11-27 15:29:25 +01:00
Gwenhael Goavec-Merou 175312423c src/libusb_ll: typo (ft2232RL -> ft232RL). Fix #276 2022-11-27 09:51:31 +01:00
Haakan T. Johansson 0048431fb2 ALINX AX516 board. 2022-11-26 23:05:30 +01:00
Gwenhael Goavec-Merou 6dfc762b7c src/lattice: allows to use bit file for machxo2 2022-11-26 12:11:41 +01:00
Gwenhael Goavec-Merou 2d885ce064 src/latticeBitParser: support machxo2 (check compress & fill vector<string>) 2022-11-26 12:06:24 +01:00
Gwenhael Goavec-Merou b078aa393a adding nexys A7 (50/100) aka nexys 4 DDR 2022-11-23 13:47:07 +01:00
Martin Braun 42193f1db8 boards: Add USRP X300 and X310
Signed-off-by: Martin Braun <martin.braun@ettus.com>
2022-11-22 20:15:16 +01:00
Gwenhael Goavec-Merou 13fa66bc22 src/xilinx: zynqXX: load only (#268) 2022-11-20 17:08:49 +01:00
Gwenhael Goavec-Merou 2df7606300 posParser: introducing intel/altera POF file parser 2022-11-20 16:46:51 +01:00
Gwenhael Goavec-Merou d5190a3bd4 src/main.cpp: lint/cppcheck 2022-11-12 22:58:17 +01:00
Gwenhael Goavec-Merou a0a68282cd src/main: simplify svf type search 2022-11-12 22:38:10 +01:00
Patrick Dussud 4a5bd0279b Removed the svf programming code from devices and added device independent svf programming in main.cpp
Fixed a type error in svf_jtag.cpp
2022-11-12 13:14:13 -08:00
Gwenhael Goavec-Merou e595953546 src/svf_jtag: cppcheck/lint 2022-11-06 18:33:43 +01:00
Gwenhael Goavec-Merou 0b0055495c
Merge pull request #264 from phdussud/master
improve svf parsing.
2022-11-06 18:13:49 +01:00
Rod Whitby c36eb1d0a8 spiFlash: Fix return value checking polarity and error reporting in protect_flash() and unprotect_flash()
The return value fro flash.enable_protection is an integer, where 0 means success.  So it must be compared to 0 to result in a true value for ret.
If flash.disable_protect() returns non-zero, then ret will be false, so there's no point in doing a std::to_string on ret.  You would need an integer intermediate value if you wanted to print the error value.
2022-11-06 18:56:07 +10:30
Rod Whitby de5aff7a96 spiFlash: Add --bulk-erase command line option
Adds a --bulk-erase command line option for bulk erasure of SPI flash.
2022-11-06 18:56:07 +10:30
Dvir Cohen 2da7696f19
Update board.hpp 2022-10-30 15:05:22 +02:00
phdussud 319d74f872 fix placement of leading { in if and for blocks 2022-10-26 09:16:04 -07:00
phdussud e979f4dd03 improve svf parsing. 2022-10-25 10:55:02 -07:00
Gwenhael Goavec-Merou 02424ca6cd
Merge pull request #263 from gregdavill/bugfix/xilinx-flash
msys2: Fix windows paths
2022-10-23 10:37:48 +02:00
Greg Davill 53e72a944a
pathHelper: Only compile on win builds 2022-10-23 18:52:47 +10:30
Greg Davill 74ac8bba24
msys2: Fix absolute windows paths
- Ensure path DATA_DIR isn't made absolute during compilation
- Use cygpath to create absolute path at runtime
2022-10-23 13:10:45 +10:30
Gwenhael Goavec-Merou 106cdecc14
Merge pull request #260 from jeanbie0/jetson-nano-gpio
Add cable jetson-nano-gpio
2022-10-22 15:07:00 +02:00
Gwenhael Goavec-Merou 077f335dbd src/libusb_ll: adding a libusb_open() return code check: when fails skip rest of the loop 2022-10-19 07:40:31 +02:00
Petr Nechaev 1bbe448f3a Limit automatic read burst length to 64K
Reading of very large binaries (e.g. 32 MB) can cause stack overflow.
Put a reasonable limit on read burst length.
2022-10-16 15:44:33 +03:00
Petr Nechaev 7185bbd127 Support for microchip SST26VF064B flash 2022-10-16 15:32:16 +03:00
Gwenhael Goavec-Merou 228f71d9b5 src/libusb_ll: libusb wrapper (currently limited to scan device), src/main: add scan-usb option 2022-10-15 22:28:06 +02:00
Gwenhael Goavec-Merou 2311f2c6ec src/main: add busdev-num option to select a probe by his bus number / device address 2022-10-15 17:41:30 +02:00
Gwenhael Goavec-Merou 68e519e4af src/ftdipp_mpsse: _bus/_addr: change type to uint8_t, default value to 0 and use cable_t bus_addr/device_addr$ 2022-10-15 17:18:38 +02:00
Gwenhael Goavec-Merou 9e5fcdbe0d src/cable: rename bus/device to bus_addr/device_addr 2022-10-15 16:19:24 +02:00
Gwenhael Goavec-Merou 48126cf84c src/xx: cable implementation: rework to use cable_t directly 2022-10-15 16:17:32 +02:00
Gwenhael Goavec-Merou 3e20dc7082 src/cable: rework cable list. move vid/pid from mpsse_bit_config to cable_t 2022-10-15 16:15:23 +02:00
J Biemar 5a7e73b586 Add cable jetson-nano-gpio 2022-10-14 11:15:02 +02:00
Gwenhael Goavec-Merou 2d66236533 xvc_client: allows to select port 2022-10-06 07:07:17 +02:00
Bastian Löher b3e25bc650 Add support for xc7s_csga225 and the Digilent CMOD S7 board. 2022-09-30 22:27:20 +02:00
Hirosh Dabui 3c9792645e add support for CmodA7-35T digilent fpga board 2022-09-30 21:17:45 +02:00
Gwenhael Goavec-Merou c3fcbaee07 removing test_sfl.svf 2022-09-30 13:59:39 +02:00
Gwenhael Goavec-Merou 47f59d68ef libgpiodJtagBitbang: fix warning 2022-09-17 17:33:58 +02:00
Gwenhael Goavec-Merou 8f59294f45 src/main: add specific -D to enable/disable --device arg 2022-09-17 17:33:25 +02:00
Gwenhael Goavec-Merou fe259fb78d gowin: add MSPI support when GW2A 2022-09-06 21:25:32 +02:00
Gwenhael Goavec-Merou d50b8102aa ftdiJtagBitbang: fix int vs uint32_t 2022-09-04 14:16:56 +02:00
Gwenhael Goavec-Merou 09b65ef4cc gowin: better error message when mismatch between fs idcode and target's idcode 2022-09-04 14:16:02 +02:00
Gwenhael Goavec-Merou 93aa9f4dd3 cable: add lpc-link2 support 2022-08-29 21:03:30 +02:00
Gwenhael Goavec-Merou 27309d4931 cmsisDAP: allows to select interface number 2022-08-29 21:00:32 +02:00
Gwenhael Goavec-Merou 61e959f93d main,board,ftdiJtagBitbang: use pin ID instead of shift 2022-08-23 18:37:43 +02:00
Maciej Nowak 5f7d4d2078 Add Xilinx Kintex UltraScale KCU035 IDCode 2022-08-18 15:25:09 +02:00
Diego Herranz f115608cb1 Add Steppenprobe cable
https://github.com/diegoherranz/steppenprobe

Config taken from OpenOCD repo:
https://sourceforge.net/p/openocd/code/ci/master/tree/tcl/interface/ftdi/steppenprobe.cfg
2022-08-09 18:31:16 +02:00
Gwenhael Goavec-Merou 6a00466137 xilinx: flow_program/xc95: verify write: replace hardcoded number of sections by nb_section 2022-08-04 08:15:29 +02:00
Gwenhael Goavec-Merou c6d79ec2e8 xilinx: flow_program/xc95: increase delay and use getClkFreq (issue #104) 2022-08-04 08:08:01 +02:00
Gwenhael Goavec-Merou 51628c38f5 typo 2022-07-26 20:29:11 +02:00
Gwenhael Goavec-Merou b4d343ce05 board: adding sipeed Tang Primer 20k 2022-07-26 20:25:43 +02:00
Gwenhael Goavec-Merou e77b8fb022
Merge pull request #243 from balika011/master
Gowin GW1NSR-4C MCU support
2022-07-25 19:09:01 +02:00
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