<?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のトピックHow long KL81 TRNG module needs to generate 1M bytes random data?</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-long-KL81-TRNG-module-needs-to-generate-1M-bytes-random-data/m-p/689028#M42403</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently, I am using KL81 to generate 1M bytes random data. It took me nearly 2 hours to finish it. The random data is sent out through UART. I did a measurement, 98.4% of the time is used by TRNG module, 1.6% of the time is used in UART communication.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using SDK library API, TRNG_DRV_GetRandomData(), to get 128 bytes random data at each call. The configuration of TRNG is got from TRNG_DRV_InitUserConfigDefault() and done by TRNG_DRV_Init(). The board is using external clock which is 12MHz and the system clock has been configured to 72 MHz because CLOCK_INIT_CONFIG has been configured to CLOCK_RUN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By my understanding, if the random number generation is done by hardware, it should be much faster than by software. But under current situation, I just wondering to know is it normal or I have done something wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dawei&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: the default entropy delay is 3200, after I changed it to 1500, 1M bytes data generation takes 50 minutes to finish. This is good but still not good enough to me. Please advise, thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Aug 2017 01:41:49 GMT</pubDate>
    <dc:creator>daweiy</dc:creator>
    <dc:date>2017-08-01T01:41:49Z</dc:date>
    <item>
      <title>How long KL81 TRNG module needs to generate 1M bytes random data?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-long-KL81-TRNG-module-needs-to-generate-1M-bytes-random-data/m-p/689028#M42403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently, I am using KL81 to generate 1M bytes random data. It took me nearly 2 hours to finish it. The random data is sent out through UART. I did a measurement, 98.4% of the time is used by TRNG module, 1.6% of the time is used in UART communication.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using SDK library API, TRNG_DRV_GetRandomData(), to get 128 bytes random data at each call. The configuration of TRNG is got from TRNG_DRV_InitUserConfigDefault() and done by TRNG_DRV_Init(). The board is using external clock which is 12MHz and the system clock has been configured to 72 MHz because CLOCK_INIT_CONFIG has been configured to CLOCK_RUN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By my understanding, if the random number generation is done by hardware, it should be much faster than by software. But under current situation, I just wondering to know is it normal or I have done something wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dawei&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: the default entropy delay is 3200, after I changed it to 1500, 1M bytes data generation takes 50 minutes to finish. This is good but still not good enough to me. Please advise, thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2017 01:41:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-long-KL81-TRNG-module-needs-to-generate-1M-bytes-random-data/m-p/689028#M42403</guid>
      <dc:creator>daweiy</dc:creator>
      <dc:date>2017-08-01T01:41:49Z</dc:date>
    </item>
  </channel>
</rss>

