<?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: Debug unused ISR using BGND instruction</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Debug-unused-ISR-using-BGND-instruction-MC9S12XDP512/m-p/175987#M6166</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;I see. Well as far as know there should not be an issue with a&amp;nbsp; break point in an ISR on a function that is called.&lt;BR /&gt;&lt;BR /&gt;You might try an asm jump to a function just to see if that does work. No need to pass any parameters, just set the break point at the top of the function.&lt;BR /&gt;I might also suggest that perhaps something else is a play here, and it is not an unexpected interrupt after all.&lt;BR /&gt;You didn't say much about the problem itself.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 26 Jul 2008 02:54:45 GMT</pubDate>
    <dc:creator>JimDon</dc:creator>
    <dc:date>2008-07-26T02:54:45Z</dc:date>
    <item>
      <title>Debug unused ISR using BGND instruction MC9S12XDP512</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Debug-unused-ISR-using-BGND-instruction-MC9S12XDP512/m-p/175982#M6161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;I&gt;&lt;/I&gt;&lt;P&gt;&lt;I&gt;&lt;SPAN style=": ; color: #000000; font-size: 2;"&gt;Hi,&lt;/SPAN&gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;&lt;SPAN style=": ; color: #000000; font-size: 2;"&gt;For unused ISR, the Processor Expert will generate code with the following form :&lt;/SPAN&gt;&lt;/I&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;P&gt;&lt;SPAN style="font-size: 1;"&gt;/*&lt;BR /&gt;** ===================================================================&lt;BR /&gt;** Method : Cpu_PE_Cpu_PE_ivVsi (bean MC9S12XDP512_112)&lt;BR /&gt;**&lt;BR /&gt;** Description :&lt;BR /&gt;** The method services unhandled interrupt vectors.&lt;BR /&gt;** This method is internal. It is used by Processor Expert only.&lt;BR /&gt;** ===================================================================&lt;BR /&gt;*/&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 1;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;ISR&lt;/STRONG&gt;(Cpu_PE_ivVsi)&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; asm&lt;/STRONG&gt;(BGND);&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN style=": ; color: #000000; font-size: 2;"&gt;&lt;SPAN style="color: #000000;"&gt;I've tried many things like putting my own "assert" method&amp;nbsp;call in the ISR&amp;nbsp;with a regular breakpoint. It&amp;nbsp;won't trigger if in an ISR.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style=": ; color: #000000; font-size: 2;"&gt;I would like to know how can I set the Hiwave debugger to&amp;nbsp;break on&amp;nbsp;those BGND instruction?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Added p/n to subject.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Message Edited by NLFSJ on &lt;/SPAN&gt;&lt;SPAN class="date_text"&gt;2008-07-28&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN class="time_text"&gt;08:47 AM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Jul 2008 01:47:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Debug-unused-ISR-using-BGND-instruction-MC9S12XDP512/m-p/175982#M6161</guid>
      <dc:creator>sbelanger</dc:creator>
      <dc:date>2008-07-26T01:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: Debug unused ISR using BGND instruction</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Debug-unused-ISR-using-BGND-instruction-MC9S12XDP512/m-p/175983#M6162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;You can't put jmp some where the set a break point&amp;nbsp; on somewhere?&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Jul 2008 02:17:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Debug-unused-ISR-using-BGND-instruction-MC9S12XDP512/m-p/175983#M6162</guid>
      <dc:creator>JimDon</dc:creator>
      <dc:date>2008-07-26T02:17:18Z</dc:date>
    </item>
    <item>
      <title>Re: Debug unused ISR using BGND instruction</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Debug-unused-ISR-using-BGND-instruction-MC9S12XDP512/m-p/175984#M6163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Well, I did the following to check if it would work :&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="1"&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;ISR&lt;/STRONG&gt;(Cpu_PE_ivVsi)&lt;BR /&gt;&lt;/FONT&gt;&lt;FONT color="#008080"&gt;{&lt;/FONT&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;FONT size="1"&gt;&lt;FONT color="#000000"&gt;&lt;B&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ASSERT_ALWAYS(0);&lt;/B&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;FONT color="#008080"&gt;}&lt;/FONT&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#008080" size="1"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#008080" size="1"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#008080" size="2"&gt;I've set a breakpoint in the ASSERT_ALWAYS() method. However the breakpoint won't trigger if the method is called within an ISR. Please note that if ASSERT_ALWAYS is called elsewhere than an ISR, the Hiwave debugger will halt the excecution and allow me to step into the code.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Jul 2008 02:24:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Debug-unused-ISR-using-BGND-instruction-MC9S12XDP512/m-p/175984#M6163</guid>
      <dc:creator>sbelanger</dc:creator>
      <dc:date>2008-07-26T02:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: Debug unused ISR using BGND instruction</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Debug-unused-ISR-using-BGND-instruction-MC9S12XDP512/m-p/175985#M6164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BR /&gt;Not sure what that macro does, not sure what you mean by method.&lt;BR /&gt;&lt;BR /&gt;About all that you can figure out from a unexpected interrupt is which one it was.&lt;BR /&gt;&lt;BR /&gt;If you jump to some address (or perhaps call a "C" function) you will be able to set a break point there.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Jul 2008 02:41:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Debug-unused-ISR-using-BGND-instruction-MC9S12XDP512/m-p/175985#M6164</guid>
      <dc:creator>JimDon</dc:creator>
      <dc:date>2008-07-26T02:41:45Z</dc:date>
    </item>
    <item>
      <title>Re: Debug unused ISR using BGND instruction</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Debug-unused-ISR-using-BGND-instruction-MC9S12XDP512/m-p/175986#M6165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi Don,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;In fact the "ASSERT_ALWAYS()" macro is a wrapper for a C function that already has a breakpoint set on it. So if we hit an unexpected condition in our software, the assert function is called and the Hiwave debugger halts the execution right there.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;For the previous case, I'm just wondering why a breakpoint set on a "C" function won't trigger if this function is called withing an ISR.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Jul 2008 02:46:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Debug-unused-ISR-using-BGND-instruction-MC9S12XDP512/m-p/175986#M6165</guid>
      <dc:creator>sbelanger</dc:creator>
      <dc:date>2008-07-26T02:46:47Z</dc:date>
    </item>
    <item>
      <title>Re: Debug unused ISR using BGND instruction</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Debug-unused-ISR-using-BGND-instruction-MC9S12XDP512/m-p/175987#M6166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;I see. Well as far as know there should not be an issue with a&amp;nbsp; break point in an ISR on a function that is called.&lt;BR /&gt;&lt;BR /&gt;You might try an asm jump to a function just to see if that does work. No need to pass any parameters, just set the break point at the top of the function.&lt;BR /&gt;I might also suggest that perhaps something else is a play here, and it is not an unexpected interrupt after all.&lt;BR /&gt;You didn't say much about the problem itself.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Jul 2008 02:54:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Debug-unused-ISR-using-BGND-instruction-MC9S12XDP512/m-p/175987#M6166</guid>
      <dc:creator>JimDon</dc:creator>
      <dc:date>2008-07-26T02:54:45Z</dc:date>
    </item>
    <item>
      <title>Re: Debug unused ISR using BGND instruction</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Debug-unused-ISR-using-BGND-instruction-MC9S12XDP512/m-p/175988#M6167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Thanks for the reply Don.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The problem I'm facing is that during development some interrupts might occur and I would like to trap them with the Hiwave debugger. Having this, I might have a valid stack and be able to pinpoint from which area of the code the interrupt was triggered.&amp;nbsp;This will enable me to find&amp;nbsp;null pointers, floating point exception, page faults, etc...&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Jul 2008 03:00:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Debug-unused-ISR-using-BGND-instruction-MC9S12XDP512/m-p/175988#M6167</guid>
      <dc:creator>sbelanger</dc:creator>
      <dc:date>2008-07-26T03:00:21Z</dc:date>
    </item>
  </channel>
</rss>

