<?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>topic Error: Attempt to read uninitialised memory location. in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Error-Attempt-to-read-uninitialised-memory-location/m-p/202883#M7688</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 am usinh AW60 with codeworrier. I have defined&amp;nbsp; a gloabal variable in .C file and reading this variable in other .c file. But when i simulate this program with codeworrier i get above error. What is reason for tis error &amp;amp; how can i solve it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 May 2011 10:58:50 GMT</pubDate>
    <dc:creator>AW60</dc:creator>
    <dc:date>2011-05-03T10:58:50Z</dc:date>
    <item>
      <title>Error: Attempt to read uninitialised memory location.</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Error-Attempt-to-read-uninitialised-memory-location/m-p/202883#M7688</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 am usinh AW60 with codeworrier. I have defined&amp;nbsp; a gloabal variable in .C file and reading this variable in other .c file. But when i simulate this program with codeworrier i get above error. What is reason for tis error &amp;amp; how can i solve it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2011 10:58:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Error-Attempt-to-read-uninitialised-memory-location/m-p/202883#M7688</guid>
      <dc:creator>AW60</dc:creator>
      <dc:date>2011-05-03T10:58:50Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Attempt to read uninitialised memory location.</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Error-Attempt-to-read-uninitialised-memory-location/m-p/202884#M7689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As the message says, the debugger&amp;nbsp;is warning that you are attempting to read a memory location that may contain random garbage because it has not yet been initialised.&amp;nbsp; This&amp;nbsp;suggests that you may&amp;nbsp;have disabled ANSI initialisation of global variables when you created the project.&amp;nbsp; Your code will then need to explicitly initialise the variable before attempting to read.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This only applies to simulation mode.&amp;nbsp; For the real hardware, the read will return the garbage value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mac&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2011 23:11:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Error-Attempt-to-read-uninitialised-memory-location/m-p/202884#M7689</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2011-05-03T23:11:21Z</dc:date>
    </item>
  </channel>
</rss>

