From 1c78344ca5368f8e912391d740e1fc2e96c839ea Mon Sep 17 00:00:00 2001 From: bma Date: Thu, 20 Mar 2025 20:11:02 +0100 Subject: [PATCH] kcu105: add secondary qspi detection and dump --- src/main.cpp | 3 ++- src/xilinx.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 5df9f80..cdb4f47 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1043,7 +1043,8 @@ int parse_opt(int argc, char **argv, struct arguments *args, args->secondary_bit_file.empty() && !args->protect_flash && !args->unprotect_flash && - !args->bulk_erase_flash + !args->bulk_erase_flash && + !args->detect ) { printError("Error: secondary bitfile not specified"); cout << options.help() << endl; diff --git a/src/xilinx.cpp b/src/xilinx.cpp index b33e498..d2a7d29 100644 --- a/src/xilinx.cpp +++ b/src/xilinx.cpp @@ -313,7 +313,7 @@ Xilinx::Xilinx(Jtag *jtag, const std::string &filename, _secondary_file_extension = secondary_filename.substr( secondary_filename.find_last_of(".") + 1); _mode = Device::SPI_MODE; - if (!(_device_package == "xcvu9p-flga2104" || _device_package == "xcku5p-ffvb676")) { + if (!(_device_package == "xcvu9p-flga2104" || _device_package == "xcku5p-ffvb676" || _device_package == "xcku040-ffva1156")) { throw std::runtime_error("Error: secondary flash unavailable"); } }