I would suggest you perform the things you want to do first on a high
level operating system (e.g. Linux) using tpm2_nvwrite / tpm2_nvread
and using TSS2_LOG=all+TRACE to get traces of what actually is
communicated with the TPM.
Then you replicate your success again on the MCU / SPI, feeding it
similar SPI commands as shown in the traces.
On Fri, Jul 27, 2018 at 3:00 PM Abbaraju Manojsai
We interfaced slb 9670 (TPM 2.0) with Msp430 16 bit controller through spi which does
not support Linux Kernel.
Our Main Task , is store a few bytes of data in NV memory as simple way into SLB 9670
Now we able to access the spi communication of slb 9670 with controller,
we tested the reading sample registers of slb 9670 like DIDVID register , version id
of slb 9670, status register and writing a values into registers through spi
so spi read and spi write communication is working with chip by accessing this
Our Main Task , is store a few bytes of data into Nv memory of SLB 9670.please help me.
i am not able to properly understand the tcg stack documents of tpm 2.0
so kindly help me at what are required steps , should i follow ?
tpm2 mailing list