Skip to content

Commit

Permalink
fix SPI tunnel selection bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mossmann committed Mar 30, 2023
1 parent 8818d67 commit c3016c1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions apollo_fpga/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)



Expand Down

0 comments on commit c3016c1

Please sign in to comment.