<?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: ILLEGAL_BP in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/ILLEGAL-BP/m-p/279206#M9999</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;An Illegal Breakpoint usually means that the processor has been reset, this is typically due to a COP- or Illegal address reset. The Illegal address reset can be caused by an interrupt that do not have an ISR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/Sten&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Aug 2013 07:18:52 GMT</pubDate>
    <dc:creator>StenS</dc:creator>
    <dc:date>2013-08-29T07:18:52Z</dc:date>
    <item>
      <title>ILLEGAL_BP</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/ILLEGAL-BP/m-p/279205#M9998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I run my project in the debugger by selecting the start button (F5), it stops running immediately and I get ILLEGAL_BP in the command window. After some testing I found any code outside the main loop executes as expected. As soon as it gets to the for(;;)&amp;nbsp; statement it stops. I have tried it with code in the for(;;) statement and without code. Makes no difference.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my main function.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;void main(void) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; /* put your own code here */&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; EnableInterrupts;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; for(;;) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; _FEED_COP(); /* feeds the dog */&lt;/P&gt;&lt;P&gt;&amp;nbsp; } /* loop forever */&lt;/P&gt;&lt;P&gt;&amp;nbsp; /* please make sure that you never leave main */&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is ILLEGAL_BP. To me this is "Illegal Break Point" Correct ? &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ray.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Aug 2013 08:36:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/ILLEGAL-BP/m-p/279205#M9998</guid>
      <dc:creator>rayhall</dc:creator>
      <dc:date>2013-08-28T08:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: ILLEGAL_BP</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/ILLEGAL-BP/m-p/279206#M9999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;An Illegal Breakpoint usually means that the processor has been reset, this is typically due to a COP- or Illegal address reset. The Illegal address reset can be caused by an interrupt that do not have an ISR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/Sten&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2013 07:18:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/ILLEGAL-BP/m-p/279206#M9999</guid>
      <dc:creator>StenS</dc:creator>
      <dc:date>2013-08-29T07:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: ILLEGAL_BP</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/ILLEGAL-BP/m-p/279207#M10000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As StenS correctly mentioned, ILLEGAL_BP means that debugger get lost (MCU behavior is different from behavior which debugger expects). Typical root cause is unexpected interrupt or BDM communication lost.&lt;/P&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;Please check voltage levels at IRQ, XIRQ pins. There should be logical 1 (e.g. 5V).&lt;/LI&gt;&lt;LI&gt;Use attached interrupt catcher example code for detection of unexpected interrupts.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Interrupt catcher you can use for debugging or directly in your software. Few general notes:&lt;/P&gt;&lt;P&gt;a) You should replace lines for expected interrupt by your interrupts routines as in example of SCI0 interrupt routine.&lt;/P&gt;&lt;P&gt;b) All interrupt vectors are only 16bit addresses, therefore all your interrupt routines must be placed in non banked memory (for example by #pragma commands)&lt;/P&gt;&lt;P&gt;c) Interrupt number 0 presents POR reset vector, 1 is CM reset, 2 is COP reset, … , 119 is Spurious Interrupt. Interrupt number = (0xFE-Vector Address)/2. See Table Interrupt Vector Locations at RM. For Example: Interrupt number of SCI0 = (0xFE-D6)/2 = 0x14 = 20.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; 3. Please check stability of your bus clock (ECLK pin) and stability of power supply voltage(s).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; 4.…&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Sep 2013 14:09:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/ILLEGAL-BP/m-p/279207#M10000</guid>
      <dc:creator>RadekS</dc:creator>
      <dc:date>2013-09-02T14:09:17Z</dc:date>
    </item>
  </channel>
</rss>

