Commit Graph

29 Commits

Author SHA1 Message Date
balika011 0581803def Add MCU Firmware flashing support for GW1NSR-4C 2022-07-20 23:32:16 +02: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
Gwenhael Goavec-Merou 45f7f72030 all devices: add support to (un)protect flash, implement pre/post flash access. Use new spiInterface methods 2021-12-22 19:11:35 +01:00
Gwenhael Goavec-Merou 3730e8189d spiFlash: extract status register display from read_status_reg 2021-10-19 07:06:46 +02:00
Gwenhael Goavec-Merou 85b53b5918 add gowin external spi in bscan and --external-flash option 2021-09-15 20:18:49 +02:00
Gwenhael Goavec-Merou 304ec0071c mask idcode upper nibble (version in IEEE 1149.1) 2021-08-27 15:10:12 +02:00
Gwenhael Goavec-Merou 8f95303daf move to APACHE-2.0 license 2021-06-26 15:24:07 +02:00
Gwenhael Goavec-Merou 2af64e9af4 all: propagate verify with a message when not supported 2021-06-25 08:58:45 +02:00
Gwenhael Goavec-Merou c471d25bb5 xilinx,lattice,device: add verify write into flash 2021-06-24 18:08:02 +02:00
Gwenhael Goavec-Merou b150bbdd23 gowin: checks if fs is targeted for connected device 2021-06-24 08:57:18 +02:00
Gwenhael Goavec-Merou c36d29e5e3 gowin: don't use read_write 2021-05-16 12:13:31 +02:00
Gwenhael Goavec-Merou 16932786db all parser:
- _raw_data is now filled in configBitstreamParser
- source may be a file or a pipe
- displayHeader become a common method (configBitstreamParser)
- improve/rewrite some parser (efinixHexparser 1s -> 11ms)
2021-02-24 06:36:48 +01:00
Gwenhael Goavec-Merou df52d523bf All devices: new CLI argument to bypass file type autodetection 2021-02-21 18:30:13 +01:00
Gwenhael Goavec-Merou 7cc5676e8e ftdi: drop divide_by_5 param, now it's automatically set/unset according to the frequency. Better freq display 2021-02-19 07:07:10 +01:00
Gwenhael Goavec-Merou 5f9a8835da devices: simplify write RAM/Flash 2021-02-18 21:09:34 +01:00
Gwenhael Goavec-Merou 590553e432 src/fsparser: rewrite to use header instead of comments, add support for compressed bitstream 2021-02-12 07:34:14 +01:00
Gwenhael Goavec-Merou ad21a3bb36 recast verbose to int8_t to have more level of verbosity (-1 quiet, 0 normal, 1 verbose), add --quiet option, display progress bar when verbosity level >= 0 2021-01-30 07:57:49 +01:00
Gwenhael Goavec-Merou 235505c660 gowin:
- increase delay before checking CRC
- fix message
2020-10-12 15:34:50 +02:00
Gwenhael Goavec-Merou 23c9733a6d gowin: force flush when it's mandatory 2020-10-09 21:29:48 +02:00
Gwenhael Goavec-Merou 06d0e44f71 gowin: eraseFLASH(): fix buffer size, set this to 0 2020-10-09 21:22:03 +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 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
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 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
Gwenhael Goavec-Merou 8cd6f3fe2c gowin: fix internal flash 2020-05-12 10:49:58 +02:00
Vlatko Kosturjak 81d8a8494d Initial Mac OS X support 2020-03-15 08:22:29 +01:00
Gwenhael Goavec-Merou 9c9348f7d0 rename ftdijtag to jtag
- drop everything about ftdi
- use jtagInterface to communicate with hardware
- for all class using jtag: rename FtdiJtag -> Jtag
2020-03-06 09:05:57 +01:00
Fabien Marteau a86eff6b57 Update cmake according to trabucayre request https://github.com/trabucayre/openFPGALoader/pull/17 2020-01-27 09:47:42 +01:00