Output better error message for flash_proxy.
authorTim 'mithro' Ansell <mithro@mithis.com>
Sat, 15 Apr 2017 11:31:31 +0000 (21:31 +1000)
committerTim 'mithro' Ansell <mithro@mithis.com>
Sat, 7 Oct 2017 01:14:00 +0000 (12:14 +1100)
litex/build/generic_programmer.py

index b9540415c2d240bbe3dcc736d6ba7db4e59747c9..23a9eb12f65237e8d1cf24db69d8d55ad2ae41d4 100644 (file)
@@ -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):