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 12, 2023
1 parent 0cb37ac commit 657bbca
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions cw/util/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,10 @@ 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()
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@3eace1719daf43d4f0965c1790c2c8a9e8b2f690#egg=chipwhisperer

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

0 comments on commit 657bbca

Please sign in to comment.