From 4b3166e8df3687130518b684beb187a2a6962a22 Mon Sep 17 00:00:00 2001 From: Gwenhael Goavec-Merou Date: Tue, 19 May 2020 07:58:37 +0200 Subject: [PATCH] xilinx: update according to mcsParser modifications --- src/xilinx.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xilinx.cpp b/src/xilinx.cpp index ec9fdb8..c5ad81d 100644 --- a/src/xilinx.cpp +++ b/src/xilinx.cpp @@ -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)