<?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 Re: rouge memory changes in Classic/Legacy CodeWarrior</title>
    <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/rouge-memory-changes/m-p/142824#M1502</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Hello,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Then the global initialisation issue may lie with the global variable &lt;FONT face="Courier New"&gt;cLiveProgLoadStatus&lt;/FONT&gt; - after POR this will contain some random value, but for a manual reset the value will remain unaltered from prior to the reset (assuming initialisation does not occur in the start-up code).&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Also assuming the function &lt;FONT face="Courier New"&gt;ghw_auto_wr()&lt;/FONT&gt; does not alter the global value, I would expect its value to be set to 15 &lt;U&gt;only&lt;/U&gt; when cnt reaches a value of 208 (during the "else" portion).&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;My reason for suggesting use of the debugger is that it will specifically&amp;nbsp;indicate&amp;nbsp;when a variable remains&amp;nbsp;"uninitialised" since reset.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Regards,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Mac&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Jan 2007 11:43:29 GMT</pubDate>
    <dc:creator>bigmac</dc:creator>
    <dc:date>2007-01-16T11:43:29Z</dc:date>
    <item>
      <title>rouge memory changes</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/rouge-memory-changes/m-p/142818#M1496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;I have an issue where buy if I reset my design by pressing the reset button it works fine. Values are as they should be.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;If I reset it by turning the power off and on the values are changed.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;This is happening in portion of code that has no access to the values that are changing. The value in question is in the middle of the internal memory allocation. It is not close to the Stack or the end of the memory area. I have increase the stack to be sure it is not being over flowed. The value is corrict dirrectly prior to calling a routine and as soon as the routine is entered it is incorrect.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;This value doesent chage when the code is reset by hardware!!!!!!!!!!!!!&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Has anybody come accross anything like this before.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jan 2007 06:13:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/rouge-memory-changes/m-p/142818#M1496</guid>
      <dc:creator>NZ_Design</dc:creator>
      <dc:date>2007-01-15T06:13:42Z</dc:date>
    </item>
    <item>
      <title>Re: rouge memory changes</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/rouge-memory-changes/m-p/142819#M1497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Additional infomation here is the code&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;cnt starts at 640.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;do {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;if (cnt != 208) {&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;&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;&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;cLiveProgLoadStatus is changed when cnt is = 208&lt;/DIV&gt;&lt;DIV&gt;&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;&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;&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// this dosent matter if you start cnt at 0 and go to 640&lt;/DIV&gt;&lt;DIV&gt;&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;&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;&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// or if go from 640 to 0&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ghw_auto_wr(dat,1);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;else {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Program[1].Outlet[2].cSize2 = cLiveProgLoadStatus; // value is still 15 at this point.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;cLiveProgLoadStatus = 15;&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;&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; // load backup with 15&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;}while (cnt-- != 0);&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;If the "else" part is romeved cLiveProgLoadStatus will be set to 2.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;It cant have anything to do with the calling of the routine as this is not done if cnt is 208. It must have something to do with cnt.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Any ideas&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Remember only under power up reset.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jan 2007 07:57:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/rouge-memory-changes/m-p/142819#M1497</guid>
      <dc:creator>NZ_Design</dc:creator>
      <dc:date>2007-01-15T07:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: rouge memory changes</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/rouge-memory-changes/m-p/142820#M1498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Hello,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;I assume cnt variable is global and that it needs to be initialised to a value of 640 for either POR or other reset.&amp;nbsp; If your project uses minimal start-up code (not ANSI compliant start-up code), my understanding is that the globals will not be&amp;nbsp;correctly&amp;nbsp;initialised.&amp;nbsp; This might account for what you are observing.&amp;nbsp; Suggest running the code under simulation to see whether the variable is being initialised.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Regards,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Mac&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jan 2007 14:02:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/rouge-memory-changes/m-p/142820#M1498</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2007-01-15T14:02:03Z</dc:date>
    </item>
    <item>
      <title>Re: rouge memory changes</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/rouge-memory-changes/m-p/142821#M1499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;no cnt is not global.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Yes it is always being initalize just prior to the snipit of caod I have supplied.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;My experiance with the code initalization of the global variables is not very trust worthy and I are now initalizing my variables my self.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jan 2007 03:31:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/rouge-memory-changes/m-p/142821#M1499</guid>
      <dc:creator>NZ_Design</dc:creator>
      <dc:date>2007-01-16T03:31:33Z</dc:date>
    </item>
    <item>
      <title>Re: rouge memory changes</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/rouge-memory-changes/m-p/142822#M1500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Hello,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;If the variable is not global (or static), it will actually reside on the stack, whilst&amp;nbsp;it&amp;nbsp;is&amp;nbsp;in existence.&amp;nbsp; So your problem is not clear to me.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;I can only reiterate that using full chip simulation should reveal which variables have been initialised correctly, and may point to the problem area of your code.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Regards,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Mac&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jan 2007 10:01:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/rouge-memory-changes/m-p/142822#M1500</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2007-01-16T10:01:21Z</dc:date>
    </item>
    <item>
      <title>Re: rouge memory changes</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/rouge-memory-changes/m-p/142823#M1501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;The problem is that this point in the code changes global variable cLiveProgLoadStatus when it is not even accessesed in this routine.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;the only relevence cnt has it that it does it when this value is 208.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;U&gt;running in the debugger is no use as it only happens when the system is powered&lt;/U&gt;&lt;/STRONG&gt; up ie 0v to 5v on vcc.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;it is fine if run by pressing reset or in the debugger.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;there are no interrupts enabled at this point in the code so it is not another interrupt causing the issue.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;U&gt;The problem has to be solved without using the debugger&lt;/U&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jan 2007 10:41:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/rouge-memory-changes/m-p/142823#M1501</guid>
      <dc:creator>NZ_Design</dc:creator>
      <dc:date>2007-01-16T10:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: rouge memory changes</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/rouge-memory-changes/m-p/142824#M1502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Hello,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Then the global initialisation issue may lie with the global variable &lt;FONT face="Courier New"&gt;cLiveProgLoadStatus&lt;/FONT&gt; - after POR this will contain some random value, but for a manual reset the value will remain unaltered from prior to the reset (assuming initialisation does not occur in the start-up code).&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Also assuming the function &lt;FONT face="Courier New"&gt;ghw_auto_wr()&lt;/FONT&gt; does not alter the global value, I would expect its value to be set to 15 &lt;U&gt;only&lt;/U&gt; when cnt reaches a value of 208 (during the "else" portion).&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;My reason for suggesting use of the debugger is that it will specifically&amp;nbsp;indicate&amp;nbsp;when a variable remains&amp;nbsp;"uninitialised" since reset.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Regards,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Mac&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jan 2007 11:43:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/rouge-memory-changes/m-p/142824#M1502</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2007-01-16T11:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: rouge memory changes</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/rouge-memory-changes/m-p/142825#M1503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;cLiveProgLoadStatus is always initalized prior to reaching this code.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;the correct code without the diagnostics is this&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;do {&lt;BR /&gt;&lt;DIV&gt;&amp;nbsp;ghw_auto_wr(dat,1);&lt;/DIV&gt;&lt;DIV&gt;}&lt;BR /&gt;while (cnt-- != 0);&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;upuntil cnt reaches 208 cLiveProgLoadStatus is 15 as it was initalized to&lt;/DIV&gt;&lt;DIV&gt;while cnt is 208 cLiveProgLoadStatus changes&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;the previous code is what I have put in to diagnoise when cLiveProgLoadStatus changes.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;there is no code inside ghw_auto_wr that reads or writes to cLiveProgLoadStatus.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I accecpt that cLiveProgLoadStatus will have a random value in it at POR but between POR and ghw_auto_wr it has been set to 15 whiches what it is ment to be.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The problem isnt that cLiveProgLoadStatus is set to 15 when cnt is 208 the problem is that when the code is without the doagnostic it is changed from 15.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;"My reason for suggesting use of the debugger is that it will specifically&amp;nbsp;indicate&amp;nbsp;when a variable remains&amp;nbsp;"uninitialised" since reset." &lt;STRONG&gt;How???&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jan 2007 11:56:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/rouge-memory-changes/m-p/142825#M1503</guid>
      <dc:creator>NZ_Design</dc:creator>
      <dc:date>2007-01-16T11:56:07Z</dc:date>
    </item>
    <item>
      <title>Re: rouge memory changes</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/rouge-memory-changes/m-p/142826#M1504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; I am not sure I understand the issue here.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; Are you looking for a way the debugger should notify you when a specific memory area is changed?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; Or what are you looking for exactly?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;CrasyCat&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jan 2007 22:10:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/rouge-memory-changes/m-p/142826#M1504</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2007-01-16T22:10:00Z</dc:date>
    </item>
    <item>
      <title>Re: rouge memory changes</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/rouge-memory-changes/m-p/142827#M1505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;No I wont to no why cLiveProgLoadStatus changes when there is no code accessing it.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jan 2007 03:33:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/rouge-memory-changes/m-p/142827#M1505</guid>
      <dc:creator>NZ_Design</dc:creator>
      <dc:date>2007-01-17T03:33:51Z</dc:date>
    </item>
    <item>
      <title>Re: rouge memory changes</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/rouge-memory-changes/m-p/142828#M1506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;For those that would like to know&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The problem arises from the time between powering up and reset going high is to short.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The development board time is 1.3mS standard.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I have changed the reset device and it is now 180mS and the system is performing correctly.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jan 2007 11:10:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/rouge-memory-changes/m-p/142828#M1506</guid>
      <dc:creator>NZ_Design</dc:creator>
      <dc:date>2007-01-17T11:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: rouge memory changes</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/rouge-memory-changes/m-p/142829#M1507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Hello,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;By altering the PRM file, have you already&amp;nbsp;tried varying the position of the global variables in RAM?&amp;nbsp; Have you already checked that no other global variable is also affected?&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Something you might try -&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;At the position in your code where the global variables are defined, try swapping the position of cLiveProgLoadStatus with an adjacent variable, to alter position in memory.&amp;nbsp; Then see if the problem remains with cLiveProgLoadStatus, or shifts elsewhere.&amp;nbsp; Alternatively, you could define new global variables, with one preceeding cLiveProgLoadStatus definition, and another one following it.&amp;nbsp; Use the debugger to check the actual address of the global variables, both before and after the change.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;This won't solve your problem, but may give additional insight into the problem.&amp;nbsp;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Regards,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Mac&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jan 2007 11:29:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/rouge-memory-changes/m-p/142829#M1507</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2007-01-17T11:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: rouge memory changes</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/rouge-memory-changes/m-p/142830#M1508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;BLOCKQUOTE&gt;&lt;DIV&gt;&lt;HR /&gt;&lt;FONT size="2"&gt;NZ-Design wrote:&lt;BR /&gt;&lt;/FONT&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;For those that would like to know&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;The problem arises from the time between powering up and reset going high is to short.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;The development board time is 1.3mS standard.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;I have changed the reset device and it is now 180mS and the system is performing correctly.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Hello again,&lt;/FONT&gt;&lt;/DIV&gt;&lt;P&gt;&lt;FONT size="2"&gt;The likely cause is that the ramp-up slope for the power supply is too slow for the MCU -&amp;nbsp;the minimum rate is specified.&amp;nbsp; I assume you are applying power to the board by turning on mains power - if you switch the DC output going to the board, the problem should disappear for the normal reset delay.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Regards,&lt;BR /&gt;Mac&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jan 2007 11:48:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/rouge-memory-changes/m-p/142830#M1508</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2007-01-17T11:48:18Z</dc:date>
    </item>
  </channel>
</rss>

