<?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 [S12 Debugging] I Can't debug in Codewarior in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12-Debugging-I-Can-t-debug-in-Codewarior/m-p/549653#M12713</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear friends I have an urgent question.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't debug one of the projects on S12 processor. On one project everything is working excellent but on the other something might be wrong with Processor Expert's settings. I can setup a breakpoint, but I can't stop the program on that breakpoint even if it is in the main function. I can check dynamically the variables so debugging should be possible. I can stop the processor via debugger but than I can't step in/over or go/continue once again. Sometimes the debugger is able to catch the breakpoint but only for a few seconds.&amp;nbsp; I checked everything, have changed the interrupts I read already everything connected with debugging in CodeWarior that I found in the internet. I checked the project on other boards so a processor and the board aren't damaged. Can you please tell me what could cause my problem.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help me I can't work without debuging &lt;/P&gt;&lt;P&gt;Jacek&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I read :&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.nxp.com%2Ffiles%2Fsoft_dev_tools%2Fdoc%2Fref_manual%2FCW_Debugger_HC12_RM.pdf" rel="nofollow" target="_blank"&gt;http://www.nxp.com/files/soft_dev_tools/doc/ref_manual/CW_Debugger_HC12_RM.pdf&lt;/A&gt;&amp;nbsp; didn't help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Jul 2016 14:14:37 GMT</pubDate>
    <dc:creator>jacekjanczura</dc:creator>
    <dc:date>2016-07-28T14:14:37Z</dc:date>
    <item>
      <title>[S12 Debugging] I Can't debug in Codewarior</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12-Debugging-I-Can-t-debug-in-Codewarior/m-p/549653#M12713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear friends I have an urgent question.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't debug one of the projects on S12 processor. On one project everything is working excellent but on the other something might be wrong with Processor Expert's settings. I can setup a breakpoint, but I can't stop the program on that breakpoint even if it is in the main function. I can check dynamically the variables so debugging should be possible. I can stop the processor via debugger but than I can't step in/over or go/continue once again. Sometimes the debugger is able to catch the breakpoint but only for a few seconds.&amp;nbsp; I checked everything, have changed the interrupts I read already everything connected with debugging in CodeWarior that I found in the internet. I checked the project on other boards so a processor and the board aren't damaged. Can you please tell me what could cause my problem.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help me I can't work without debuging &lt;/P&gt;&lt;P&gt;Jacek&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I read :&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.nxp.com%2Ffiles%2Fsoft_dev_tools%2Fdoc%2Fref_manual%2FCW_Debugger_HC12_RM.pdf" rel="nofollow" target="_blank"&gt;http://www.nxp.com/files/soft_dev_tools/doc/ref_manual/CW_Debugger_HC12_RM.pdf&lt;/A&gt;&amp;nbsp; didn't help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 14:14:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12-Debugging-I-Can-t-debug-in-Codewarior/m-p/549653#M12713</guid>
      <dc:creator>jacekjanczura</dc:creator>
      <dc:date>2016-07-28T14:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: [S12 Debugging] I Can't debug in Codewarior</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12-Debugging-I-Can-t-debug-in-Codewarior/m-p/549654#M12714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jacek,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what exact S12 MCU do you use?&lt;/P&gt;&lt;P&gt;Does the same happen if you disable interrupts?&lt;/P&gt;&lt;P&gt;It's very probable that PE tool is causing such unexpected behavior of the debugger.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible for you to share the project so we can review?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;iggi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2016 10:07:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12-Debugging-I-Can-t-debug-in-Codewarior/m-p/549654#M12714</guid>
      <dc:creator>iggi</dc:creator>
      <dc:date>2016-07-29T10:07:25Z</dc:date>
    </item>
    <item>
      <title>Re: [S12 Debugging] I Can't debug in Codewarior</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12-Debugging-I-Can-t-debug-in-Codewarior/m-p/549655#M12715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="stepping_not_possible.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/22302i56AEDB4A4FA52032/image-size/large?v=v2&amp;amp;px=999" role="button" title="stepping_not_possible.png" alt="stepping_not_possible.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;1. Processor is MC9S12XET256.&lt;/P&gt;&lt;P&gt;2. Disable interrupts in debugger options or disable interrupts in firmware? if in debugger, that it doesn't help.&lt;/P&gt;&lt;P&gt;3. I can send you project configuration on email (if you will provide me)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. I've attached screenshot - first try to stop program was unsuccesful - it goes automatically again.&lt;/P&gt;&lt;P&gt;Second stop was correct, but after one step, program jumps to zeroed memory and I've get ILLEGAL_BP.&lt;/P&gt;&lt;P&gt;This is typical behaviour in this project. I have other project where I can debug smoothly, but there are many differences, e.g. no FreeRTOS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2016 12:43:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12-Debugging-I-Can-t-debug-in-Codewarior/m-p/549655#M12715</guid>
      <dc:creator>jacekjanczura</dc:creator>
      <dc:date>2016-07-29T12:43:13Z</dc:date>
    </item>
    <item>
      <title>Re: [S12 Debugging] I Can't debug in Codewarior</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12-Debugging-I-Can-t-debug-in-Codewarior/m-p/549656#M12716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jacek,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;well, it's better to disable interrupts in firmware, just comment out &lt;EM&gt;EnableInterrupts;&lt;/EM&gt; codeline or type in &lt;EM&gt;DisableInterrupts;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;But, this might not be much of help since you are using RTOS which uses the interrupts a lot.&lt;/P&gt;&lt;P&gt;Now, looking at the screenshot, the code stucked in RAM. So, not sure if it caused by RTOS itself.&lt;/P&gt;&lt;P&gt;We think that the issue is with pointers and/or addressing. For example, the program is pointed to an _far address (RPAGE, PPAGE or GPAGE), but the pointer value is missing high byte.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Illegal_BP is a typical SW thing. It means the debugger&amp;nbsp; lost (MCU behavior is different from behavior which debugger expects). &lt;/P&gt;&lt;P&gt;Typical root cause is unexpected interrupt or BDM communication is down. This is usually generated by the following causes:&lt;/P&gt;&lt;P&gt;_ unmapped interrupt vectors&lt;/P&gt;&lt;P&gt;_ watchdogs&lt;/P&gt;&lt;P&gt;_ jump, read or write to unimplemented addresses (could be due to inappropriate libraries).&lt;/P&gt;&lt;P&gt;_ stack overflow&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;iggi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Aug 2016 10:35:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12-Debugging-I-Can-t-debug-in-Codewarior/m-p/549656#M12716</guid>
      <dc:creator>iggi</dc:creator>
      <dc:date>2016-08-01T10:35:37Z</dc:date>
    </item>
  </channel>
</rss>

