TRNG Errata?

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

TRNG Errata?

1,280 次查看
chriscowdery
Contributor V

Hi All,

 We are experiencing an issue with the TRNG. Inside the driver, there is mention of a defect in function trng_ReadEntropy().

 /* Dummy read. Defect workaround. * TRNG could not clear ENT_VAL flag automatically, application * had to do a dummy reading operation for anyone TRNG register * to clear it firstly, then to read the RTENT0 to RTENT15 again */

We are finding that after 1 or more reads, the peripheral starts to behave inconsistently, and cannot be used.

Is the Errata documented anywhere?, does it apply to the iMXRT1021?

Thanks,

Chris.

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

1,203 次查看
jingpan
NXP TechSupport
NXP TechSupport

Hi Chris,

there is a TRNG example in SDK. Have you tried it? It read 10 RNG data continuously. It hasn't any problem.

Regards,

Jing

0 项奖励
回复

1,203 次查看
chriscowdery
Contributor V

Hi,

 We found the default Frequency Count Limit was too low, so it was tripping its own error detection.

So it is resolved now.


Regards,


Chris.

0 项奖励
回复

956 次查看
np
Contributor IV

Hi Chris,

May I please ask what you changed the Frequency Count Limit to? The default range in fsl_trng.c seems to be:

#define TRNG_USER_CONFIG_DEFAULT_FREQUENCY_MAXIMUM 25600
#define TRNG_USER_CONFIG_DEFAULT_FREQUENCY_MINIMUM 1600

Thanks, Nick

0 项奖励
回复