Skip to content

Commit

Permalink
[cw] Update CW Python dependency
Browse files Browse the repository at this point in the history
This PR updates the ChipWhisperer Python dependency to the latest
available CW version.

For Husky, we need to make sure that the clkgen is locked after
setting the clock.

Signed-off-by: Pascal Nasahl <[email protected]>
  • Loading branch information
nasahlpa committed Oct 9, 2023
1 parent 0cb37ac commit dc3366a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion cw/util/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,15 @@ def initialize_scope(self, scope_gain, num_samples, offset, pll_frequency):
scope.io.tio2 = "serial_rx"
scope.io.hs2 = "disabled"

# Make sure that clkgen_locked is true.
if husky:
scope.clock.clkgen_src = 'extclk'

# TODO: Need to update error handling.
if not husky:
scope.clock.reset_adc()
time.sleep(0.5)

# Wait for ADC to lock.
ping_cnt = 0
while not scope.clock.adc_locked:
Expand Down
2 changes: 1 addition & 1 deletion python-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ joblib
# Development version of ChipWhisperer toolchain with latest features and
# bug fixes - Needs to be installed in editable mode. We fix the version
# for improved stability and manually update if necessary.
-e git+https://github.com/newaetech/chipwhisperer.git@c5181a87111d3aabab42d83b10dbc368140b43ef#egg=chipwhisperer
-e git+https://github.com/newaetech/chipwhisperer.git@adae03c875d76c53997f46e673d27ff6644e5bfc#egg=chipwhisperer

# Linters
-r python-requirements-lint.txt
Expand Down

0 comments on commit dc3366a

Please sign in to comment.