Skip to content

Commit

Permalink
honor_fpga_adv: force device enumeration after programming the FPGA
Browse files Browse the repository at this point in the history
  • Loading branch information
mndza committed Aug 30, 2023
1 parent d2f9fe2 commit dedb855
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions luna/gateware/platform/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,9 @@ def toolchain_program(self, products, name):
with debugger.jtag as jtag:
programmer = ECP5_JTAGProgrammer(jtag)
programmer.configure(bitstream)

# Let the LUNA gateware take over in devices with shared USB port
debugger.honor_fpga_adv()


def _ensure_unconfigured(self, debugger):
Expand Down Expand Up @@ -141,6 +144,9 @@ def toolchain_flash(self, products, name="top"):

debugger.soft_reset()

# Let the LUNA gateware take over in devices with shared USB port
debugger.honor_fpga_adv()


def toolchain_erase(self):
""" Erases the LUNA board's flash. """
Expand Down

0 comments on commit dedb855

Please sign in to comment.