From fb1768a175195a46a27fbbc1415e0ac43b824851 Mon Sep 17 00:00:00 2001 From: rkebelj Date: Wed, 28 Jan 2026 22:13:05 +0100 Subject: [PATCH] xilinx: Fixed infinite loop in bit files smaller than 100 --- src/xilinx.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/xilinx.cpp b/src/xilinx.cpp index a1fe30d..d831cd9 100644 --- a/src/xilinx.cpp +++ b/src/xilinx.cpp @@ -843,6 +843,9 @@ void Xilinx::program_mem(ConfigBitstreamParser *bitfile) Jtag::tapState_t tx_end; int burst_len = byte_length / 100; + if (burst_len == 0) + burst_len = byte_length; + ProgressBar progress("Load SRAM", byte_length, 50, _quiet); for (int i=0; i < byte_length; i+=burst_len) {