xilinx: since xilinx generates bin file, drop limitation about flash start offset

This commit is contained in:
Gwenhael Goavec-Merou 2020-12-15 09:46:47 +01:00
parent 2dcc8e43b8
commit 54b31651f3
1 changed files with 1 additions and 6 deletions

View File

@ -110,13 +110,8 @@ void Xilinx::program_spi(unsigned int offset)
_bit = new McsParser(_filename, false, _verbose);
else if (_file_extension == "bit")
_bit = new BitParser(_filename, false, _verbose);
else {
if (offset == 0) {
printError("Error: can't write raw data at the beginning of the flash");
throw std::exception();
}
else
_bit = new RawParser(_filename, false);
}
int err = _bit->parse();
printInfo("Parse file ", false);