CW303 Arm Target¶
The ChipWhisperer-Lite board has a break-away target board section. This target can be used attached to the CW-Lite or separated and connected via ribbon cable. The breakaway target board has a slightly different feature set than the CW308T-STM32F3 target board.
|Target Architecture||32-bit Arm Cortex-M4|
|Programming||STM32F Serial Bootloader, JTAG, SWD|
Available with the ChipWhisperer-Lite 32-bit starter kit
The two LEDs on the STM32 board are active-low, which is done to reduce the impact on power consumption in the VCC power signature. The connections are as follows:
Building Firmware for this target requires make and arm-none-eabi-gcc. Installation of both these are covered in https://chipwhisperer.readthedocs.io/en/latest/prerequisites.html
If you have make and arm-none-eabi-gcc, you can build firmware by navigating via command line to the relevant build directory and running:
make PLATFORM=CWLITEARM CRYPTO_TARGET=<CRYPTO_TARGET>
CRYPTO_TARGET here is
If you're running a Jupyter Notebook lab, typically this step will be contained within one of the code blocks.
The ChipWhisperer-Lite and ChipWhisperer-Pro have integrated STM32F UART programmers, meaning there's no need to use an external one if you're using either. To program via the ChipWhisperer API:
# ...assuming scope is setup # ensure device has clock and IO is setup, typically via scope.default_setup() prog = cw.programmers.STM32FProgrammer cw.program_target(scope, prog, "<path/to/firmware.hex>")
The STM32F303 has a max CLKIN input of 32MHz; however, to increase it above 24MHz, the flash latency must be increased.
Note that this may adversely affect clock glitching in particular. Flash latency can be increased in
The following shows several of the connectors available on the CW301.
J2 is a 20-pin connector, which uses the standard NewAE 20-pin connector pinout. See the ChipWhisperer-Lite documentation for details.
The SMA glitch connector allows VCC glitches be inserted into the VCC pin. This is done by shorting the resistive shunt R66. By default it connects to the SMA measure connector, but can be disconnected with the solder jumpers.
The SMA measure connector allows power measurements to be taken across resistive shunt R66. By default it connects to the SMA glitch connector, but can be disconnected with the solder jumpers.
JP13 provides a pinout with a few extra IO pins, as well as JTAG/SWD debug pins.
Connects the output of the VCC filter to the STM32F3 VCC network. Soldered by default.
Connects the SMA Measure header to the resistive shunt. Soldered by default.
Connects the SMA Glitch header to the resistive shunt. Soldered by default.
Connects the VCC of the STM32F3 board to VREF on 20-pin header. Soldered by default.
Note the ChipWhisperer-Lite main board and target section contain a number of jumper options. By default these are not mounted, and solder jumper bridges on the PCB have been bridged to select the appropriate options when required. Some options are only solder jumpers, which to move the jumper requires a soldering iron to bridge or clear the appropriate connections.
The following lists jumpers on the ChipWhisperer-Lite / Target Section:
- JP7 connects the "MEASURE" SMA to the STM32F3 VCC Rail. Shorted by default with SJ4
- JP6 connects the "GLITCH" SMA to the STM32F3 VCC rail. Shorted by default with SJ5
- JP12 can be used to feed an external voltage into the XMEGA VCC rail. By default SJ3 connects this to 3.3V
- SJ2 selects if the 3.3V rail comes from the 20-pin IDC connector (i.e. ChipWhisperer-Lite board) or via an optional LDO and USB connector