CW312_A35 Custom bitstream

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.

You must be on an older chipwhisperer installation that predates this target.
Upgrading to the latest 6.0.0 release or the develop branch should resolve this.

Thank you for your answer !
It seems to be the good reason: I was using an old Python environment with the 5.6.0 version …

Now, when the operation is done, I still have a warning message: (ChipWhisperer Target WARNING|File programmer_targetfpga.py:154) FPGA warning: DONE pin did not go high.
What am I supposed to do with that ?

A common reason for this is that you’ve targeted the wrong FPGA part. It should be 7a35tcsg324.

Have you tried running our stock AES demo notebook, which will use our bitfile?