<?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: 56F8165 - 0x0200 program address boundary crash (help request) in Other NXP Products</title>
    <link>https://community.nxp.com/t5/Other-NXP-Products/56F8165-0x0200-program-address-boundary-crash-help-request/m-p/140607#M249</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;this is a status update to the problem, since its solution has advanced but it´s not&lt;BR /&gt;done yet.&lt;BR /&gt;&lt;BR /&gt;When this option is UNchecked,&lt;BR /&gt;&lt;BR /&gt;Debugger &amp;gt; debugger options &amp;gt; stop on application launch&lt;BR /&gt;&lt;BR /&gt;the program runs ok. It can´t be debugged, though, because if we do a 'run to cursor',&lt;BR /&gt;for instance, my friend 0xFFFF appears again at 0x0200 and beyond... (This positions&lt;BR /&gt;appears red coded, as if they were changed from the first download).&lt;BR /&gt;&lt;BR /&gt;Well, this is the status so far. But I've found another detail.&lt;BR /&gt;&lt;BR /&gt;The hfmclkd parameter in the .cfg file (flash initialization file) is set&lt;BR /&gt;to 0x0A and is meant to be fixed. But how is that, since the clock divider depends&lt;BR /&gt;upon the crystal frequency, which can change for each design?&lt;BR /&gt;&lt;BR /&gt;In this problem, the FMCLKD generated by the Processor Expert is 61 (0x3d). As you know,&lt;BR /&gt;this is a very important gap from 0x0A, because the slim frequency range of the&lt;BR /&gt;flash timing control clock (150kHz~200kHz)...&lt;BR /&gt;&lt;BR /&gt;I feel that the solution could be floating around these waters, but I can´t figure it&lt;BR /&gt;out yet...&lt;BR /&gt;&lt;BR /&gt;I believe I´m surely missing something. Any help is welcome...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks again,&lt;BR /&gt;Marchesi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;marchesi wrote:&lt;BR /&gt;(CodeWarrior 7.3 / 56F8165 / WinXP SP2 / PExpert 2.97, in use)&lt;BR /&gt;&lt;BR /&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;When the code downloaded is shorter than 0x200, everything goes fine. With a bigger program the soft crashes.&lt;BR /&gt;Using the debugger in mixed view, we can see that where it was expect opcodes, there is now only 0xFF (as the memory was never written...) - screenshot attached.&lt;BR /&gt;This happens always and exactly from program memory address 0x0200 and beyond (a page boundary). But it doesn't last forever: if we start the program in higher memory regions, everything runs ok. Other words, there are some specific memory regions where this problem occurs.&lt;BR /&gt;First we have tested 2 sample chips, the behaviour was the same. After that, we carried out the test with other 3 'buyed' 8165, and the problem persisted.&lt;BR /&gt;When running the code with a 8145 over the same board, everything goes ok.&lt;BR /&gt;We have screen shots and test codes to better illustrate the issue, if it's needed.&lt;BR /&gt;Thanks,&lt;BR /&gt;Marchesi.&lt;BR /&gt;p.s. We're having this trouble for a long time, and our project timeline is going to deadline... any tips would help a lot... &lt;IMG alt=":smileyhappy:" class="emoticon emoticon-smileyhappy" id="smileyhappy" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-happy.gif" title="Smiley Happy" /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Jan 2007 00:43:24 GMT</pubDate>
    <dc:creator>marchesi</dc:creator>
    <dc:date>2007-01-10T00:43:24Z</dc:date>
    <item>
      <title>56F8165 - 0x0200 program address boundary crash (help request)</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/56F8165-0x0200-program-address-boundary-crash-help-request/m-p/140606#M248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;(CodeWarrior 7.3 / 56F8165 / WinXP SP2 / PExpert 2.97, in use)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the code downloaded is shorter than 0x200, everything goes fine. With a bigger program the soft crashes.&lt;BR /&gt;Using the debugger in mixed view, we can see that where it was expect opcodes, there is now only 0xFF (as the memory was never written...) - screenshot attached.&lt;BR /&gt;This happens always and exactly from program memory address 0x0200 and beyond (a page boundary). But it doesn't last forever: if we start the program in higher memory regions, everything runs ok. Other words, there are some specific memory regions where this problem occurs.&lt;BR /&gt;First we have tested 2 sample chips, the behaviour was the same. After that, we carried out the test with other 3 'buyed' 8165, and the problem persisted.&lt;BR /&gt;When running the code with a 8145 over the same board, everything goes ok.&lt;BR /&gt;We have screen shots and test codes to better illustrate the issue, if it's needed.&lt;BR /&gt;Thanks,&lt;BR /&gt;Marchesi.&lt;BR /&gt;p.s. We're having this trouble for a long time, and our project timeline is going to deadline... any tips would help a lot... &lt;IMG alt=":smileyhappy:" class="emoticon emoticon-smileyhappy" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-happy.gif" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Dec 2006 02:19:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/56F8165-0x0200-program-address-boundary-crash-help-request/m-p/140606#M248</guid>
      <dc:creator>marchesi</dc:creator>
      <dc:date>2006-12-19T02:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: 56F8165 - 0x0200 program address boundary crash (help request)</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/56F8165-0x0200-program-address-boundary-crash-help-request/m-p/140607#M249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;this is a status update to the problem, since its solution has advanced but it´s not&lt;BR /&gt;done yet.&lt;BR /&gt;&lt;BR /&gt;When this option is UNchecked,&lt;BR /&gt;&lt;BR /&gt;Debugger &amp;gt; debugger options &amp;gt; stop on application launch&lt;BR /&gt;&lt;BR /&gt;the program runs ok. It can´t be debugged, though, because if we do a 'run to cursor',&lt;BR /&gt;for instance, my friend 0xFFFF appears again at 0x0200 and beyond... (This positions&lt;BR /&gt;appears red coded, as if they were changed from the first download).&lt;BR /&gt;&lt;BR /&gt;Well, this is the status so far. But I've found another detail.&lt;BR /&gt;&lt;BR /&gt;The hfmclkd parameter in the .cfg file (flash initialization file) is set&lt;BR /&gt;to 0x0A and is meant to be fixed. But how is that, since the clock divider depends&lt;BR /&gt;upon the crystal frequency, which can change for each design?&lt;BR /&gt;&lt;BR /&gt;In this problem, the FMCLKD generated by the Processor Expert is 61 (0x3d). As you know,&lt;BR /&gt;this is a very important gap from 0x0A, because the slim frequency range of the&lt;BR /&gt;flash timing control clock (150kHz~200kHz)...&lt;BR /&gt;&lt;BR /&gt;I feel that the solution could be floating around these waters, but I can´t figure it&lt;BR /&gt;out yet...&lt;BR /&gt;&lt;BR /&gt;I believe I´m surely missing something. Any help is welcome...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks again,&lt;BR /&gt;Marchesi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;marchesi wrote:&lt;BR /&gt;(CodeWarrior 7.3 / 56F8165 / WinXP SP2 / PExpert 2.97, in use)&lt;BR /&gt;&lt;BR /&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;When the code downloaded is shorter than 0x200, everything goes fine. With a bigger program the soft crashes.&lt;BR /&gt;Using the debugger in mixed view, we can see that where it was expect opcodes, there is now only 0xFF (as the memory was never written...) - screenshot attached.&lt;BR /&gt;This happens always and exactly from program memory address 0x0200 and beyond (a page boundary). But it doesn't last forever: if we start the program in higher memory regions, everything runs ok. Other words, there are some specific memory regions where this problem occurs.&lt;BR /&gt;First we have tested 2 sample chips, the behaviour was the same. After that, we carried out the test with other 3 'buyed' 8165, and the problem persisted.&lt;BR /&gt;When running the code with a 8145 over the same board, everything goes ok.&lt;BR /&gt;We have screen shots and test codes to better illustrate the issue, if it's needed.&lt;BR /&gt;Thanks,&lt;BR /&gt;Marchesi.&lt;BR /&gt;p.s. We're having this trouble for a long time, and our project timeline is going to deadline... any tips would help a lot... &lt;IMG alt=":smileyhappy:" class="emoticon emoticon-smileyhappy" id="smileyhappy" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-happy.gif" title="Smiley Happy" /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jan 2007 00:43:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/56F8165-0x0200-program-address-boundary-crash-help-request/m-p/140607#M249</guid>
      <dc:creator>marchesi</dc:creator>
      <dc:date>2007-01-10T00:43:24Z</dc:date>
    </item>
    <item>
      <title>Re: 56F8165 - 0x0200 program address boundary crash - solved</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/56F8165-0x0200-program-address-boundary-crash-help-request/m-p/140608#M250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;The initialization of the program flash was replaced on the 8165 .cfg file.&lt;BR /&gt;&lt;BR /&gt;The test code and the project itself now appears to be both running ok.&lt;BR /&gt;&lt;BR /&gt;Since I've not changed anything in the original file before, it could indicate&lt;BR /&gt;a CW bug.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Marchesi&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jan 2007 00:14:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/56F8165-0x0200-program-address-boundary-crash-help-request/m-p/140608#M250</guid>
      <dc:creator>marchesi</dc:creator>
      <dc:date>2007-01-12T00:14:02Z</dc:date>
    </item>
  </channel>
</rss>

