diff --git a/apollo_fpga/__init__.py b/apollo_fpga/__init__.py index 438c6d7..b273efd 100644 --- a/apollo_fpga/__init__.py +++ b/apollo_fpga/__init__.py @@ -194,13 +194,13 @@ def create_jtag_spi(self, jtag_chain): if self.major == self.EXTERNAL_BOARD_MAJOR: return None, None - # Otherwise, if we have a revision greater than r0.2, our SPI should be via JTAG. - elif self.minor >= 0.3: - return ECP5_JTAGDebugSPIConnection(jtag_chain, self), ECP5_JTAGRegisters(jtag_chain) + # Use a real debug SPI on r0.1 and r0.2. + elif self.major == 0 and self.minor < 3: + return None, None - # Otherwise, we'll want to use a real debug SPI, rather than a JTAG-SPI. + # Otherwise, if we have a revision greater than r0.2, our SPI should be via JTAG. else: - return None, None + return ECP5_JTAGDebugSPIConnection(jtag_chain, self), ECP5_JTAGRegisters(jtag_chain)