How to execute Tpm2CommandClear with Physical Presence?


joseph@...
 

Hi,

I want to Clear TPM.

So, I tried to execute Tpm2CommandClear, not work.
Tpm2ClearControl ...
Tpm2ClearControl - Not Found
How to clear TPM2 with Physical Presence?

Kind regards,
Joseph


joseph@...
 

Using Tpm2DeviceLibTcg2 instead of Tpm2DeviceLibDTpm changed the error content.

Tpm2ClearControl - Device Error
ClearControl: Response Code error! 0x00000185
The contents of the error are the same even as execute the below code.
How can I use Platform Authentication?
Tcg2PhysicalPresenceLibSubmitRequestToPreOSFunction(TCG2_PHYSICAL_PRESENCE_CLEAR, 0);
Tcg2PhysicalPresenceLibProcessRequest(NULL);