From 2c013948b12e7958cb330be37804e4065ff5baa4 Mon Sep 17 00:00:00 2001 From: Tim 'mithro' Ansell Date: Sat, 15 Apr 2017 21:31:31 +1000 Subject: [PATCH] Output better error message for flash_proxy. --- litex/build/generic_programmer.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/litex/build/generic_programmer.py b/litex/build/generic_programmer.py index b9540415c..23a9eb12f 100644 --- a/litex/build/generic_programmer.py +++ b/litex/build/generic_programmer.py @@ -17,7 +17,10 @@ class GenericProgrammer: fullname = os.path.join(fulldir, self.flash_proxy_basename) if os.path.exists(fullname): return fullname - raise OSError("Failed to find flash proxy bitstream") + raise OSError( + "Failed to find flash proxy bitstream %s, searched:\n %s\n" % ( + self.flash_proxy_basename, + "\n ".join(self.flash_proxy_dirs))) # must be overloaded by specific programmer def load_bitstream(self, bitstream_file):