lattice: MACHXO3D no exception when flash-sector is not provided in SRAM mode
This commit is contained in:
parent
f1c9bb1648
commit
a4d5fd8448
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue