kcu105: add secondary qspi detection and dump

This commit is contained in:
bma 2025-03-20 20:11:02 +01:00
parent 1bb69dcf22
commit 1c78344ca5
2 changed files with 3 additions and 2 deletions

View File

@ -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;

View File

@ -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");
}
}