lattice: MACHXO3D no exception when flash-sector is not provided in SRAM mode

This commit is contained in:
Gwenhael Goavec-Merou 2022-05-14 18:54:01 +02:00
parent f1c9bb1648
commit a4d5fd8448
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}