Skip to content

Commit

Permalink
[capture] Unblock Husky USB communication after power-up
Browse files Browse the repository at this point in the history
CW Husky often blocks USB communication after power-up.
Initializing the scope twice seems to solve the problem.

Resolves lowRISC#301

Signed-off-by: Vladimir Rozic <[email protected]>
  • Loading branch information
vrozic committed Jan 29, 2024
1 parent 351e165 commit 722811f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions target/cw_fpga.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ def __init__(self, bitstream, force_programming, firmware, pll_frequency,
# Note that the actual scope config for capturing traces is later
# initialized.
self.scope = cw.scope()
# Sometimes CW-Husky blocks USB communication after power cycling
# Initializing the scope twice seems to solve the problem.
self.scope = cw.scope()

self.fpga = self.initialize_fpga(self.fpga_type, bitstream,
force_programming, pll_frequency)
Expand Down

0 comments on commit 722811f

Please sign in to comment.