<?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>i.MX ProcessorsのトピックRe: Random Number Descriptor</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Random-Number-Descriptor/m-p/378398#M54292</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, I was able to generate the random number. We don't need the wait command while generation. It was needed during instantiation because the key registers were being loaded.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 28 Dec 2014 12:23:39 GMT</pubDate>
    <dc:creator>apoorvabhatia</dc:creator>
    <dc:date>2014-12-28T12:23:39Z</dc:date>
    <item>
      <title>Random Number Descriptor</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Random-Number-Descriptor/m-p/378397#M54291</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;This is the RNG descriptor that I have written:&lt;/P&gt;&lt;P&gt;/*****************************************&lt;/P&gt;&lt;P&gt; *----- Random Number descriptor -----*&lt;/P&gt;&lt;P&gt; *****************************************/&lt;/P&gt;&lt;P&gt;/* Header&lt;/P&gt;&lt;P&gt; *&amp;nbsp; 1011 0000 1000 0000 0000 0000 0000 0111&lt;/P&gt;&lt;P&gt; *&amp;nbsp; ++++-+-- Header&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; +-- 7 words in descriptor&lt;/P&gt;&lt;P&gt; */&amp;nbsp; &lt;/P&gt;&lt;P&gt;#define RNG_DESC1&amp;nbsp; 0xB0800006&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Load Data size register&lt;/P&gt;&lt;P&gt; *&amp;nbsp; 0001 0010 1000 0010 0000 0000 0000 0100&lt;/P&gt;&lt;P&gt; *&amp;nbsp; Data: 0x0000 0010&lt;/P&gt;&lt;P&gt; * Loading the data size register with the size of the key to be generated&lt;/P&gt;&lt;P&gt; * Length : 16 bytes&lt;/P&gt;&lt;P&gt; */&lt;/P&gt;&lt;P&gt;#define RNG_DESC2 0x12820004&lt;/P&gt;&lt;P&gt;#define RNG_DESC3 0x00000010&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* operation&lt;/P&gt;&lt;P&gt; *&amp;nbsp; 1000 0010 0101 0000 1000 0000 0000 0000&lt;/P&gt;&lt;P&gt; * operation: class1-op rng (SH0) generate random, state handle: 0, normal (non-deterministic mode)&lt;/P&gt;&lt;P&gt; */&lt;/P&gt;&lt;P&gt;#define RNG_DESC4 0x82500800&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Wait for Class 1 done&lt;/P&gt;&lt;P&gt;#define RNG_DESC5 0xA3000201&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* FIFO Store&lt;/P&gt;&lt;P&gt; *&amp;nbsp; 0110 0000 0011 0000 0000 0000 0001 0000&lt;/P&gt;&lt;P&gt; * fifostore: msg len=16&lt;/P&gt;&lt;P&gt; */&lt;/P&gt;&lt;P&gt;#define RNG_DESC6 0x60300010&lt;/P&gt;&lt;P&gt;#define RNG_DESC7 0x00000000 // assign the memory address to this in the main program where you call it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/***************MY CODE*************************************/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, it shows an error in the output ring: 0x40000504&lt;BR /&gt;which means that the fifth descriptor (#define RNG_DESC5 0xA3000201) is wrong. Basically i want to wait till the random number has been generated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone please help me with this? (i also tried 0xA2000001 which has been used in the SDK during instatntiation for similar purpose but still the same error is given)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Dec 2014 11:16:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Random-Number-Descriptor/m-p/378397#M54291</guid>
      <dc:creator>apoorvabhatia</dc:creator>
      <dc:date>2014-12-28T11:16:17Z</dc:date>
    </item>
    <item>
      <title>Re: Random Number Descriptor</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Random-Number-Descriptor/m-p/378398#M54292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, I was able to generate the random number. We don't need the wait command while generation. It was needed during instantiation because the key registers were being loaded.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Dec 2014 12:23:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Random-Number-Descriptor/m-p/378398#M54292</guid>
      <dc:creator>apoorvabhatia</dc:creator>
      <dc:date>2014-12-28T12:23:39Z</dc:date>
    </item>
  </channel>
</rss>

