This blog post is dedicated to CS59200-FIA second lab — voltage glitching using ChipWhispererNano. The whole lab is heavily built upon the Fault101 lab from the original ChipWhisperer repo. This post documents the whole setup process.
1. Install ChipWhisperer Repo
Since I use CachyOS (with Fish), the process here is mainly for Arch-based distros. Accommodations are needed for other Linux distros and OSes.
sudo pacman -Syu
sudo pacman -S –needed libusb make git usbutils python python-pip arm-none-eabi-gcc arm-none-eabi-newlib avr-gcc avr-libc
# Make sure you use the right activate for your shell
python -m venv ~/.cwvenv
source ~/.cwvenv/bin/activate.fish
cd ~/
git clone https://github.com/newaetech/chipwhisperer
cd chipwhisperer
git submodule update –init jupyter
# The rules won’t work until reboot
sudo cp 50-newae.rules /etc/udev/rules.d/50-newae.rules
sudo udevadm control –reload-rules
sudo udevadm trigger
sudo groupadd -fr chipwhisperer
sudo usermod -aG chipwhisperer $USER
# Make sure the .cwvenv is active
python -m pip install –upgrade pip
python -m pip install -e .
python -m pip install -r jupyter/requirements.txt
sudo reboot
source ~/.cwvenv/bin/activate.fish
cd ~/chipwhisperer
jupyter notebook
2. Get to know ChipWhispererNano

https://chipwhisperer.readthedocs.io/en/latest/Capture/ChipWhisperer-Nano.html
https://chipwhisperer.readthedocs.io/en/latest/Targets/CW1101%20Target%20Board.html
https://media.newae.com/datasheets/NAE-CW1101_datasheet.pdf
Unlike other ChipWhisperer variations, ChipWhispererNano (CWNano) is a combo of both the control/capture board (Atmel SAM4S) and the target board (STM32F0). While CWNano supports both power side channels (Shunt resistor) and voltage glitching (Crowbar), we focus on the voltage glitching in this lab. Compared to FPGAs, using a microcontroller can bring down the cost but also has limited control on the glitching, as you will see in the notebook.
3. Start the lab
https://github.com/daveti/code/blob/main/CS592-FIA_Voltage_Glitching_CWNano.ipynb
Download the lab above, and put it under chipwhisperer/jupyter/courses/fault101. Make sure to activate the cwvenv before starting the notebook. Have fun~



