Giter Site home page Giter Site logo

efm8load's Introduction

efm8load.py

A python-only implementation of the efm8 bootloader protocol.
Check out http://fishpepper.de/2016/10/15/efm8-bootloader-flash-tool-efm8load-py/ for more info.

Status

Microcontroller Unit (MCU) Identify Read Write
EFM8BB10F8G 🟢 🟢 🟢
EFM8BB52F32G 🟢 🟢 🟡

🟢 = Working, 🟡 = Not tested, 🔴 = Not working

Info

  • Connect the MCU to the rs232:
    • MCU RXD to TXD
    • MCU TXD to RXD
    • MCU 3v3 to 3v3 or MCU 5v to 5v (⚠️Do not mix 5v with 3v3! Check the datasheet for VVDD and Voltage on VDD supply pin⚠️)
    • MCU GND to GND
    • MCU C2D to GND
  • Empty targets boot right into the bootloader (flash[0] = 0xFF -> bootloader)

Requirements

  • python3 + pip
  • USB to UART Bridge Controller (e.g. CP2102)
  • CP210x USB to UART Bridge VCP Drivers
  • C2D Pin must be pulled low (connected to GND) during powerup to enter the bootload mode (Review section 5.3.1 Entering Bootload Mode documents/an945-efm8-factory-bootloader-user-guide.pdf for the right Pin numbers)

Setup

# Install the necessary packages
pip install -r requirements.txt

Usage

# Identify the chip
python efm8load.py -p <COM_PORT> -i

# Dump the flash memory to file
python efm8load.py -p <COM_PORT> -r dumped_flash.hex

# ⚠️Upload/Write file to flash memory⚠️
python efm8load.py -p <COM_PORT> -w dumped_flash.hex

TODO

  • Add a protection to stop users from overwriting the bootloader area
  • Information about decompiling the dumped flash memory

efm8load's People

Contributors

fishpepper avatar cyanview avatar kammutierspule avatar y3ll0w avatar clacktronics 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.