<?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>S12 / MagniV Microcontrollers中的主题 Re: S12XDT512 - Debug Illegal Address Reset and Flash Problem</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12XDT512-Debug-Illegal-Address-Reset-and-Flash-Problem/m-p/144490#M3745</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;thanx for your hint.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The compiler uses absolut jumps and so it jumped back to the code area.&lt;/DIV&gt;&lt;DIV&gt;I changed the compiler option&amp;nbsp;to generate&amp;nbsp;Position Independent Code and now it's running. &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;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Sep 2007 16:52:19 GMT</pubDate>
    <dc:creator>Lewing</dc:creator>
    <dc:date>2007-09-07T16:52:19Z</dc:date>
    <item>
      <title>S12XDT512 - Debug Illegal Address Reset and Flash Problem</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12XDT512-Debug-Illegal-Address-Reset-and-Flash-Problem/m-p/144488#M3743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Hello,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I'm running a function for erase, reading data from serial interface and flashing them in RAM. (typical bootloader application)&lt;/DIV&gt;&lt;DIV&gt;I erase the first three flash blocks (Device is a 9S12XDT512) and from the last block only the needed sectors. (works fine)&lt;/DIV&gt;&lt;DIV&gt;I can also read the data from the serial interface and write it to one of the first three blocks, but when i try to write them to the last block.&amp;nbsp;I get an Illegal Address Reset and don't know why.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I have all Interrupts and the Watchdog disabled.&lt;/DIV&gt;&lt;DIV&gt;I use global addressing to access the Flash memory.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Are there some useful tricks find out why this resets occur?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Besides the last block where the problems occur is also the block with the reset vector table and the unpaged flash is mapped to.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;thanks&lt;/DIV&gt;&lt;DIV&gt;Matthias&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;--&lt;BR /&gt;Alban Edit: Please always include FSL Part Number in Message Subject line.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Message Edited by Alban on &lt;/SPAN&gt;&lt;SPAN class="date_text"&gt;2007-09-06&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN class="time_text"&gt;11:23 AM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2007 16:48:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12XDT512-Debug-Illegal-Address-Reset-and-Flash-Problem/m-p/144488#M3743</guid>
      <dc:creator>Lewing</dc:creator>
      <dc:date>2007-09-06T16:48:51Z</dc:date>
    </item>
    <item>
      <title>Re: S12XDT512 - Debug Illegal Address Reset and Flash Problem</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12XDT512-Debug-Illegal-Address-Reset-and-Flash-Problem/m-p/144489#M3744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;When you are programming that block you will not be able to read it correctly. An illegal address reset could be caused if you are reading that block and doing something with the result. This would include interrupts but also perhaps library routines that your code uses.&lt;/DIV&gt;&lt;DIV&gt;The best way to work out what's going wrong is to step through the code using BDM and observe exactly what's happening.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2007 21:24:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12XDT512-Debug-Illegal-Address-Reset-and-Flash-Problem/m-p/144489#M3744</guid>
      <dc:creator>Steve</dc:creator>
      <dc:date>2007-09-06T21:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: S12XDT512 - Debug Illegal Address Reset and Flash Problem</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12XDT512-Debug-Illegal-Address-Reset-and-Flash-Problem/m-p/144490#M3745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;thanx for your hint.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The compiler uses absolut jumps and so it jumped back to the code area.&lt;/DIV&gt;&lt;DIV&gt;I changed the compiler option&amp;nbsp;to generate&amp;nbsp;Position Independent Code and now it's running. &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;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2007 16:52:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12XDT512-Debug-Illegal-Address-Reset-and-Flash-Problem/m-p/144490#M3745</guid>
      <dc:creator>Lewing</dc:creator>
      <dc:date>2007-09-07T16:52:19Z</dc:date>
    </item>
  </channel>
</rss>

