Hello,
I am familiar with the ChipWhisperer-Lite + CW305_A7 duo to perform power analysis of custom designs. Basically, I program the FPGA with a simple script:
import chipwhisperer as cw
target = cw.target(None, cw.targets.CW305, bsfile=<path-to-bitfile>, force=True, fpga_id="100t")
I recently purchased the ChipWhisperer Husky + CW312_A7 and I try to do the same thing.
However, it is not clear to me what I am supposed to do.
I tried the example in the documentation but without any success:
import chipwhiserer as cw
scope = cw.scope()
from chipwhisperer.hardware.naeusb.programmer_targetfpga import CW312T_XC7A35T
fpga = CW312T_XC7A35T(scope)
fpga.program(<path-to-bitfile>, sck_speed=10e6)
I have the following message ImportError: cannot import name 'CW312T_XC7A35T'
I also tried the following sequence (with no more success):
import chipwhisperer as cw
scope = cw.scope()
target = cw.target(scope, cw.targets.CW305, bsfile=<path-to-bitfile>, force=True, fpga_id=None)
Here, the scope (line 2) is well found but the target (line 3) generates the following message OSError: Could not find ChipWhisperer. Is it connected?
.
Is there a clear and up-to-date example on how to do this?
Thanks for your help.