Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
BarnabyShearer committed Nov 15, 2021
1 parent e40cac6 commit 4b67c3d
Showing 1 changed file with 31 additions and 5 deletions.
36 changes: 31 additions & 5 deletions docs/index.rst
Original file line number Diff line number Diff line change
@@ -1,10 +1,36 @@
EFM8 Bootloader
===============
efm8
====

Talks to the factory Bootloader on EFM8 to flash firmware.
The protocol is documented in AN945_.
Flash via AN945: EFM8 Factory Bootloader HID.

Usage
-----

Communication is over USB-HID. This is implemented via the `hidapi <https://github.com/trezor/cython-hidapi>`__ pthon wrapper for the `hidapi <https://github.com/signal11/hidapi>`__ native library.

On linux you can use udev to grant access:

::

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

::

efm8 firmware.hex

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

::

u2fzero firmware.hex

And a way to (slowly) read the firmware back

::

efm8_read firmware.hex

.. _AN945: https://www.silabs.com/documents/public/application-notes/AN945.pdf

.. toctree::
:maxdepth: 2
Expand Down

0 comments on commit 4b67c3d

Please sign in to comment.