imx28 dcp encryp only once

cancel
Showing results for 
Search instead for 
Did you mean: 

imx28 dcp encryp only once

Jump to solution
216 Views
jérômedusautois
Contributor I

Hi,

I try to use DCP to encrypt buffer with OTP key.

I can encrypt buffer only one time for each board reset. After first encrypt, I don't have error but result buffer is always set to initial value.

I try with key in payload and I have same result.

I try for all channel and I have same result.

I try to soft reset DCP and I have same result.

In fact It try many other cases and I have same result : only first DCP command work. All other leave result buffer unchanged.

Can you help me, please.

best regards

Jérôme

Labels (1)
0 Kudos
1 Solution
55 Views
Yuri
NXP TechSupport
NXP TechSupport

Jerome, hello !


1.

Please check if the issue is not concerned with cache coherency.


2.

  Please verify if clear bit operation is used, when accessing  to HW_DCP_STAT(_CLR).


3.

  You may look at FSL Linux BSP.  Please refer to Chapter 20 [Data Co-Processor
(DCP) Driver ] of “MX28_EVK_Linux_Reference_Manual.pdf”. Section 20.6 (Unit Test)
describes Tcrypt as DCP test module.

https://www.freescale.com/webapp/Download?colCode=L2.6.35_1.1.0_ER_SOURCE&appType=license&location=n...


Have a great day,
Yuri

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

0 Kudos
2 Replies
55 Views
jérômedusautois
Contributor I

Hi Yuri,

Your first point was the good one!

If I clean cache before starting dcp, all is good.

Thanks,

Have a great day too!

Jérôme

0 Kudos
56 Views
Yuri
NXP TechSupport
NXP TechSupport

Jerome, hello !


1.

Please check if the issue is not concerned with cache coherency.


2.

  Please verify if clear bit operation is used, when accessing  to HW_DCP_STAT(_CLR).


3.

  You may look at FSL Linux BSP.  Please refer to Chapter 20 [Data Co-Processor
(DCP) Driver ] of “MX28_EVK_Linux_Reference_Manual.pdf”. Section 20.6 (Unit Test)
describes Tcrypt as DCP test module.

https://www.freescale.com/webapp/Download?colCode=L2.6.35_1.1.0_ER_SOURCE&appType=license&location=n...


Have a great day,
Yuri

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

0 Kudos