<?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: lpcxpresso LPC1343: setting up breakpoints in Timer ISR in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpcxpresso-LPC1343-setting-up-breakpoints-in-Timer-ISR/m-p/526058#M8691</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by safiullahh on Sat Jan 17 06:45:07 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;The name of the ISR is correct i.e. TIMER32_0_IRQHandler&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 16:58:44 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T16:58:44Z</dc:date>
    <item>
      <title>lpcxpresso LPC1343: setting up breakpoints in Timer ISR</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpcxpresso-LPC1343-setting-up-breakpoints-in-Timer-ISR/m-p/526055#M8688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by safiullahh on Sat Jan 17 03:15:03 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi All,p&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am facing the following error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) setting up a breakpoint in a ISR results in the following error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"terminating on communication loss: Pipe has been closed by GDB"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I solved the debug issue through this forum post:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.lpcware.com%2Fcontent%2Fforum%2Flpcxpresso-and-setting-breakpoints-isr-causes-gdb-crash" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/content/forum/lpcxpresso-and-setting-breakpoints-isr-causes-gdb-crash&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I remove the -Xlinker option --gc-sections.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Upon doing this the debug session starts normally.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2) after the start of debug session I notice the ISR I declare (a 32-bit Timer 0 ISR) does not get invoked at all, and the code keeps jumping into the IntDefaultHandler ISR. This probably means the processor cant find the Timer ISR.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3) this problem seems to exist only when using my own project (LPCOpen C++ Project) where as the code in the samples seems to run and debug correctly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this behavior right? Am I doing something wrong? If so, how do I fix it? Please help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:58:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/lpcxpresso-LPC1343-setting-up-breakpoints-in-Timer-ISR/m-p/526055#M8688</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: lpcxpresso LPC1343: setting up breakpoints in Timer ISR</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpcxpresso-LPC1343-setting-up-breakpoints-in-Timer-ISR/m-p/526056#M8689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by TheFallGuy on Sat Jan 17 03:24:16 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Check the spelling of your Timer ISR - if you have misspelt it, the default will be used IntDefault). Check the name in the vector table matches the name you have provided.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. This also explains why you got the crash on debug startup. Your code will have been unused and so removed and setting a breakpoint on removed code causes the crash&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:58:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/lpcxpresso-LPC1343-setting-up-breakpoints-in-Timer-ISR/m-p/526056#M8689</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: lpcxpresso LPC1343: setting up breakpoints in Timer ISR</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpcxpresso-LPC1343-setting-up-breakpoints-in-Timer-ISR/m-p/526057#M8690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by R2D2 on Sat Jan 17 04:02:09 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: safiullahh&lt;/STRONG&gt;&lt;BR /&gt;2) after the start of debug session I notice the ISR I declare (a 32-bit Timer 0 ISR) does not get invoked at all, and the code keeps jumping into the IntDefaultHandler ISR. This probably means the processor cant find the Timer ISR.&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Correct&amp;nbsp; :) &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: safiullahh&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;3) this problem seems to exist only when using my own project (LPCOpen C++ Project) where as the code in the samples seems to run and debug correctly.&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That's 'Name Mangling' of C++&amp;nbsp; :O &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;See: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.lpcware.com%2Fcontent%2Fforum%2Fwhy-isnt-my-systickhandler-being-called-my-c-project" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/content/forum/why-isnt-my-systickhandler-being-called-my-c-project&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:58:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/lpcxpresso-LPC1343-setting-up-breakpoints-in-Timer-ISR/m-p/526057#M8690</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: lpcxpresso LPC1343: setting up breakpoints in Timer ISR</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpcxpresso-LPC1343-setting-up-breakpoints-in-Timer-ISR/m-p/526058#M8691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by safiullahh on Sat Jan 17 06:45:07 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;The name of the ISR is correct i.e. TIMER32_0_IRQHandler&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:58:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/lpcxpresso-LPC1343-setting-up-breakpoints-in-Timer-ISR/m-p/526058#M8691</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:58:44Z</dc:date>
    </item>
    <item>
      <title>Re: lpcxpresso LPC1343: setting up breakpoints in Timer ISR</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpcxpresso-LPC1343-setting-up-breakpoints-in-Timer-ISR/m-p/526059#M8692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by safiullahh on Sat Jan 17 06:48:57 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Can't view the link from my phone, but if it's C++ name mangling, should declaring the ISR as "extern C" solve the issue?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;May need to modify declarations in cr_startup_lpc13xx.cpp.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:58:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/lpcxpresso-LPC1343-setting-up-breakpoints-in-Timer-ISR/m-p/526059#M8692</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:58:44Z</dc:date>
    </item>
    <item>
      <title>Re: lpcxpresso LPC1343: setting up breakpoints in Timer ISR</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpcxpresso-LPC1343-setting-up-breakpoints-in-Timer-ISR/m-p/526060#M8693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by R2D2 on Sat Jan 17 07:01:02 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Just add 'extern C' for all interrupts, then this interrupt handler name is used...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;[color=#f00]#ifdef __cplusplus
extern "C" {
#endif[/color]
void InterruptHanderName(void)
{
 //doing interrupt stuff here
}
[color=#f00]#ifdef __cplusplus
}
#endif&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;SPAN&gt;[/color]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It's not necessary to modify startup files... &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:58:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/lpcxpresso-LPC1343-setting-up-breakpoints-in-Timer-ISR/m-p/526060#M8693</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: lpcxpresso LPC1343: setting up breakpoints in Timer ISR</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpcxpresso-LPC1343-setting-up-breakpoints-in-Timer-ISR/m-p/526061#M8694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by safiullahh on Sat Jan 17 07:15:16 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a million, will try it out tomorrow.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:58:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/lpcxpresso-LPC1343-setting-up-breakpoints-in-Timer-ISR/m-p/526061#M8694</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:58:46Z</dc:date>
    </item>
    <item>
      <title>Re: lpcxpresso LPC1343: setting up breakpoints in Timer ISR</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpcxpresso-LPC1343-setting-up-breakpoints-in-Timer-ISR/m-p/526062#M8695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by safiullahh on Sat Jan 17 08:13:03 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Yep that solves the problem. Thanks again.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:58:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/lpcxpresso-LPC1343-setting-up-breakpoints-in-Timer-ISR/m-p/526062#M8695</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:58:47Z</dc:date>
    </item>
  </channel>
</rss>

