<?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>LPC MicrocontrollersのトピックRe: Why the CMSIS DSP Matrix Multiplication outputs 0 after few iterations?</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Why-the-CMSIS-DSP-Matrix-Multiplication-outputs-0-after-few/m-p/934298#M37199</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/soledad"&gt;soledad&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;I tried to store a matrix of size 11958*8 in the SDRAM and tried to read it.&lt;/P&gt;&lt;P&gt;I find that the 0.000 starts at elemnt &lt;STRONG&gt;12831&lt;/STRONG&gt; now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see the attached image. What is the real problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="error_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/84344i933DF33F44F28A55/image-size/large?v=v2&amp;amp;px=999" role="button" title="error_2.png" alt="error_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Aug 2019 14:03:35 GMT</pubDate>
    <dc:creator>shreyas123</dc:creator>
    <dc:date>2019-08-01T14:03:35Z</dc:date>
    <item>
      <title>Why the CMSIS DSP Matrix Multiplication outputs 0 after few iterations?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Why-the-CMSIS-DSP-Matrix-Multiplication-outputs-0-after-few/m-p/934295#M37196</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 am using the CMSIS DSP library for multiplying two matrices on the keil mcb 1800 board using MCU Xpresso IDE. I am using the external SDRAM of 16 MB for storing the result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Matrix "xmat" is 1604*8 and omega_transpose is of size 8*100.....Thus the resulting matrix is of size 1604*100.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am printing the resulting matrix. &lt;STRONG&gt;I am also printing the row number each time and I find that at 65599 the result becomes 0.00000.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone tell me why this is happening and how to solve it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find attached the screenshot of the error and the code (test3.c).&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="error.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/81155iE5C23EFCB6708EE7/image-size/large?v=v2&amp;amp;px=999" role="button" title="error.png" alt="error.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jul 2019 12:35:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Why-the-CMSIS-DSP-Matrix-Multiplication-outputs-0-after-few/m-p/934295#M37196</guid>
      <dc:creator>shreyas123</dc:creator>
      <dc:date>2019-07-31T12:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: Why the CMSIS DSP Matrix Multiplication outputs 0 after few iterations?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Why-the-CMSIS-DSP-Matrix-Multiplication-outputs-0-after-few/m-p/934296#M37197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to isolate the issue, could you please try with smaller dimensions&amp;nbsp;of the matrix. I want to check if the is a RAM issue.&amp;nbsp;&amp;nbsp;Check the linker map file for the RAM used by the variables.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&amp;nbsp;&lt;/P&gt;&lt;P&gt;Soled&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;ad&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jul 2019 17:14:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Why-the-CMSIS-DSP-Matrix-Multiplication-outputs-0-after-few/m-p/934296#M37197</guid>
      <dc:creator>soledad</dc:creator>
      <dc:date>2019-07-31T17:14:17Z</dc:date>
    </item>
    <item>
      <title>Re: Why the CMSIS DSP Matrix Multiplication outputs 0 after few iterations?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Why-the-CMSIS-DSP-Matrix-Multiplication-outputs-0-after-few/m-p/934297#M37198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/soledad"&gt;soledad&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I tried it with smaller dimension matrices 10*10 size.&lt;/P&gt;&lt;P&gt;There is no problem with that at all. It gives me correct output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Really need your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shreyas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Aug 2019 09:04:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Why-the-CMSIS-DSP-Matrix-Multiplication-outputs-0-after-few/m-p/934297#M37198</guid>
      <dc:creator>shreyas123</dc:creator>
      <dc:date>2019-08-01T09:04:32Z</dc:date>
    </item>
    <item>
      <title>Re: Why the CMSIS DSP Matrix Multiplication outputs 0 after few iterations?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Why-the-CMSIS-DSP-Matrix-Multiplication-outputs-0-after-few/m-p/934298#M37199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/soledad"&gt;soledad&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;I tried to store a matrix of size 11958*8 in the SDRAM and tried to read it.&lt;/P&gt;&lt;P&gt;I find that the 0.000 starts at elemnt &lt;STRONG&gt;12831&lt;/STRONG&gt; now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see the attached image. What is the real problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="error_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/84344i933DF33F44F28A55/image-size/large?v=v2&amp;amp;px=999" role="button" title="error_2.png" alt="error_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Aug 2019 14:03:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Why-the-CMSIS-DSP-Matrix-Multiplication-outputs-0-after-few/m-p/934298#M37199</guid>
      <dc:creator>shreyas123</dc:creator>
      <dc:date>2019-08-01T14:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: Why the CMSIS DSP Matrix Multiplication outputs 0 after few iterations?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Why-the-CMSIS-DSP-Matrix-Multiplication-outputs-0-after-few/m-p/934299#M37200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Seems to be a problem with available RAM. You need to check&lt;SPAN&gt;&amp;nbsp;the linker map file for the RAM used and then play with the heap size.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;Soledad&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Aug 2019 15:08:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Why-the-CMSIS-DSP-Matrix-Multiplication-outputs-0-after-few/m-p/934299#M37200</guid>
      <dc:creator>soledad</dc:creator>
      <dc:date>2019-08-01T15:08:13Z</dc:date>
    </item>
    <item>
      <title>Re: Why the CMSIS DSP Matrix Multiplication outputs 0 after few iterations?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Why-the-CMSIS-DSP-Matrix-Multiplication-outputs-0-after-few/m-p/934300#M37201</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 tried these settings:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please check and see if I am doing anything wrong?&lt;span class="lia-inline-image-display-wrapper" image-alt="linkersetting.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/86703i9B7DC74E810F2B44/image-size/large?v=v2&amp;amp;px=999" role="button" title="linkersetting.png" alt="linkersetting.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Aug 2019 11:47:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Why-the-CMSIS-DSP-Matrix-Multiplication-outputs-0-after-few/m-p/934300#M37201</guid>
      <dc:creator>shreyas123</dc:creator>
      <dc:date>2019-08-02T11:47:57Z</dc:date>
    </item>
    <item>
      <title>Re: Why the CMSIS DSP Matrix Multiplication outputs 0 after few iterations?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Why-the-CMSIS-DSP-Matrix-Multiplication-outputs-0-after-few/m-p/934301#M37202</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;There is not necessarily something wrong, you need to play with the RAM values in order you can do your application.&amp;nbsp; You need to test.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a nice day!&lt;/P&gt;&lt;P&gt;Regards&amp;nbsp;&lt;/P&gt;&lt;P&gt;Soledad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Aug 2019 18:20:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Why-the-CMSIS-DSP-Matrix-Multiplication-outputs-0-after-few/m-p/934301#M37202</guid>
      <dc:creator>soledad</dc:creator>
      <dc:date>2019-08-02T18:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: Why the CMSIS DSP Matrix Multiplication outputs 0 after few iterations?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Why-the-CMSIS-DSP-Matrix-Multiplication-outputs-0-after-few/m-p/934302#M37203</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 tried with different values of RAM from 5MB to 16MB. Nothing helped actually. Still the multiplication result becomes 0 after some iterations.&lt;/P&gt;&lt;P&gt;I also tested with a normal multiplication program(without using CMSIS-DSP) and the result is perfect without any errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;why is it that the CMSIS is giving such wierd problems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help!!&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Aug 2019 09:43:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Why-the-CMSIS-DSP-Matrix-Multiplication-outputs-0-after-few/m-p/934302#M37203</guid>
      <dc:creator>shreyas123</dc:creator>
      <dc:date>2019-08-05T09:43:35Z</dc:date>
    </item>
    <item>
      <title>Re: Why the CMSIS DSP Matrix Multiplication outputs 0 after few iterations?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Why-the-CMSIS-DSP-Matrix-Multiplication-outputs-0-after-few/m-p/934303#M37204</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;You mention that&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;smaller dimension matrices 10*10 size, works, have you try with a Square Matrix of the size that you request,&amp;nbsp; this would be the problem if the RAM it is not fixing the issue.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Aug 2019 00:38:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Why-the-CMSIS-DSP-Matrix-Multiplication-outputs-0-after-few/m-p/934303#M37204</guid>
      <dc:creator>soledad</dc:creator>
      <dc:date>2019-08-06T00:38:11Z</dc:date>
    </item>
    <item>
      <title>Re: Why the CMSIS DSP Matrix Multiplication outputs 0 after few iterations?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Why-the-CMSIS-DSP-Matrix-Multiplication-outputs-0-after-few/m-p/934304#M37205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried your suggestion. The bigger sized square matrix didn"t fit in my memory like 1000*1000.&lt;/P&gt;&lt;P&gt;The program works for smaller dimensions of matrices.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would be great if you could replicate the issue on your side if possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am really stuck with this. Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I write my own program for the same multiplication and use SDRAM, there isn"t any issue. But the CMSIS DSP isn"t working for larger matrices.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Aug 2019 16:13:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Why-the-CMSIS-DSP-Matrix-Multiplication-outputs-0-after-few/m-p/934304#M37205</guid>
      <dc:creator>shreyas123</dc:creator>
      <dc:date>2019-08-09T16:13:00Z</dc:date>
    </item>
    <item>
      <title>Re: Why the CMSIS DSP Matrix Multiplication outputs 0 after few iterations?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Why-the-CMSIS-DSP-Matrix-Multiplication-outputs-0-after-few/m-p/934305#M37206</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 confirms what it is detailed in the CMSIS DSP libraries, the Matrix Multiplication only supports square matrix and it is not working with bigger&amp;nbsp; dimension matrices due to RAM constrains.&amp;nbsp; Unfortunately CMSIS libraries handle the memory in a different way and this is out of our scope of support.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a nice day!&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Soledad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Aug 2019 16:31:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Why-the-CMSIS-DSP-Matrix-Multiplication-outputs-0-after-few/m-p/934305#M37206</guid>
      <dc:creator>soledad</dc:creator>
      <dc:date>2019-08-14T16:31:18Z</dc:date>
    </item>
  </channel>
</rss>

