Skip to content

About

voltage glitching an arduino nano with an esp32

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

16 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

espglitcher

My home project to votlage glitch an Arduino Nano board using an ESP32. Measuring is done in an automated manner using a Digilent Analog Discovery 2 (and a Nordic Power Profiler Kit 2).

Table of contents

Architecture diagram

Pinout matrix

Function Glitcher pin Target pin Scope pin
Target Reset D23 RST NC
FET out D13 FET gate NC (or 1+ for debug)
Start indicator D14 NC T1
Success indicator D15 A3 -
Voltage monitoring - VCC 1+

Compiling glitcher

  • cd esp-idf
  • . export.fish
  • cd ../glitcher
  • idf.py build && idf.py flash && idf.py monitor

Arduino bootloader problems

The bootloader takes up a lot of time to wait for on external programming request (around 2s). Therefore, we need to disable the bootloader, but then an external programmer is necessary to re-program the device. For this I used an an usbasp avr clone with these fuse settings:

  • LOW = 0xFF
  • HIGH = 0xD8
  • EFUSE = 0xCB
  • LOCK = 0x2C

Target compile notes

avr-gcc optimizes away the dead code after the end loop no matter if I disable the optimization flags. The fix was to re-write the target code in assembly.

Interesting resources

About

voltage glitching an arduino nano with an esp32

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages