xilinx: update according to mcsParser modifications

This commit is contained in:
Gwenhael Goavec-Merou 2020-05-19 07:58:37 +02:00
parent 64754604f6
commit 4b3166e8df
1 changed files with 2 additions and 2 deletions

View File

@ -91,10 +91,10 @@ void Xilinx::program_spi(unsigned int offset)
program_mem(bitfile);
/* last: read file and erase/flash spi flash */
McsParser mcs(_filename, _verbose);
McsParser mcs(_filename, false, _verbose);
mcs.parse();
SPIFlash spiFlash(this, _verbose);
spiFlash.erase_and_prog(offset, mcs.getData(), mcs.getLength());
spiFlash.erase_and_prog(offset, mcs.getData(), mcs.getLength()/8);
}
void Xilinx::program_mem(BitParser &bitfile)