You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This directory contains examples demonstrating the use of libmicrofido2 on different microcontrollers.
4
+
5
+
-`nfc.c` shows the setup of a FIDO device.
6
+
-`invalid_device.c` shows how errors are returned by libmicrofido2.
7
+
-`measurements/` contains files to run measurements. More info in the README.
8
+
-`esp32/` contains specific files for the ESP32 hardware platform. More info in the README.
9
+
-`nrf52/` contains specific files for the NRF52480 hardware platform. More info in the README.
10
+
-`stateless_rp` contains an example of a stateless, offline relying party. This can be used in hardware or with the provided nfc simulator (which can be executed from `nfc_simulator.c`).
After connecting the Devkit to the computer, it should be shown with `lsusb` as `SEGGER J-LINK`.
17
-
It should also be found as ACM device in `/dev/ttyACM?` (*remember the number*).
18
-
Building can be done with (run from this directory!): `sudo docker run --rm -v $PWD/../../:/libmicrofido2 nrf52-sdk west -v build -b nrf52840dk_nrf52840 -d /libmicrofido2/examples/nrf52/build /libmicrofido2/examples/nrf52`.
19
-
Flashing can then be done with `sudo docker run --rm -v $PWD/../../:/libmicrofido2 --privileged --device=/dev/ttyACM? nrf52-sdk west flash -d /libmicrofido2/examples/nrf52/build`.
20
-
An interactive GDB session can be started with `sudo docker run --rm -it -v $PWD/../../:/libmicrofido2 --privileged --device=/dev/ttyACM? nrf52-sdk west debug -d /libmicrofido2/examples/nrf52/build`.
16
+
1. Navigate to this directory.
17
+
1. Run `sudo docker run --rm -v $PWD/../../:/libmicrofido2 nrf52-sdk west -v build -b nrf52840dk_nrf52840 -d /libmicrofido2/examples/nrf52/build /libmicrofido2/examples/nrf52`.
18
+
19
+
## Flashing
20
+
21
+
1. Connect the Devkit to the computer.
22
+
1. It should be shown with `lsusb` as `SEGGER J-LINK`. It should also be found as ACM device in `/dev/ttyACM?` (*remember the number*).
23
+
1. Run `sudo docker run --rm -v $PWD/../../:/libmicrofido2 --privileged --device=/dev/ttyACM? nrf52-sdk west flash -d /libmicrofido2/examples/nrf52/build`.
24
+
25
+
## Debugging
26
+
27
+
An interactive GDB session can be started with `sudo docker run --rm -it -v $PWD/../../:/libmicrofido2 --privileged --device=/dev/ttyACM? nrf52-sdk west debug -d /libmicrofido2/examples/nrf52/build`.
21
28
You can additionally connect to the serial console output / log via `sudo docker run --rm -it --privileged --device=/dev/ttyACM0 nrf52-sdk minicom -D /dev/ttyACM0 -b 115200`.
0 commit comments