Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] TPM_TX_RX_TEST Load Access fault #26016

Open
T-bertola opened this issue Jan 25, 2025 · 0 comments
Open

[bug] TPM_TX_RX_TEST Load Access fault #26016

T-bertola opened this issue Jan 25, 2025 · 0 comments

Comments

@T-bertola
Copy link

Description

I tested sending the following TPM command:
0x0B, 0xD4, 0x00,0x80,
0x80, 0x01, 0x00, 0x00.
0x00, 0x0C, 0x00, 0x00,
0x01, 0x7B, 0x00, 0x04
Which is a valid Get_random_CC
However I received a load access fault running this test.
Ony after adding this line to put the SPI device in FW mode did the write work:
static const uint32_t disable_SPI_mode[1] = {0x00000000};
mmio_region_memcpy_to_mmio32(spi_device.dev.base_addr, SPI_DEVICE_CONTROL_REG_OFFSET, disable_SPI_mode, 4 );
Not sure if I am missing something but this seems the correct way to set the test up. Thanks,
Best,
Tom :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant