
Lpc1311-target v1
christiangroothuis/fault-injection-library
Adaptation of https://github.com/MKesenheimer/fault-injection-library

Adaptation of https://github.com/MKesenheimer/fault-injection-library
Pico glitcher v1.1 is an open-source printed circuit board by christiangroothuis, from the christiangroothuis/fault-injection-library repository on GitHub, published under the GPL-3.0 licence. It is a 2-layer board of 89.8 × 58.4 mm with 72 parts on 80 nets, routed with 764 tracks and 86 vias.
It is built around the IRF7807PBF-HXY, IRLML2502 and TPS2041D. Its parts include 19 resistors, 10 capacitors, 5 diodes, 4 transistors and 3 crystals. It belongs with the RP2040 boards of this library.
Findus (aka the fault-injection-library) is a toolchain to perform fault-injection attacks on microcontrollers and other targets. This library offers an easy entry point to carry out fault-injection attacks against microcontrollers, SoCs and CPUs. With the provided and easy to use functions and classes, fault-injection projects can be realized quickly with cheap and available hardware.
Findus supports the ChipWhisperer Pro, the ChipWhisperer Husky and the PicoGlitcher. More information about the ChipWhisperer Pro and the ChipWhisperer Husky can be found on https://chipwhisperer.readthedocs.io/en/latest/index.html.
Only a Raspberry Pi Pico and a few other components are required to use this software. However, in order to achieve the best results, a circuit board was developed that was adapted directly for the fault-injection-library.
The board consists of a Raspberry Pi Pico, two level shifters for in- and outputs with any voltage, and glitching transistors that can switch up to 66 amps. A multiplexing stage to quickly switch between up to four different voltage levels was added in revision 2.
There are several connection options for different voltage sources, from 1.8V, 3.3V to 5V.
The Pico Glitcher can also be supplied with any external voltage via VCC_EXTERN.
To power the target board, it is supplied with power via the VTARGET connection.
The output of this voltage source can be controlled via software, i.e. the target can be completely disconnected from power by executing the power_cycle_target() command.
This allows a cold start of the target to be carried out in the event of error states that cannot be eliminated by a reset.
The Pico Glitcher can be purchased from the tindie online store: https://www.tindie.com/products/faulty-hardware/picoglitcher-v21/. If you have questions or special requests, please feel free to contact me.
The documentation of the source code and how to use the library and the hardware can be found on https://fault-injection-library.readthedocs.io/.
If you just want to get started quickly and don't want to bother with the source code of findus, findus can be installed via pip. The findus library can be found on https://pypi.org/project/findus/ and can be installed locally in a Python environment using the following command:
mkdir my-fi-project && cd my-fi-project
python -m venv .venv
source .venv/bin/activate
pip install findusInstall the optional RD6006 python bindings if you have a RK6006 or a RD6006 power supply from Riden:
pip install rd6006This external power supply can be used optionally to supply the target with power. It is possible to control the RD6006 power supply via the findus library using the power supply's USB interface. Suitable functions for this are implemented in the findus library. Don't worry if you don't have this power supply. The Pico Glitcher can also supply the target with voltage.
Now you can use findus:
python
>>> from findus import Database, PicoGlitcher
...The next step is to copy an existing glitching script and to adapt it to your needs. Start by copying https://github.com/MKesenheimer/fault-injection-library/blob/master/example/pico-glitcher.py. More example projects are located at https://github.com/MKesenheimer/fault-injection-library/tree/master/projects.
See examples for more information how to use findus and the Pico Glitcher.
Your Pico Glitcher should come with the latest firmware already installed. If not, follow the following procedure to update the software on the Pico Glitcher.
Download the MicroPython firmware from https://micropython.org/download/RPI_PICO/. Unplug the Pico Glitcher from your computer, press and hold the 'BOOTSEL' button on the Raspberry Pi Pico and connect it back to your computer. The Raspberry Pi Pico should come up as a flash-storage device. Copy the MicroPython firmware ('RPI_PICO-xxxxxxxx-vx.xx.x.uf2') to this drive and wait until the Raspberry Pi Pico disconnects automatically. More information about setting up the Raspberry Pi Pico can be found here.
Skip this step, if you already installed findus previously.
If you want to make sure that the libraries to be installed do not collide with your local Python environment, use a virtual environment. Set it up by generating a new virtual environment and by activating it:
python -m venv .venv
source .venv/bin/activateAfter these steps we have to install findus (aka fault-injection-library). Make sure to have pip installed.
pip install findusIf everything went well, you should have the upload script available for execution in your command-line environment.
Connect the Pico Glitcher to your computer and check which serial device comes up:
ls /dev/tty*Take note of the device path. Next upload the Pico Glitcher firmware and the specific configuration for your Pico Glitcher hardware version (config_v1/config.json, config_v2.1-2/config.json or config_v2.3/config.json) via the following command:
cd .venv/lib/python3.12/site-packages/findus/firmware
upload --port /dev/tty.<rpi-tty-port> --files AD910X.py FastADC.py Globals.py \
PicoGlitcher.py PulseGenerator.py Spline.py <config-path>/config.jsonYour Pico Glitcher should now be ready to perform fault-injection attacks.
If you want to get involved in the development or to have access to all the resources of this repository, clone the findus library:
git clone --depth 1 --recurse-submodules \
https://github.com/MKesenheimer/fault-injection-library.gitInstall the findus and the optional rd6006 library:
cd fault-injection-library
pip install .
cd rd6006
pip install .Then:
cd findus/firmware
upload --port /dev/tty.<rpi-tty-port> --files AD910X.py FastADC.py Globals.py \
PicoGlitcher.py PulseGenerator.py Spline.py <config-path>/config.jsonThe next step is to copy an existing glitching script and to adapt it to your needs.
Start by copying fault-injection-library/example/pico-glitcher.py. More example projects are located at fault-injection-library/projects.
The following setup can be used to test the Pico Glitcher.

