Skip to content

Commit

Permalink
2023-06-07-twpm-spi-fix.md: add SPI bit protocol table image
Browse files Browse the repository at this point in the history
  • Loading branch information
arturkow2000 committed Jul 28, 2023
1 parent 0ead8da commit 91a27a7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions blog/content/post/2023-06-07-twpm-spi-fix.md
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,11 @@ by master, so SPI disabling should be avoided if not needed.
The problem becomes even more evident when we want to implement TPM protocol
as we don't know size (and direction) of data payload. Each TPM frame starts
with a 4 byte header which tells us what is the size of transfer and what is the
direction (read from or write to a register). After we read the header, we
disable SPI, causing a few things:
direction (read from or write to a register):
![](/img/tpm2_spi_protocol.png)
After we read the header, we disable SPI, causing a few things:
- MISO is left floating (we have SPI v1.3 on STM32L4)
- we introduce additional delay by re-configuring SPI
Expand Down
Binary file added blog/static/img/tpm2_spi_protocol.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 91a27a7

Please sign in to comment.