mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2025-07-05 11:24:45 -04:00

- Use one common Makefile for all test device apps. - Use a single copy of syscall.[Sh]. - Update docs for building.
36 lines
903 B
Markdown
36 lines
903 B
Markdown
# Test applications
|
|
|
|
- `defaultapp`: Immediately resets the TKey with the intention to
|
|
start an app from the client, replicating the behaviour of earlier
|
|
generations.
|
|
- `testapp`: Runs through a couple of tests that are now impossible
|
|
to do in the `testfw`.
|
|
- `reset_test`: Interactively test different reset scenarios.
|
|
- `testloadapp`: Interactively test management app things like
|
|
installing an app (hardcoded for a small happy blinking app, see
|
|
`blink.h` for the entire binary!) and to test verified boot.
|
|
|
|
## Build
|
|
|
|
```
|
|
$ make
|
|
```
|
|
|
|
will build all the .elf and .bin files on the top level.
|
|
|
|
## Use
|
|
|
|
Use `tkey-runapp` from
|
|
[tkey-devtools](https://github.com/tillitis/tkey-devtools) to load the
|
|
apps:
|
|
|
|
```
|
|
$ tkey-runapp testapp.bin
|
|
```
|
|
|
|
All of these test apps are controlled through the USB CDC, typically
|
|
by running picocom or similar terminal program, like:
|
|
|
|
```
|
|
$ picocom /dev/ttyACM1
|
|
```
|