Archive of https://github.com/zecoxao/teensy4vfi — Teensy 4.0 firmware for Voltage Fault Injection research
https://github.com/zecoxao/teensy4vfi
- C 94.1%
- Assembly 3.3%
- Linker Script 1.1%
- Python 1%
- Makefile 0.5%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| output | ||
| source | ||
| LICENSE | ||
| linker.x | ||
| Makefile | ||
| README.md | ||
| rpclient.py | ||
teensy4vfi
Teensy 4.0 firmware for Voltage Fault Injection research
note
This project is in its very early stages, it also serves as a way for me to learn """white box""" SoC baremetal programming.
Some code might make no sense and/or be overcomplicated, suggestions and non-C++ PRs are welcome.
Known TODOs
- Critical bug fixes
- Docs, readme, measurements, etc
- More glitch types
Optional
- Exceptions & Interrupts
- Interrupt-based trigger (optional due to high jitter)
- Interrupt->DMA-based UART RX handling
- More RPC commands
Known BUGs
- PC RPC script skipping, cutting return codes
- timing issues, very low priority
compiling & flashing
This project does not have any external requirements, it can be compiled with the Arm GNU Toolchain.
The output .hex can be used with teensy-loader to flash the flash (lul)
measurements
- width 12400/ 20us for PHAT
- width 2480 / ~4us for PSTV