Hi Poppy,

 

The framework should not return PSA_ERROR_GENERIC_ERROR for a call to psa_connect.

The error might be returned from the SP2.

Could you double check if SP2 had been scheduled to run and received the connection request from SP1 correctly?

And had it handled the request as expected?

 

Best Regards,

Kevin

 

From: Edward Yang via TF-M <tf-m@lists.trustedfirmware.org>
Sent: Monday, June 6, 2022 5:40 PM
To: tf-m@lists.trustedfirmware.org
Subject: [TF-M] psa_connect() return invalid connect handle error

 


Hi experts,

We are developing a demo based on TF-M framework, and we also developed an application RoT partition SP1 and a PSA RoT partition SP2.


The secure partition SP1 needs calling a SP2's service during SP1's init(), when the SP1_init() calls a SP2 service, as the SP2 partition hasn't
been inited, the SP2_init() executes before handling requestS from SP1.


But the returned connect handle is an invalid handle, return PSA_ERROR_GENERIC_ERROR.

I am wondering why an invalid connect handle is returned? Any hints?








Best Regards,
Poppy Wu
吴偏偏

Macronix Microelectronics (Suzhou) Co.,Ltd
旺宏微电子(苏州)有限公司
http://www.mxic.com.cn

CONFIDENTIALITY NOTE:

This e-mail and any attachments may contain confidential information and/or personal data, which is protected by applicable laws. Please be reminded that duplication, disclosure, distribution, or use of this e-mail (and/or its attachments) or any part thereof is prohibited. If you receive this e-mail in error, please notify us immediately and delete this mail as well as its attachment(s) from your system. In addition, please be informed that collection, processing, and/or use of personal data is prohibited unless expressly permitted by personal data protection laws. Thank you for your attention and cooperation.

Macronix International Co., Ltd.

=====================================================================