Next, run the test script pico-glitcher.py located in fault-injection-library/example:
cd example
python pico-glitcher.py --rpico /dev/<rpi-tty-port> --delay 1000 1000 --length 100 100You should now be able to observe the glitches with an oscilloscope on the 10 Ohm resistor. Measure the expected delay and glitch length with the oscilloscope.

Next, run the test script pico-glitcher-uart.py located in fault-injection-library/example:
cd example
python pico-glitcher-uart.py --rpico /dev/<rpi-tty-port> --target /dev/<target-tty-port> --delay 1000 1000 --length 100 100You should now be able to observe the glitches with an oscilloscope on the 10 Ohm resistor. Measure the expected delay and glitch length with the oscilloscope.
More examples can be found on https://fault-injection-library.readthedocs.io/en/latest/examples/# or under fault-injection-library/projects.
During your glitching campaign, run the analyzer script in a separate terminal window:
analyzer --directory databasesThis spins up a local web application on http://127.0.0.1:8080 which can be used to observe the current progress.

| Qty | Value | Footprint | References |
|---|---|---|---|
| 16 | PINHDR_1X1 | Connector_PinHeader_2.54mm:PinHeader_1x01_P2.54mm_Vertical | TP_1V8, TP_3V3, TP_GLITCH_EN0, TP_GND0, TP_RESET0, TP_TRIGGER2, TP_VTARGET0, X_ANALOG0, X_GLITCH0, X_GLITCH1, X_GLITCH2, X_HPGLITCH2, X_LPGLITCH2, X_TRIGGER0, X_TRIGGER1, X_VCC_EXTERN0 |
| 8 | PINHDR_3X1 | Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_Vertical | X_1V8, X_3V3, X_5V0, X_GLITCH_EN0, X_GND0, X_RESET0, X_TRIGGER2, X_VTARGET0 |
| 7 | 0.1uF | Capacitor_SMD:C_0603_1608Metric | C3, C4, C5, C6, C7, C9, C10 |
| 4 | 100 | Resistor_SMD:R_Array_Concave_4x0603 | R16, R17, R18, R19 |
| 4 | 10K | Resistor_SMD:R_0603_1608Metric | R1, R2, R5, R11 |
| 4 | 10k | Resistor_SMD:R_Array_Concave_4x0603 | R12, R13, R14, R15 |
| 4 | 150 | Resistor_SMD:R_0603_1608Metric | R6, R7, R8, R10 |
| 2 | 1R | Resistor_SMD:R_0603_1608Metric | R3, R4 |
| 2 | BU-SMA | pico-glitcher:BU-SMA | X1, X2 |
| 2 | NH245 | Package_SO:TSSOP-24_4.4x7.8mm_P0.65mm | U1, U2 |
| 1 | 10nF | Capacitor_SMD:C_0603_1608Metric | C1 |
| 1 | 2.2u | Capacitor_SMD:C_0805_2012Metric | C2 |
| 1 | 220 | Resistor_SMD:R_0603_1608Metric | R9 |
| 1 | 22uF | pico-glitcher:PANASONIC_C | C8 |
| 1 | IRF7807PBF | Package_SO:SOIC-8_3.9x4.9mm_P1.27mm | Q2 |
| 1 | IRLML2502 | Package_TO_SOT_SMD:SOT-23 | Q1 |
| 1 | JMP_VCC_INTERN | Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_Vertical | JMP_VCC_INTERN0 |
| 1 | LED_BLUE_GLITCH_EN | LED_SMD:LED_0603_1608Metric | D2 |
| 1 | LED_BLUE_TRIGGER2 | LED_SMD:LED_0603_1608Metric | D3 |
| 1 | LED_RED_HPGLITCH | LED_SMD:LED_0603_1608Metric | D5 |
| 1 | LED_RED_LPGLITCH | LED_SMD:LED_0603_1608Metric | D1 |
| 1 | LED_RED_TARGET_POWER | LED_SMD:LED_0603_1608Metric | D4 |
| 1 | M01PTH | Connector_PinHeader_2.54mm:PinHeader_1x01_P2.54mm_Vertical | TP_5V0 |
| 1 | M08X2 | Connector_PinHeader_2.54mm:PinHeader_2x08_P2.54mm_Vertical | X3 |
| 1 | Micro Slide Switch | Button_Switch_SMD:SW_SP3T_PCM13 | S1 |
| 1 | Raspberry Pi | pico-glitcher:RPI_PICO | PICO0 |
| 1 | SW_Push_Shielded | Button_Switch_SMD:SW_Push_1P1T_NO_CK_KSC7xxJ | S_RST0 |
| 1 | TPS 79318 | Package_TO_SOT_SMD:SOT-23-5 | Q3 |
| 1 | TPS2041 | Package_SO:SOIC-8_3.9x4.9mm_P1.27mm | Q4 |

