1

Topic: TPM2_IoCb_STCubeMX_I2C

Hello,

I need to use the function TPM2_IoCb_STCubeMX_I2C, because I can't use SPI with my project. But this one is missing in tpm_io.c
How I can fix this or how I can find this ?

Thanks

Share

Re: TPM2_IoCb_STCubeMX_I2C

Hi Et,

We just added preliminary support for CubeMX I2C HAL in tpm_io.c

Please clone and try the code in this PR - https://github.com/wolfSSL/wolfTPM/pull/142

To enable CubeMX I2C HAL:

1. wolfTPM must be build using `--enable-i2c`
2. Your OpenSTM or STM32IDE project should have the following define in its project settings: `WOLFSSL_STM32_CUBEMX`

Let us know if you have further questions.

Thanks,
Dimi

Dimi Tomov,
wolfSSL Engineer and Founder of TPM.dev

Share