<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Kinetis MicrocontrollersのトピックRe: K82 SDK example for TRNG</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K82-SDK-example-for-TRNG/m-p/836273#M50554</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eugene,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let us know the result. Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards,&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Jul 2018 01:35:52 GMT</pubDate>
    <dc:creator>Hui_Ma</dc:creator>
    <dc:date>2018-07-17T01:35:52Z</dc:date>
    <item>
      <title>K82 SDK example for TRNG</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K82-SDK-example-for-TRNG/m-p/836264#M50545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have K82 BusClock 48 Mhz and with this clock I try to use TRNG in way like in SDK example.&lt;/P&gt;&lt;P&gt;Initialization is OK but GetRandomData is always return error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRNG_GetDefaultConfig(&amp;amp;trngConfig);&lt;BR /&gt; /* Set sample mode of the TRNG ring oscillator to Von Neumann, for better random data.&lt;BR /&gt; * It is optional.*/&lt;BR /&gt; trngConfig.sampleMode = kTRNG_SampleModeVonNeumann;&lt;/P&gt;&lt;P&gt;/* Initialize TRNG */&lt;BR /&gt; status = TRNG_Init(TRNG0, &amp;amp;trngConfig);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have reduced clock divider from default to 2,4,or&amp;nbsp;kTRNG_RingOscDiv8&amp;nbsp;&lt;/P&gt;&lt;P&gt;trngConfig.ringOscDiv = TRNG_USER_CONFIG_DEFAULT_OSC_DIV; // 0 -&amp;gt; 2,4,8&lt;/P&gt;&lt;P&gt;&amp;nbsp;and GetRandomData start to return OK status and some random data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have taken data by 4 byte chunks and always last 3 bytes are equal,&lt;/P&gt;&lt;P&gt;like 0x68 0x35 0x35 0x35&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I think I need better configuration for TRNG block.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you suggest configuration values what make TRNG faster and more random ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Eugene&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 30 Jun 2018 14:53:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K82-SDK-example-for-TRNG/m-p/836264#M50545</guid>
      <dc:creator>EugeneHiihtaja</dc:creator>
      <dc:date>2018-06-30T14:53:50Z</dc:date>
    </item>
    <item>
      <title>Re: K82 SDK example for TRNG</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K82-SDK-example-for-TRNG/m-p/836265#M50546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure if you have referred the &lt;A href="https://mcuxpresso.nxp.com/en/dashboard"&gt;MCUXpresso SDK&lt;/A&gt;(&lt;SPAN class="" style="box-sizing: border-box; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial;"&gt;SDK Version:&lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="box-sizing: border-box; font-weight: 600; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial;"&gt;KSDK 2.4.1&lt;/SPAN&gt;) for FRDM-K82F board [TRNG] demo with below path:&lt;/P&gt;&lt;P&gt;C:\nxp\FRDM-K82F\boards\frdmk82f\driver_examples\trng\random&lt;/P&gt;&lt;P&gt;Wish it helps.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Mike&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2018 02:39:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K82-SDK-example-for-TRNG/m-p/836265#M50546</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2018-07-02T02:39:47Z</dc:date>
    </item>
    <item>
      <title>Re: K82 SDK example for TRNG</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K82-SDK-example-for-TRNG/m-p/836266#M50547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example is the same as in previous version of SDK.&lt;/P&gt;&lt;P&gt;Divider is set to 0 and TRNG dosn't work even BusClock = 48Mhz.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;trngConfig.ringOscDiv = TRNG_USER_CONFIG_DEFAULT_OSC_DIV;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;divider is need to be set.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Eugene&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2018 08:24:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K82-SDK-example-for-TRNG/m-p/836266#M50547</guid>
      <dc:creator>EugeneHiihtaja</dc:creator>
      <dc:date>2018-07-02T08:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: K82 SDK example for TRNG</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K82-SDK-example-for-TRNG/m-p/836267#M50548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eugene,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First of all, sorry for the delay reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did a test at FRDM-K82F board (Rev. B2) with MCUXpresso SDK [trng_random] demo, the SDK Version: KSDK 2.4.1 (2018-06-18).&lt;/P&gt;&lt;P&gt;I could get TRNG run with &lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;TRNG_USER_CONFIG_DEFAULT_OSC_DIV&lt;/SPAN&gt; value 0.&lt;/P&gt;&lt;P&gt;Please check below TRNG0_MCTL register value:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/64914i2B1F42A32A0E8E2E/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The Bus clock is 60MHz.&lt;/P&gt;&lt;P&gt;My serial terminal get below TRNG result output:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/64916i214A5AB69BDF7BE4/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I checked the &amp;lt;fsl_trng.c&amp;gt; file about default value of TRNG_USER_CONFIG_DEFAULT_OSC_DIV.&lt;/P&gt;&lt;P&gt;The &amp;lt;trng_random&amp;gt; project using CPU_MK82FN256VLL15 definition for MCU, so the default&amp;nbsp; TRNG_USER_CONFIG_DEFAULT_OSC_DIV macro value is kTRNG_RingOscDiv0 (0).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/64917iAA5CE45BB77AFAB9/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Wish it helps.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Mike&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2018 08:20:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K82-SDK-example-for-TRNG/m-p/836267#M50548</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2018-07-05T08:20:30Z</dc:date>
    </item>
    <item>
      <title>Re: K82 SDK example for TRNG</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K82-SDK-example-for-TRNG/m-p/836268#M50549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried multiple times :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. If TRNG init done like this, GetRandomData() is always failed:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRNG_GetDefaultConfig(&amp;amp;trngConfig);&lt;BR /&gt; /* Set sample mode of the TRNG ring oscillator to Von Neumann, for better random data.*/&lt;BR /&gt; trngConfig.sampleMode = kTRNG_SampleModeVonNeumann;&lt;/P&gt;&lt;P&gt;TRNG_Init(TRNG0, &amp;amp;trngConfig);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. If Like this , always OK :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRNG_GetDefaultConfig(&amp;amp;trngConfig);&lt;BR /&gt; /* Set sample mode of the TRNG ring oscillator to Von Neumann, for better random data.*/&lt;BR /&gt; trngConfig.sampleMode = kTRNG_SampleModeVonNeumann;&lt;BR /&gt; trngConfig.ringOscDiv = kTRNG_RingOscDiv2; // +++&lt;/P&gt;&lt;P&gt;TRNG_Init(TRNG0, &amp;amp;trngConfig);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reason is unknown for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Eugene&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2018 07:29:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K82-SDK-example-for-TRNG/m-p/836268#M50549</guid>
      <dc:creator>EugeneHiihtaja</dc:creator>
      <dc:date>2018-07-06T07:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: K82 SDK example for TRNG</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K82-SDK-example-for-TRNG/m-p/836269#M50550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the delay reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use the similar init code (1) and couldn't generate your mentioned issue with FRDM-K82F board.&lt;/P&gt;&lt;P&gt;Chip info:&lt;/P&gt;&lt;P&gt;MK82FN256VLL15&lt;/P&gt;&lt;P&gt;mask set: 1N03P&lt;/P&gt;&lt;P&gt;QAC1531C&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What's your chip info?&lt;/P&gt;&lt;P&gt;How many chips on your site with this behavior?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Mike&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2018 02:09:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K82-SDK-example-for-TRNG/m-p/836269#M50550</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2018-07-13T02:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: K82 SDK example for TRNG</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K82-SDK-example-for-TRNG/m-p/836270#M50551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have exactly the same lchip info on MCU.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also I have read DIE_ID and REV_ID by using&amp;nbsp;(SIM_SDID_DIEID(SIM-&amp;gt;SDID)), (SIM_SDID_REVID(SIM-&amp;gt;SDID))&lt;/P&gt;&lt;P&gt;- MCU DIE_ID 0xC00, REV_ID 0x8000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Issue is reproducible very well. Can it depends from someting else ?&lt;/P&gt;&lt;P&gt;I have only one board, but if you think this is board specific, I will try to find other one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Eugene&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2018 06:45:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K82-SDK-example-for-TRNG/m-p/836270#M50551</guid>
      <dc:creator>EugeneHiihtaja</dc:creator>
      <dc:date>2018-07-13T06:45:47Z</dc:date>
    </item>
    <item>
      <title>Re: K82 SDK example for TRNG</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K82-SDK-example-for-TRNG/m-p/836271#M50552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eugene,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check my FRDM-K82F board SIM-SDIO register info:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/65563iB8BEC40369BD6245/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I tried two FRDM-K82F board with same results (could not regenerate your mentioned issue).&lt;/P&gt;&lt;P&gt;Thank you for the attention.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Mike&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2018 02:37:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K82-SDK-example-for-TRNG/m-p/836271#M50552</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2018-07-16T02:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: K82 SDK example for TRNG</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K82-SDK-example-for-TRNG/m-p/836272#M50553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mike !&lt;/P&gt;&lt;P&gt;I have the same value in SIM-SDIO register.&lt;/P&gt;&lt;P&gt;I will try more boards. But on current one it is clear reproducible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Eugene&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2018 11:36:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K82-SDK-example-for-TRNG/m-p/836272#M50553</guid>
      <dc:creator>EugeneHiihtaja</dc:creator>
      <dc:date>2018-07-16T11:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: K82 SDK example for TRNG</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K82-SDK-example-for-TRNG/m-p/836273#M50554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eugene,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let us know the result. Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards,&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2018 01:35:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K82-SDK-example-for-TRNG/m-p/836273#M50554</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2018-07-17T01:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: K82 SDK example for TRNG</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K82-SDK-example-for-TRNG/m-p/836274#M50555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi !&lt;/P&gt;&lt;P&gt;I have got second board and result is the same.&lt;/P&gt;&lt;P&gt;With default configuration , TRNG is not able to generate random data.&lt;/P&gt;&lt;P&gt;Bus clock is 48 Mhz.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRNG_GetDefaultConfig(&amp;amp;trngConfig);&lt;BR /&gt; /* Set sample mode of the TRNG ring oscillator to Von Neumann, for better random data.*/&lt;BR /&gt; trngConfig.sampleMode = kTRNG_SampleModeVonNeumann;&lt;BR /&gt; //trngConfig.ringOscDiv = kTRNG_RingOscDiv0; // Default, error&lt;BR /&gt; trngConfig.ringOscDiv = kTRNG_RingOscDiv2; // OK&lt;BR /&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if oscillator clock is not divided,&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;GetRandomData() always return error 1.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Could you suggest exact check list for all other dependencies what might have effect for TRNG functionality ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Current issue is reproducible on 2 boards and it is start to be interesting what can be problem.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Eugene&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2018 07:45:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K82-SDK-example-for-TRNG/m-p/836274#M50555</guid>
      <dc:creator>EugeneHiihtaja</dc:creator>
      <dc:date>2018-07-31T07:45:08Z</dc:date>
    </item>
    <item>
      <title>Re: K82 SDK example for TRNG</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K82-SDK-example-for-TRNG/m-p/836275#M50556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eugene,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the info.&lt;/P&gt;&lt;P&gt;Could you please provide your used MCUXpresso SDK software package info and IDE software &amp;amp; version info?&lt;/P&gt;&lt;P&gt;I think there should not with hardware issue, for you are using the same FRDM-K82F board.&lt;/P&gt;&lt;P&gt;I would check if there with software issue. Thanks.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Mike&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2018 01:51:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K82-SDK-example-for-TRNG/m-p/836275#M50556</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2018-08-01T01:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: K82 SDK example for TRNG</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K82-SDK-example-for-TRNG/m-p/836276#M50557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mike !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using all latest versions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- MCUXpresso IDE v10.2.1 [Build 795] [2018-07-25]&lt;BR /&gt;- MCUXpresso SDK v2.4.1 [2018-06-18]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and TRNG is initialized by using mbedTLS library call&amp;nbsp;CRYPTO_InitHardware();&lt;/P&gt;&lt;P&gt;divider value 2 and up and everything is work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be I should return to some examples from SDK. I also use direct JTAG flashing and J19 connector in use.&lt;/P&gt;&lt;P&gt;All other components work fine. This is only one line what is problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have started to divide clock becouse find some mentioned about it in nxp community blogs but I can't find link any more.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Eugene&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2018 07:14:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K82-SDK-example-for-TRNG/m-p/836276#M50557</guid>
      <dc:creator>EugeneHiihtaja</dc:creator>
      <dc:date>2018-08-01T07:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: K82 SDK example for TRNG</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K82-SDK-example-for-TRNG/m-p/836277#M50558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eugene,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did a test with MCUXpresso SDK provided &amp;lt;frdmk82f_mbedtls_benchmark&amp;gt; project and didn't find your mentioned issue.&lt;/P&gt;&lt;P&gt;My hardware test environment is below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/73335i0306BA656779B77F/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I checked the TRNG0_MCTL register value, the [OSC_DIV] value is 0x0.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/73336iA4660CA4B79E2A43/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/73337i037D9293A4EB5550/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I didn't modify the [ksdk_mbedtls.c] file, which with below code to initialize TRNG module:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/73338i342EFCCCF4A25B70/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I copy &amp;lt;trng_random&amp;gt; project code to [benchmark.c] file to generate random numbers:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_5.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/73339iED3B9FB68236ECB4/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_5.png" alt="pastedImage_5.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also attached my modified [benchmark.c] file for your reference.&lt;/P&gt;&lt;P&gt;I didn't meet any issue with above code.&lt;/P&gt;&lt;P&gt;Thank you for the attention.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Mike&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2018 03:30:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K82-SDK-example-for-TRNG/m-p/836277#M50558</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2018-08-02T03:30:30Z</dc:date>
    </item>
    <item>
      <title>Re: K82 SDK example for TRNG</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K82-SDK-example-for-TRNG/m-p/836278#M50559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mike !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But you execute test at original system clock 120 Mhz ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For have shared example, I have taken mbedtls_selftest and drop system/bus clock&amp;nbsp; to 40 Mhz by using embedded ConfigTools. And result is fully reproducable, if divisor 0 it returns 1 and ENTROPY test is not pass.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So it some how depends from value of clocks and I haven't modify clock tree.&lt;/P&gt;&lt;P&gt;I have attached modified example from SDK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my code I have the next clocks :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kCLOCK_CoreSysClk&amp;nbsp; - 48000000 Hz&lt;BR /&gt;kCLOCK_BusClk&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;- 48000000 Hz&lt;BR /&gt;kCLOCK_FlexBusClk&amp;nbsp; - 6000000 Hz&lt;BR /&gt;kCLOCK_FlashClk&amp;nbsp; &amp;nbsp; &amp;nbsp; - 24000000 Hz&lt;BR /&gt;kCLOCK_PllFllSelClk&amp;nbsp; - 12000000 Hz&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and at list divider 2 is need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would be nice to know from what clocks have so nice dependence.&lt;/P&gt;&lt;P&gt;It help to rearrange clock/tree for avoid this nonstability of TRNG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Eugene&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2018 11:49:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K82-SDK-example-for-TRNG/m-p/836278#M50559</guid>
      <dc:creator>EugeneHiihtaja</dc:creator>
      <dc:date>2018-08-02T11:49:06Z</dc:date>
    </item>
    <item>
      <title>Re: K82 SDK example for TRNG</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K82-SDK-example-for-TRNG/m-p/836279#M50560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eugene,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use your attached code and could generate your mentioned issue.&lt;/P&gt;&lt;P&gt;Then, I do a test with different clock frequency and check TRNG working status.&lt;/P&gt;&lt;P&gt;Please check below test result:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/79597i03C2A7D5BF7CA454/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;There with below description about TRNG working scheme:&lt;/P&gt;&lt;P&gt;TRNG is based on collecting bits from a random noise source. This random noise source is a ring oscillator that is sensitive to random noise (temperature variations, voltage variations, cross-talk and other random noise) within the device in which the TRNG is used.&lt;/P&gt;&lt;P&gt;The ring oscillator clock frequency doesn't mentioned in reference manual.&lt;/P&gt;&lt;P&gt;From the test, the TRNG working status quite related with bus clock and itself clock frequency.&lt;/P&gt;&lt;P&gt;Thank you for the attention.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Mike&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2018 08:25:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K82-SDK-example-for-TRNG/m-p/836279#M50560</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2018-08-03T08:25:36Z</dc:date>
    </item>
    <item>
      <title>Re: K82 SDK example for TRNG</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K82-SDK-example-for-TRNG/m-p/836280#M50561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mike !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But what it means for our case ? If we select right divider and TRNG work in normal condition,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can we be sure if power mode transpositions, temperature and etc. will not have any effect for entropy of TRNG ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please, give advice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Eugene&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2018 08:45:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K82-SDK-example-for-TRNG/m-p/836280#M50561</guid>
      <dc:creator>EugeneHiihtaja</dc:creator>
      <dc:date>2018-08-03T08:45:25Z</dc:date>
    </item>
    <item>
      <title>Re: K82 SDK example for TRNG</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K82-SDK-example-for-TRNG/m-p/836281#M50562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eugene,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There with less info at reference manual about TRNG working conditions (bus clock frequency and TRNG clock frequency).&lt;/P&gt;&lt;P&gt;I need to check with Kinetis product team about it.&lt;/P&gt;&lt;P&gt;I will let you know when there with any feedback.&lt;/P&gt;&lt;P&gt;Thank you for the patience.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards,&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2018 02:14:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K82-SDK-example-for-TRNG/m-p/836281#M50562</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2018-08-06T02:14:53Z</dc:date>
    </item>
    <item>
      <title>Re: K82 SDK example for TRNG</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K82-SDK-example-for-TRNG/m-p/836282#M50563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eugene,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check Kinetis product team below feedback:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; color: #0000ff;"&gt;&lt;SPAN style="color: #000080;"&gt;The problem is that as you slow down the peripheral clock for the TRNG module, the TRNG oscillator is running too fast to clock the downstream logic. Changing the OSC_DIV setting allows for slowing down the TRNG oscillator.&amp;nbsp;&lt;/SPAN&gt; In general the design team recommends using OSC_DIV=01 and SAMP_MODE=01 on K81.&lt;BR /&gt; &lt;BR /&gt; On a properly working TRNG, setting SAMP_MODE=00 does not improve the results, and make the TRNG take 4x as long to generate entropy (of no better quality).&lt;BR /&gt; &lt;BR /&gt; &lt;SPAN style="color: #000080;"&gt;I'm not sure how you got some of the lower frequency tests to work. It might be that with some configurations there was some aliasing taking place that allowed the test to pass. Even with the max frequency using OSC_DIV=01 is recommended, and with that setting you should be able to cover reasonable RUN frequencies.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Mike&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2018 01:39:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K82-SDK-example-for-TRNG/m-p/836282#M50563</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2018-08-08T01:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: K82 SDK example for TRNG</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K82-SDK-example-for-TRNG/m-p/836283#M50564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mike !&lt;/P&gt;&lt;P&gt;&amp;nbsp;So you recommend do not use System/Bus clock less than 60Mhz.&lt;/P&gt;&lt;P&gt;And we can assume if TRNG give good result at normal condition, it will not fail later on with other temperature and transistition to/from low power mode ? I mean RUN to VLLS3/LLS3 and back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this so ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Eugene&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2018 07:04:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K82-SDK-example-for-TRNG/m-p/836283#M50564</guid>
      <dc:creator>EugeneHiihtaja</dc:creator>
      <dc:date>2018-08-08T07:04:39Z</dc:date>
    </item>
  </channel>
</rss>