christiangroothuis/fault-injection-library
Adaptation of https://github.com/MKesenheimer/fault-injection-library

christiangroothuis/fault-injection-library
Adaptation of https://github.com/MKesenheimer/fault-injection-library

punkfab/pcb-corpus
235 real KiCad boards from open-source hardware repositories, prepared as a placement and routing benchmark


juliancoy/zynqPCB
An 8-layer board in Kicad built upon Xilinx Zynq Chip. Includes sound output, HDMI, DDR3, and Arduino Uno style header for screen connection

DAlexis/caustic-lasertag-system
Caustic project is a full-featured indoor and outdoor lasertag system

fwachsmuth/Filmkorn-Raw-Scanner
The Filmkorn Raw Scanner, turning 8mm and 16mm films into lossless 12-bit CinemaDNG



It measures 89.8 × 58.4 mm and has 2 copper layers, 1.6 mm thick.
72 parts, built around the IRF7807PBF-HXY, IRLML2502 and TPS2041D. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.
From the christiangroothuis/fault-injection-library repository on GitHub, at the commit this page was made from: the board is schematics/kicad/pico-glitcher-v1/pico-glitcher-v1.1.kicad_pcb and its schematic schematics/kicad/lpc1311-target-v1/lpc1311-target-v1.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Its repository publishes it under the GPL-3.0 licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).