Commit Graph

149 Commits

Author SHA1 Message Date
Michael Cardell Widerkrantz
0331bddc10 Update documentation according to new firmware protocol 2022-11-29 14:04:48 +01:00
Michael Cardell Widerkrantz
18433df357 fw: Introduce an explicit state machine - changes protocol!
We introduce an explicit state machine (see README).

With the new states we:

- combine setting size and USS to a single command.
- start the device app immediatiely when having receceived the last
  data chunk and returning the digest.
- Loop forever and wait for the stick to be removed if we end up in
  unknown state.

Signed-off-by: Michael Cardell Widerkrantz <mc@tillitis.se>
2022-11-29 14:04:48 +01:00
Joachim Strömbergson
21a69de093 Disable HW support in CPU for DIV
Signed-off-by: Joachim Strömbergson <joachim@assured.se>
2022-11-29 14:04:48 +01:00
Sasko Simonovski
9541960b8f Update README.md
Updated first header.
2022-11-29 14:04:48 +01:00
Daniel Lublin
b30e62dbb5 Remove version suffixes, no longer needed on ubuntu 22.10 (clang 15)
Signed-off-by: Daniel Lublin <daniel@lublin.se>
2022-11-29 14:04:48 +01:00
Daniel Lublin
ca5541ce0e toolchain: add explicit llvm; remove libboots-dev dupe
Signed-off-by: Daniel Lublin <daniel@lublin.se>
2022-11-29 14:04:48 +01:00
Joachim Strömbergson
fa4afb5897
Add block diagram image
Signed-off-by: Joachim Strömbergson <joachim@assured.se>
2022-11-28 10:00:10 +01:00
Joachim Strömbergson
d59638094b
Change TK1 to TKey and improve wording
Signed-off-by: Joachim Strömbergson <joachim@assured.se>
2022-11-22 15:05:43 +01:00
Joachim Strömbergson
292ae28669
Remove reference to OpenTitan structure
Signed-off-by: Joachim Strömbergson <joachim@assured.se>
2022-11-22 09:45:08 +01:00
Joachim Strömbergson
a15a94fe8e
Move readme:s for boards and firmware to doc subdir
Signed-off-by: Joachim Strömbergson <joachim@assured.se>
2022-11-21 16:27:30 +01:00
Daniel Lublin
888a9d4cc3
Fix nits 2022-11-21 15:49:19 +01:00
Daniel Lublin
acb9c37ee7
Add fw cmd to get UDI 2022-11-21 15:45:27 +01:00
Joachim Strömbergson
98a3a1240b
Reorder doc list to highlight start info
Signed-off-by: Joachim Strömbergson <joachim@assured.se>
2022-11-21 15:43:00 +01:00
Joachim Strömbergson
23fa71036e
Fix minor nits
Signed-off-by: Joachim Strömbergson <joachim@assured.se>
2022-11-21 15:37:56 +01:00
Joachim Strömbergson
9760ebeea4
Improve wording of what makes TK1 unique
Signed-off-by: Joachim Strömbergson <joachim@assured.se>
2022-11-21 15:35:43 +01:00
Joachim Strömbergson
8179f40642
Add the correct link
Signed-off-by: Joachim Strömbergson <joachim@assured.se>
2022-11-21 13:49:31 +01:00
Joachim Strömbergson
fa2c75507e Merge branch 'main' of github.com:tillitis/tillitis-key1 2022-11-21 13:49:06 +01:00
Joachim Strömbergson
d788742010
Add dco file and link to the dco in README
Signed-off-by: Joachim Strömbergson <joachim@assured.se>
2022-11-21 13:47:42 +01:00
Daniel Lublin
a2ffb6d007
Correct reference 2022-11-15 15:19:45 +01:00
Joachim Strömbergson
1a49304224 Merge branch 'main' of github.com:tillitis/tillitis-key1 2022-11-09 15:06:07 +01:00
Joachim Strömbergson
159b20fa4e
Zero extend the address to match SB_RAM4K ports 2022-11-09 15:05:03 +01:00
Michael Cardell Widerkrantz
254a384181
fw: Clarify and correct doc 2022-11-03 16:25:21 +01:00
Daniel Lublin
a14662c622
Change to max 100 KB app with 28 KB stack 2022-11-02 15:52:29 +01:00
Daniel Lublin
fdda69745e
Add wrapper script that runs reset.py using virtualenv 2022-11-02 15:19:31 +01:00
Daniel Lublin
7af0fc6777
Make hid_test fail less confusingly when programming device is not connected
Add requirements.txt
2022-11-02 15:19:30 +01:00
Matthew Mets
48f32949bc
Add software reset example for the mta1 programmer 2022-11-02 15:16:24 +01:00
Joachim Strömbergson
517fafff57 Merge branch 'bigger_rx_fifo' 2022-11-02 14:22:46 +01:00
Daniel Lublin
a5d4833d0e
Merge pull request #41 from tillitis/addgolang
Add golang package to toolchain setup
2022-11-02 06:49:50 +01:00
Matthew Mets
13617c4db4 Add golang to toolchain setup 2022-11-01 13:25:08 +00:00
Daniel Lublin
8755a65a38
Format code 2022-10-31 10:07:23 +01:00
Joachim Strömbergson
8061491f6e
Cleanup, and use fifo_empty to indicate data available 2022-10-28 13:12:47 +02:00
Joachim Strömbergson
24d8680772
Improve detection of empty and full FIFO 2022-10-28 13:09:21 +02:00
Joachim Strömbergson
0eacbca2f9
Increase size of RX-FIFO to 512 bytes 2022-10-28 12:48:13 +02:00
Daniel Lublin
85ef93cd3c
Clarify switch_app reads and writes; add read test to testfw 2022-10-26 11:38:58 +02:00
Daniel Lublin
4b4f014d38
Rename to TK1 2022-10-26 09:20:02 +02:00
Daniel Lublin
5e80b4ae15
Refer to named bits consistently; say 0/1 instead of unset/set
Clarify touch
2022-10-26 08:34:12 +02:00
Michael Cardell Widerkrantz
e53811ca91
Document FW_RAM and CDI computation 2022-10-26 08:16:41 +02:00
Daniel Lublin
c851b2c0b1
Correct various bits 2022-10-24 15:35:39 +02:00
Daniel Lublin
c4b36429bf
Correct old term 2022-10-24 14:42:30 +02:00
Daniel Lublin
db8f9cf881
Document SRAM==SPRAM; fix whitespace 2022-10-24 11:58:54 +02:00
Daniel Lublin
ff1bf1f326
Merge pull request #32 from tillitis/clear-ram
FW: Clear all RAM during start
2022-10-24 11:56:16 +02:00
Michael Cardell Widerkrantz
490571b6c0
Clear all RAM during start
Since SRAM has some data remanence even without power it seems good
hygien to clear all RAM when starting the device so as not to leak
potential sensitive data between device apps.
2022-10-24 11:52:52 +02:00
Daniel Lublin
1661ac20d4
tpt: correct and clarify ranges 2022-10-24 10:05:05 +02:00
Daniel Lublin
ecc2923387
Explain how we attain 18 MHz 2022-10-21 14:33:03 +02:00
Daniel Lublin
675fa1087f
Raise bps to 62500 2022-10-21 14:10:41 +02:00
Michael Cardell Widerkrantz
b8f1d4a083
Add make target secret, update quickstart 2022-10-20 17:02:56 +02:00
Daniel Lublin
65f2272a45
Add TRNG to testfw, document 2022-10-20 12:05:19 +02:00
Michael Cardell Widerkrantz
c52f7d52cd
testfw: Add timer tests 2022-10-20 11:34:01 +02:00
Joachim Strömbergson
2531832683
Fix spelling and clarify programming board FW update procedure 2022-10-19 15:59:42 +02:00
Joachim Strömbergson
32312ead28
Fix spellinh nits 2022-10-19 15:27:51 +02:00