<?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 breakpoint while running Code in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Illegal-breakpoint-while-running-Code/m-p/743045#M14420</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arthi Venkatasubramanian&lt;/P&gt;&lt;P&gt;First I need to know the problem is due to software or hardware side. Could you please create a new project with wizard, can you download and run the new project code on the board?&lt;/P&gt;&lt;P&gt;If the problem only happened on your own project(no problem with new project), There is no document on the list of illegal BP, but I will try to explain it in detail to you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There can be many reasons for “ILLEGAL_BP” error message.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;unmapped interrupt vectors or non-serviced irq is enabled or incorrect ISR vector number is used. The illegal breakpoint error often happens when the MCU is getting lost and executes dummy code. If this happens whenever you enable your interrupt, check that the interrupt vector has been correctly initialized with the address of the interrupt service routine. If the interrupt vector is left blank (0xFFFF) this could be the cause of the problem.&lt;/LI&gt;&lt;LI&gt;watchdogs: this might be a COP reset, check that the watchog, if enabled, is being fed correctly. Also please check that the stack is not overflowing.&lt;/LI&gt;&lt;LI&gt;bad SW approach to RAM, e.g. some buffer overflows, STACK overflow…&lt;/LI&gt;&lt;LI&gt;code optimization by CW may cause the JMP to non-defined program memory address and PC lost way.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please check your code if it belongs to one of the reasons above.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;Hope it helps!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jennie Zhang&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Jun 2018 04:52:03 GMT</pubDate>
    <dc:creator>ZhangJennie</dc:creator>
    <dc:date>2018-06-01T04:52:03Z</dc:date>
    <item>
      <title>Illegal breakpoint while running Code</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Illegal-breakpoint-while-running-Code/m-p/743044#M14419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good Morning,&lt;/P&gt;&lt;P&gt;We are using S12XET256 for our project. We are able to flash our code in the target (controller). But Illegal breakpoint is occurring while running our code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What may be the problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are using Codewarrior v5.9 IDE and PE micro as debugger.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope anyone can reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Arthi Venkatasubramanian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2018 03:34:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Illegal-breakpoint-while-running-Code/m-p/743044#M14419</guid>
      <dc:creator>arthivenkatasub</dc:creator>
      <dc:date>2018-06-01T03:34:53Z</dc:date>
    </item>
    <item>
      <title>Re: Illegal breakpoint while running Code</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Illegal-breakpoint-while-running-Code/m-p/743045#M14420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arthi Venkatasubramanian&lt;/P&gt;&lt;P&gt;First I need to know the problem is due to software or hardware side. Could you please create a new project with wizard, can you download and run the new project code on the board?&lt;/P&gt;&lt;P&gt;If the problem only happened on your own project(no problem with new project), There is no document on the list of illegal BP, but I will try to explain it in detail to you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There can be many reasons for “ILLEGAL_BP” error message.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;unmapped interrupt vectors or non-serviced irq is enabled or incorrect ISR vector number is used. The illegal breakpoint error often happens when the MCU is getting lost and executes dummy code. If this happens whenever you enable your interrupt, check that the interrupt vector has been correctly initialized with the address of the interrupt service routine. If the interrupt vector is left blank (0xFFFF) this could be the cause of the problem.&lt;/LI&gt;&lt;LI&gt;watchdogs: this might be a COP reset, check that the watchog, if enabled, is being fed correctly. Also please check that the stack is not overflowing.&lt;/LI&gt;&lt;LI&gt;bad SW approach to RAM, e.g. some buffer overflows, STACK overflow…&lt;/LI&gt;&lt;LI&gt;code optimization by CW may cause the JMP to non-defined program memory address and PC lost way.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please check your code if it belongs to one of the reasons above.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;Hope it helps!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jennie Zhang&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2018 04:52:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Illegal-breakpoint-while-running-Code/m-p/743045#M14420</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2018-06-01T04:52:03Z</dc:date>
    </item>
  </channel>
</rss>

