KL82 TRNG

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

KL82 TRNG

1,116 次查看
apikul
Contributor II

I think I've tried every bit combination to 37.1.3.3.2 TRNG0 Miscellaneous Control (TRNG0_MCTL). I've followed the datasheet, I just can't get it to work. Always with unclearable errors and bad frequency counter values, even though I leave them on default values.

I turn off the PRGM bit, I turn on TRNG_ACC, sometimes together, sometimes in that order, and sometimes the reverse. I've tried setting RST_DEF or FOR_SCLK before doing that. Nothing seems to work- always unclearable errors.

I've done it in C and I've done it from the debugger, nothing works.

I would appreciate any suggestions.

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

894 次查看
apikul
Contributor II

Default values in TRNG0_SDCTL, MCG, and TRNG0_FRQMAX produce an error on startup. Increase TRNG0_FRQMAX or reduce TRNG0_SDCTL to get around this. Example "Program flow" in TRM doesn't really do the complexity of the submodule justice.

0 项奖励
回复

894 次查看
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi Andrew Pikul ,

Sorry for the late reply!

Have you try to refer the trng random example in SDK_2.2_FRDM-KL82Z?

trng random SDK_2.2_FRDM-KL82Z.jpg

You can download the SDK_2.2_FRDM-KL82Zpackage refer Generating a downloadable MCUXpresso SDK v.2 package.

And then the trng random example can be found in it's folder. (For example: C:\SDK_2.2_FRDM-KL82Z\boards\frdmkl82z\driver_examples\trng\random)

Best Regards,

Robin

 

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

0 项奖励
回复

894 次查看
apikul
Contributor II

Thanks, I appreciate. Still getting used to using the SDK for proper implementation instead of the TRM.

0 项奖励
回复