Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/barnabyshearer/efm8

Flash via AN945: EFM8 Factory Bootloader HID.
https://github.com/barnabyshearer/efm8

an945 bootloader efm8 hid

Last synced: about 5 hours ago
JSON representation

Flash via AN945: EFM8 Factory Bootloader HID.

Awesome Lists containing this project

README

        

..
Autogenerated by https://github.com/BarnabyShearer/meta

====
efm8
====
.. image:: https://readthedocs.org/projects/efm8/badge/?version=latest
:target: https://efm8.readthedocs.io/en/latest/
.. image:: https://img.shields.io/pypi/v/efm8?color=success
:target: https://pypi.org/project/efm8

Flash via AN945: EFM8 Factory Bootloader HID.

Install
-------

.. code-block:: bash

sudo apt install libusb-1.0-0-dev libudev-dev
python3 -m pip install efm8

Usage
-----

Communication is over USB-HID. This is implemented via the `hidapi `__ pthon wrapper for the `hidapi `__ native library.

On linux you can use udev to grant access:

.. code-block:: bash

echo 'SUBSYSTEM=="usb", ATTRS{idVendor}=="10c4", MODE="0666"' | sudo tee /etc/udev/rules.d/70-silabs.rules
udevadm trigger

.. code-block:: bash

efm8 firmware.hex

Also includes an example that resets a https://u2fzero.com/ into the bootloader and flashes in one command.

.. code-block:: bash

u2fzero firmware.hex

And a way to (slowly) read the firmware back

.. code-block:: bash

efm8_read firmware.hex