Giter VIP home page Giter VIP logo

swdfirmwareextractoronteensy31_32's Introduction

swdFirmwareExtractor running on Teensy 3.1/3.2

This is a port of swdFirmwareExtractor to the Teensy3.1/3.2 board.

  • swdFirmwareExtractor is a tool used to extract protected firmware from STM32F0 microcontrollers.

  • Teensy 3.1/3.2 is a small development board, published by PJRC: https://www.pjrc.com/store/teensy32.html

    • The following pins are used: #define PIN_SWDIO 19 #define PIN_SWCLK 20 #define PIN_RESET 18 -- active low #define PIN_POWER 22 -- active low Note: in it's current state power is active low, because it has been designed to control a P-channel mosfet. I used a AO3401A P-channel mosfet with a couple hundred ohm resistor in series on the gate to protect the Teensy GPIOs.
  • Note: if you are extracting directly off of a full circuit board, the bulk capacitance might mean, that turning off the power will take a long time, and if that happens swdFirmwareExtractor will not work out of the box. You have a couple options:

    1. Add a delay after calling targetSysOff();. I had to add waitms(30u);. This will slow down firmware extraction. On a teensy3.2 with 30ms power off delay, it takes a little less then an hour to extract 64 kilobytes of firmware.
    2. Add a discharge N-channel MOSFET, something like AO3400A. And edit the targetSysOff() code to turn on this mosfet when powering off.
    3. Remove the capacitors
    4. Remove the chip

swdfirmwareextractoronteensy31_32's People

Contributors

bikemike avatar purdeaandrei avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.