Loading Math register (CAAM)

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Loading Math register (CAAM)

1,028 次查看
apoorvabhatia
Contributor III

I am trying to load the math register 0 with a value of 1 million.

I am using the following descriptors for the same.

/* Load 1 Million to Math Register0

*

*  0001.0110.1000.1000.0001.1100.0000.0100

*  Data: 0x000F 4240

*

* Loading the Math Register0 with immediate value of 1 million

*/

#define RNG_DESC4 0x16881B04

#define RNG_DESC5 0x000F4240

Can anybody please tell what is wrong with it? I am getting the same error again and again of invalid load command.

Thanks.

标签 (1)
标记 (3)
0 项奖励
回复
1 回复

926 次查看
Yuri
NXP Employee
NXP Employee

  According to the following tables in the Security RM -


Table 5-22 (LOAD command format) ;
Table 5-24 (LOAD command DST, LENGTH, and OFFSET field values)


IMM field should be zero (is 1 in Your case), which means “Data to be loaded is found at the
location pointed to by the next word”.

Have a great day,
Yuri

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

0 项奖励
回复