<?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 Design Studio中的主题 Re: Trouble using Double variables</title>
    <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Trouble-using-Double-variables/m-p/406494#M2807</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alice,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using KDS 2.0.0 and the chip is MK21FN1M0AVLQ12. I got around the problem by adding an extra dummy element to the end of the double array, it's a hacky fix, but it works and my algorithm are now working fine, I am still interested to now why this happened.&lt;/P&gt;&lt;P&gt;I'll send what you asked for as soon as I get the chance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 May 2015 15:44:26 GMT</pubDate>
    <dc:creator>kavehfirouzi</dc:creator>
    <dc:date>2015-05-07T15:44:26Z</dc:date>
    <item>
      <title>Trouble using Double variables</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Trouble-using-Double-variables/m-p/406492#M2805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I recently ported my codes from Keil uVision to Kinetis Design Studio and I ran into a strange problem, It looks like as if the Kinetis compiler doesn't know how to handle double variables properly.&lt;/P&gt;&lt;P&gt;So I have a static array of double variables in one of my functions. Compiler sets the memory location of the last element of this static array to 0x1fff6868. I realized one of my other static variables somewhere else in the code is getting corrupted and when I investigated I noticed it is located at the address 0x1fff686c, which means it overlaps with the double variable located at 0x1fff6868 because they're only 4 bytes apart instead of 8!&lt;/P&gt;&lt;P&gt;Why is this happening? Is there some sort of compiler settings I should change?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2015 15:23:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Trouble-using-Double-variables/m-p/406492#M2805</guid>
      <dc:creator>kavehfirouzi</dc:creator>
      <dc:date>2015-05-06T15:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble using Double variables</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Trouble-using-Double-variables/m-p/406493#M2806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello K,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please tell me&amp;nbsp;&amp;nbsp; the name of your chip and the version of the KDS.&lt;/P&gt;&lt;P&gt;And could you screenshot the code and handle&amp;nbsp; of "a static array of double variables" and show the happening on memory .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 06:31:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Trouble-using-Double-variables/m-p/406493#M2806</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2015-05-07T06:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble using Double variables</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Trouble-using-Double-variables/m-p/406494#M2807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alice,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using KDS 2.0.0 and the chip is MK21FN1M0AVLQ12. I got around the problem by adding an extra dummy element to the end of the double array, it's a hacky fix, but it works and my algorithm are now working fine, I am still interested to now why this happened.&lt;/P&gt;&lt;P&gt;I'll send what you asked for as soon as I get the chance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 15:44:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Trouble-using-Double-variables/m-p/406494#M2807</guid>
      <dc:creator>kavehfirouzi</dc:creator>
      <dc:date>2015-05-07T15:44:26Z</dc:date>
    </item>
  </channel>
</rss>

