From a4d5fd8448156c953c24d2ecd81269744a48782e Mon Sep 17 00:00:00 2001 From: Gwenhael Goavec-Merou Date: Sat, 14 May 2022 18:54:01 +0200 Subject: [PATCH] lattice: MACHXO3D no exception when flash-sector is not provided in SRAM mode --- src/lattice.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lattice.cpp b/src/lattice.cpp index e534480..a972c98 100644 --- a/src/lattice.cpp +++ b/src/lattice.cpp @@ -193,7 +193,7 @@ Lattice::Lattice(Jtag *jtag, const string filename, const string &file_type, } else if (flash_sector == "PKEY") { _flash_sector = LATTICE_FLASH_PKEY; printInfo("Flash Sector: PKEY", true); - } else { + } else if (_mode == Device::FLASH_MODE) { printError("Unknown flash sector"); throw std::exception(); }