7.1. ChipWhisperer SPI Driver¶
7.1.1. Installing HIDAPI¶
Communication with the HID USB interface requires a Python package, hidapi. Follow these steps to install:
If you are using WinPython or have pip installed, try the following:
pip install hidapi
If you do not have pip, you can also try easy_install:
easy_install hidapi If you do not have a suitable C compiler installed, you will see the following error from those: error: Unable to find vcvarsall.bat
If you received the
vcvarsall.baterror, continue with this guide. Download and install MinGW <http://sourceforge.net/projects/mingw/files/latest/download?source=files>
Once MinGW is installed, right-click on the mingw32-gcc-g++ and select Mark for Installation
Under the Installation menu, select Apply Changes. Once this completes close the dialog & mingw window.
Create a file with the name
C:\PYTHONG_PATH\Lib\distutils\distutils.cfg, where PYTHON_PATH is your Python path. If you have used WinPython the path might be something like
C:\WinPython-32bit-188.8.131.52\python-2.7.6\Lib\distutils\distutils.cfg. The contents of this file must be:
pip install hidapior
easy_install hidapi, looking for the final output Successfully installed hidapi.
NOTE: It appears sometimes the resulting hid.pyd file causes a crash on Windows. If this is the case a pre-compiled .pyd file is available for use.
7.1.2. Re-Programming the AVR¶
You need to use the ChipWhispererSPI.hex file in the AVR-USB. See the ChipWhisperer Capture Hardware guide.