Community
cancel
Showing results for 
Search instead for 
Did you mean: 
shivani_g_
Beginner
172 Views

sgx_create_enclave fail

Hi

I had compiled my code in Hardware Mode and tested it many times. It was working fine, but then the same code failed at the call to sgx_create_enclave() after I started my machine again. Now, the code works for in simulation mode but fails to create enclave in HW mode. I don't know how to rectify this.

Thank You

0 Kudos
2 Replies
yunfeng7854
New Contributor I
172 Views

You should try to get the error_code to figure out what's wrong. Possibly something is wrong with the PSW if the code has not been changed.

Wenhao

Noble__Daniel
Beginner
172 Views

I'm having the exact same problem. It was working, and then we restarted the machine (model is Intel(R) Xeon(R) CPU E3-1280 v5 @ 3.70GHz).

I am trying to make the sgxsdk RemoteAttestation example with some small changes with SGX_PRERELEASE=1 SGX_DEBUG=0. It makes OK but then I get the following error when I run it:

$ ./app

Error, call sgx_create_enclave fail [timing_test].
Error code: 0x0001

 

 

Reply