<?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>Digital Signal ControllersのトピックRe: Data corruption in MC56F84763</title>
    <link>https://community.nxp.com/t5/Digital-Signal-Controllers/Data-corruption-in-MC56F84763/m-p/391774#M377</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;The datatype of both &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Value and CONSTANT is unsigned char.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;What I have observed is when my project was small such errors did not occur.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;When the project size increased such errors in if loops started occuring especially in the ISRs.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Please let me know if there is any other data I can provide.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;I am not using PE. Could that give memory issues??&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Aug 2015 09:55:22 GMT</pubDate>
    <dc:creator>sumanbhandari</dc:creator>
    <dc:date>2015-08-25T09:55:22Z</dc:date>
    <item>
      <title>Data corruption in MC56F84763</title>
      <link>https://community.nxp.com/t5/Digital-Signal-Controllers/Data-corruption-in-MC56F84763/m-p/391772#M375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I m using MC56F84763 with CodeWarrior for MCU,&amp;nbsp; Version: 10.6,&amp;nbsp; Build Id:140329.&lt;/P&gt;&lt;P&gt;The code is written in C. &lt;/P&gt;&lt;P&gt;I observe simple checks failing erroneously and when i verify it in debug mode it show checks like if(3 != 3) returning true !!&lt;/P&gt;&lt;P&gt;For example&lt;/P&gt;&lt;P&gt;if(Value != CONSTANT)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Statement1;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Statement2;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;where Value and CONSTANT will show &lt;STRONG&gt;same&lt;/STRONG&gt; value in debug mode watch window but still the if check with return true and execute Statement1.&lt;/P&gt;&lt;P&gt;Is there any specific compiler settings to fix this?&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;Suman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2015 12:50:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Digital-Signal-Controllers/Data-corruption-in-MC56F84763/m-p/391772#M375</guid>
      <dc:creator>sumanbhandari</dc:creator>
      <dc:date>2015-08-24T12:50:15Z</dc:date>
    </item>
    <item>
      <title>Re: Data corruption in MC56F84763</title>
      <link>https://community.nxp.com/t5/Digital-Signal-Controllers/Data-corruption-in-MC56F84763/m-p/391773#M376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I use the attached simple project to test , but cannot reproduce the problem.&amp;nbsp; What are the data type of ‘Value’ and ‘CONSTANT’? Please use the same data type for them, or use type cast so convert the data type of one operand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this does not help, please attach a simple project to help us reproduce the problem. Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fiona Kuang&lt;/P&gt;&lt;P&gt;Technical Information &amp;amp; Commercial Support&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2015 06:56:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Digital-Signal-Controllers/Data-corruption-in-MC56F84763/m-p/391773#M376</guid>
      <dc:creator>TICS_Fiona</dc:creator>
      <dc:date>2015-08-25T06:56:28Z</dc:date>
    </item>
    <item>
      <title>Re: Data corruption in MC56F84763</title>
      <link>https://community.nxp.com/t5/Digital-Signal-Controllers/Data-corruption-in-MC56F84763/m-p/391774#M377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;The datatype of both &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Value and CONSTANT is unsigned char.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;What I have observed is when my project was small such errors did not occur.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;When the project size increased such errors in if loops started occuring especially in the ISRs.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Please let me know if there is any other data I can provide.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;I am not using PE. Could that give memory issues??&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2015 09:55:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Digital-Signal-Controllers/Data-corruption-in-MC56F84763/m-p/391774#M377</guid>
      <dc:creator>sumanbhandari</dc:creator>
      <dc:date>2015-08-25T09:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: Data corruption in MC56F84763</title>
      <link>https://community.nxp.com/t5/Digital-Signal-Controllers/Data-corruption-in-MC56F84763/m-p/391775#M378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have further update.&lt;/P&gt;&lt;P&gt;I referred to the linker file generated by the PE tool and copied the RAM and flash mapping to my linker file. The if check then started passing correctly.&lt;/P&gt;&lt;P&gt;I m still observing data corruption but at random places on runtime.&lt;/P&gt;&lt;P&gt;Attached is the linker file that i used earlier when if check was incorrectly failing.&lt;/P&gt;&lt;P&gt;I m still not sure if the linker file generated is correct. Is there any documentation available on code and data segment and mapping them in the linker file?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Aug 2015 06:45:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Digital-Signal-Controllers/Data-corruption-in-MC56F84763/m-p/391775#M378</guid>
      <dc:creator>sumanbhandari</dc:creator>
      <dc:date>2015-08-28T06:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: Data corruption in MC56F84763</title>
      <link>https://community.nxp.com/t5/Digital-Signal-Controllers/Data-corruption-in-MC56F84763/m-p/391776#M379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suman,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the thing that needs to be taken care of is that the RAM must be used in such a manner that the initial section of the RAM is preferably used for copying the data section from the ROM and remaining memory be used for runtime. In this case the runtime changes do not change/overwrite the constants. If required you can also create two different sections of RAM, one for constant data and the other for runtime. however the disadvantage of such a approach would be that if data section is not fully utilised we would be losing out on the RAM allocated for data as it cant be used at runtime. similarly if the data section grows beyond the defined boundaries, again the approach would fail. Hence a dynamic allocation is always useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ankur&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2015 06:54:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Digital-Signal-Controllers/Data-corruption-in-MC56F84763/m-p/391776#M379</guid>
      <dc:creator>ankur_kala</dc:creator>
      <dc:date>2015-09-15T06:54:19Z</dc:date>
    </item>
  </channel>
</rss>

