<?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: ILLEGAL_BP error</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/ILLEGAL-BP-error/m-p/130060#M1278</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;I ran into a similar issue, using HCS08GT8.&lt;/DIV&gt;&lt;DIV&gt;The problem was the watchdog reset.&amp;nbsp; I was not resetting the dog.&amp;nbsp; By default the HC08 have the watchdog reset enabled.&amp;nbsp; Either disable it all toghther, or make sure you reset it regularly in your code.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Good luck&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Jul 2007 09:58:18 GMT</pubDate>
    <dc:creator>mdelac01</dc:creator>
    <dc:date>2007-07-05T09:58:18Z</dc:date>
    <item>
      <title>ILLEGAL_BP error</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/ILLEGAL-BP-error/m-p/130058#M1276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;I have read several posts on this error but none of them have helped me.&amp;nbsp; I am trying to get an IIC bus working, but I get this error when running my master code in the debugger.&amp;nbsp; I have stepped through my code and the error occurs at a function called INIT_SP_FROM_STARTUP_DESC();.&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is what the command window displays:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Frequency change to ~0hz.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;STARTED&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Frequency change to ~3942400hz.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;RUNNING&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ILLEGAL_BP&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And here is the segment of code where I get the error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#pragma NO_EXIT&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;__EXTERN_C void _Startup(void) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/* set the reset vector to _Startup in the linker parameter file (*.prm):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;'VECTOR 0 _Startup'&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;purpose:&amp;nbsp;&amp;nbsp;&amp;nbsp; 1)&amp;nbsp; initialize the stack&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&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;2)&amp;nbsp; initialize run-time, ...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&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;initialize the RAM, copy down init data, etc (Init)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&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;3)&amp;nbsp; call main;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;called from: _PRESTART-code generated by the Linker&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;*/&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;INIT_SP_FROM_STARTUP_DESC();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anybody help me understand what is going on here?&amp;nbsp; Thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2007 01:04:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/ILLEGAL-BP-error/m-p/130058#M1276</guid>
      <dc:creator>Splinter_Cat</dc:creator>
      <dc:date>2007-04-10T01:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: ILLEGAL_BP error</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/ILLEGAL-BP-error/m-p/130059#M1277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;INIT_SP_FROM_STARTUP_DESC is not a function, it's a macro. It expands to some inline assembly instruction loading the initial stack pointer.&lt;BR /&gt;It's not mentioned in your text, so I wonder if it is clear that _Startup is not an ordinary function, it is the entry point of the code usually pointed by the reset vector any maybe other vectors too (COP,...).&lt;BR /&gt;&lt;BR /&gt;So I'm also not clear what exactly you mean with:&lt;BR /&gt;&lt;BR /&gt;&amp;gt;I have stepped through my code and the error occurs at a function called&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;BR /&gt;The point is, _Startup is executed before your code, so if you reach it after your&amp;nbsp; code did execute, something bad did happen, maybe a COP reset? Maybe something else, but you should not get to _Startup after stepping through your code.&lt;BR /&gt;&lt;BR /&gt;Daniel&lt;BR /&gt;PS: In Processor Expert setups, some PE generated initialization code gets executed before _Startup, but user code still happens afterwards (in usual setups).&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2007 05:23:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/ILLEGAL-BP-error/m-p/130059#M1277</guid>
      <dc:creator>CompilerGuru</dc:creator>
      <dc:date>2007-04-11T05:23:57Z</dc:date>
    </item>
    <item>
      <title>Re: ILLEGAL_BP error</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/ILLEGAL-BP-error/m-p/130060#M1278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;I ran into a similar issue, using HCS08GT8.&lt;/DIV&gt;&lt;DIV&gt;The problem was the watchdog reset.&amp;nbsp; I was not resetting the dog.&amp;nbsp; By default the HC08 have the watchdog reset enabled.&amp;nbsp; Either disable it all toghther, or make sure you reset it regularly in your code.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Good luck&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2007 09:58:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/ILLEGAL-BP-error/m-p/130060#M1278</guid>
      <dc:creator>mdelac01</dc:creator>
      <dc:date>2007-07-05T09:58:18Z</dc:date>
    </item>
  </channel>
</rss>

