KL82 TRNG

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

KL82 TRNG

1,113件の閲覧回数
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 返答(返信)

891件の閲覧回数
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 件の賞賛
返信

891件の閲覧回数
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 件の賞賛
返信

891件の閲覧回数
apikul
Contributor II

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

0 件の賞賛
返信