From 12bbc0946aae9f5b01e1293217c4dc3161b8830b Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Tue, 5 Jul 2022 17:57:16 +0200 Subject: [PATCH] build/generic_programmer: Ask bitstream presence check on load_bitstream error. --- litex/build/efinix/programmer.py | 5 +++-- litex/build/generic_programmer.py | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/litex/build/efinix/programmer.py b/litex/build/efinix/programmer.py index df9609b2a..1b91863b4 100644 --- a/litex/build/efinix/programmer.py +++ b/litex/build/efinix/programmer.py @@ -34,8 +34,9 @@ class EfinixProgrammer(GenericProgrammer): "-m", "jtag"], env=os.environ.copy()) != 0): msg = f"Error occured during {self.__class__.__name__}'s call, please check:\n" msg += f"- {self.__class__.__name__} installation.\n" - msg += f"- access permissions.\n" - msg += f"- hardware and cable." + msg += f"- Access permissions.\n" + msg += f"- Hardware and cable.\n" + msg += f"- Bitstream presence." raise OSError(msg) diff --git a/litex/build/generic_programmer.py b/litex/build/generic_programmer.py index bcee61006..6d7083ae7 100644 --- a/litex/build/generic_programmer.py +++ b/litex/build/generic_programmer.py @@ -95,6 +95,7 @@ class GenericProgrammer: if (subprocess.call(command) != 0) and check: msg = f"Error occured during {self.__class__.__name__}'s call, please check:\n" msg += f"- {self.__class__.__name__} installation.\n" - msg += f"- access permissions.\n" - msg += f"- hardware and cable." + msg += f"- Access permissions.\n" + msg += f"- Hardware and cable.\n" + msg += f"- Bitstream presence." raise OSError(msg)