Skip to content

Commit

Permalink
[capture] Add delay to AES FPGA capture
Browse files Browse the repository at this point in the history
Unfortunately, the UART connection to the FPGA is quite iffy. It turns
out that a small delay for the FvsrKeyBatchEncrypt cmd is needed.
Otherwise, the command sometimes gets not received by the device.
This happens with the latest CW310 firmware as well as UART control
flow enabled in the SW.

This was detected now as on silicon this problem does not occur.

Signed-off-by: Pascal Nasahl <[email protected]>
  • Loading branch information
nasahlpa committed Feb 26, 2025
1 parent 08394c4 commit 04b98ca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions target/communication/sca_aes_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ def fvsr_key_batch_encrypt(self, num_segments):
self.target.wait_ack()
else:
# AesSca command.
time.sleep(0.02)
self._ujson_aes_sca_cmd()
# FvsrKeyBatchEncrypt command.
self.target.write(json.dumps("FvsrKeyBatchEncrypt").encode("ascii"))
Expand Down

0 comments on commit 04b98ca

Please sign in to comment.