Skip to content

Commit

Permalink
honor_fpga_adv: fix some issues by moving it to the end
Browse files Browse the repository at this point in the history
  • Loading branch information
mndza committed Aug 30, 2023
1 parent d907a09 commit d58a9dd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
6 changes: 6 additions & 0 deletions apollo_fpga/commands/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,9 @@ def configure_fpga(device, args):

programmer.configure(bitstream)

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


def ensure_unconfigured(device):
with device.jtag as jtag:
Expand All @@ -170,6 +173,9 @@ def program_flash(device, args):
programmer.flash(bitstream)

device.soft_reset()

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

def read_back_flash(device, args):

Expand Down
3 changes: 0 additions & 3 deletions apollo_fpga/ecp5.py
Original file line number Diff line number Diff line change
Expand Up @@ -463,9 +463,6 @@ def configure(self, bitstream):
finally:
self.chain.debugger.set_led_pattern(self.chain.debugger.LED_PATTERN_IDLE)

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


def _restart_configuration_process(self):
""" Restarts the configuration process; equivalent to toggling the PROGRAM_N pin. """
Expand Down
1 change: 0 additions & 1 deletion firmware/src/vendor.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ bool handle_set_led_pattern(uint8_t rhport, tusb_control_request_t const* reques
bool handle_trigger_fpga_reconfiguration(uint8_t rhport, tusb_control_request_t const* request)
{
trigger_fpga_reconfiguration();
honor_fpga_adv();
return true;
}

Expand Down

0 comments on commit d58a9dd

Please sign in to comment.