Commit Graph

58 Commits

Author SHA1 Message Date
Gwenhael Goavec-Merou 1dba0572ff lattice: fix warning (uninitialized rx_buf) 2023-07-27 07:18:59 +02: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 0a9e8a7e4b src/xx: cppcheck 2023-04-15 08:20:05 +02:00
Gwenhael Goavec-Merou 4a6e6f0d35 lattice: when loadConfiguration fails -> check if external flash is blank 2023-03-05 10:16:08 +01:00
Cedric de Wijs 483304344f more typo fixes 2022-12-18 23:29:21 +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 a4d5fd8448 lattice: MACHXO3D no exception when flash-sector is not provided in SRAM mode 2022-05-14 18:54:01 +02: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
abacomartin ac09ac9b96
Merge branch 'trabucayre:master' into master 2021-11-25 15:10:14 +00:00
Martin Beynon 8fc67762f6 merged 2021-11-25 15:09:38 +00:00
Martin Beynon c06e920143 updated to set authentication mode 2021-11-25 14:59:37 +00:00
Martin Beynon 7fe0a5ab66 wip: adding pubkey programming 2021-11-25 14:50:33 +00:00
Martin Beynon 7e7e030661 wip: adding pubkey programming 2021-11-25 14:13:17 +00:00
Gwenhael Goavec-Merou 533cd64f37 lattice: if unknown file type, fails only for SRAM 2021-11-24 07:35:10 +01:00
Gwenhael Goavec-Merou 98a025d68e lattice: improve message for idcode mismatch 2021-11-22 07:01:19 +01:00
Gwenhael Goavec-Merou 2e2e325a9b lattice: check matching idcode between bitstream and FPGA 2021-11-20 17:01:40 +01:00
Gwenhael Goavec-Merou 1637d6f484 lattice: fix REG_STATUS_CNF_CHK_MASK offset: not the same for machXO3D and others 2021-11-20 16:57:31 +01:00
Gwenhael Goavec-Merou 7f6a68ae2c lattice: cppcheck/lint 2021-11-20 16:07:53 +01:00
Martin Beynon 482141c556 verbose/verify modifications + common code moved to calling func + more white space! 2021-11-19 15:21:52 +00:00
Martin Beynon 393bf1d28b Unused variables (plus some more white space fixes) 2021-11-19 15:11:02 +00:00
Martin Beynon 07752c37e2 fix up line endings and white space issues - also moved the flash sector if block into MachXO3D family - as not required for other types 2021-11-11 09:04:50 +00:00
Martin Beynon b6979f54f7 adding support for MachXO3D 2021-11-09 08:54:09 +00: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 304ec0071c mask idcode upper nibble (version in IEEE 1149.1) 2021-08-27 15:10:12 +02:00
Gwenhael Goavec-Merou faedb0cfd7 lattice: throw exception when program fails 2021-08-23 16:27:28 +02:00
Gwenhael Goavec-Merou 3983726a66 all devices: use spiFlash dump & verify 2021-07-11 11:34:14 +02:00
Gwenhael Goavec-Merou 8f95303daf move to APACHE-2.0 license 2021-06-26 15:24:07 +02:00
Gwenhael Goavec-Merou fe0a315456 lattice,device: introduce method to dump flash content 2021-06-24 18:20:34 +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 2bf7b255b3 lattice: move directly to run_test_idle with last tx packet in program_mem 2021-06-12 09:27:16 +02:00
Gwenhael Goavec-Merou fc08249630 lattice: don't use read_write 2021-05-18 08:27:34 +02:00
Gwenhael Goavec-Merou 43caa612ca lattice: drop the limitation, for .bin, to write at offset > 0 2021-02-27 06:49:42 +01: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 5f9a8835da devices: simplify write RAM/Flash 2021-02-18 21:09:34 +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
phdussud a11ec92a25 Fix gcc 10.2 error messages. 2020-12-12 15:48:45 -08:00
Gwenhael Goavec-Merou ed7e9340ba lattice: add a memset to avoid valgrind warn 2020-11-27 08:29:09 +01:00
Francisco Ayala Le Brun fbb8c58f46 Add MachXO3D Development Board Support 2020-10-16 08:03:45 +02:00
Martin Pittermann c41f4b597a fix MACHXO3LF family 2020-09-29 16:13:54 +02:00
Gwenhael Goavec-Merou 9572d060e9 lattice: adapt status register to support nexus devices 2020-09-26 08:40:43 +02:00
Gwenhael Goavec-Merou f587d7afde anlogic, lattice, xilinx: fix comparision signed/unsigned 2020-09-05 08:00:58 +02:00
Gwenhael Goavec-Merou 8dace3e2a9 lattice: support writing arbitrary raw binary data somewhere in external flash 2020-09-05 07:55:20 +02:00
Gwenhael Goavec-Merou b3ef97f95e spiInterface: increase spi_put len param 2020-08-23 17:16:21 +02:00
Gwenhael Goavec-Merou 4a70675ea6 lattice:cppcheck 2020-08-19 17:00:44 +02: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