<?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>LPC Microcontrollers中的主题 Re: B Default_Handler</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/B-Default-Handler/m-p/521840#M4476</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by dariush_abbasi868 on Mon Sep 14 05:25:17 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Actually I have a project that when I use it alone it works very well .&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But I made a secondary boot loader for it and my project is an application runs after that .&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In that case sometimes I see B Default handler . &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't know why it happened while interrupt source and handler are the same .&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am sure that nothing in about interrupt or handler is added to project.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 17:51:51 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T17:51:51Z</dc:date>
    <item>
      <title>B Default_Handler</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/B-Default-Handler/m-p/521838#M4474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by dariush_abbasi868 on Mon Sep 14 00:49:17 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi, every body&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using an application but sometimes it goes to B Default_Handler and watchdog would restart it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;How I can find out the reason of this problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to know the last code before going to B Default_Handler .&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:51:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/B-Default-Handler/m-p/521838#M4474</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: B Default_Handler</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/B-Default-Handler/m-p/521839#M4475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by lpcxpresso-support on Mon Sep 14 02:00:08 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Sounds like you have possibly activated an interrupt source in your application without providing a specific interrupt handler for it - or misspelt the name of the handler in your sources compared to the name specified in the vector table in your startup code..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fwww.lpcware.com%2Fcontent%2Ffaq%2Flpcxpresso%2Fstartup-code-interrupt-handlers" rel="nofollow" target="_blank"&gt;https://www.lpcware.com/content/faq/lpcxpresso/startup-code-interrupt-handlers&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPCXpresso Support&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:51:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/B-Default-Handler/m-p/521839#M4475</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:51:50Z</dc:date>
    </item>
    <item>
      <title>Re: B Default_Handler</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/B-Default-Handler/m-p/521840#M4476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by dariush_abbasi868 on Mon Sep 14 05:25:17 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Actually I have a project that when I use it alone it works very well .&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But I made a secondary boot loader for it and my project is an application runs after that .&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In that case sometimes I see B Default handler . &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't know why it happened while interrupt source and handler are the same .&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am sure that nothing in about interrupt or handler is added to project.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:51:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/B-Default-Handler/m-p/521840#M4476</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: B Default_Handler</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/B-Default-Handler/m-p/521841#M4477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by mc on Mon Sep 14 06:56:48 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi dariush,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Please check IABR register to find the active interrupt. From this you will find the active interrupt and see why it is active&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:51:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/B-Default-Handler/m-p/521841#M4477</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: B Default_Handler</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/B-Default-Handler/m-p/521842#M4478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by dariush_abbasi868 on Tue Sep 15 04:40:18 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: mc&lt;/STRONG&gt;&lt;BR /&gt;Hi dariush,&lt;BR /&gt;Please check IABR register to find the active interrupt. From this you will find the active interrupt and see why it is active&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;you mean NVIC-&amp;gt;IABR[0...7]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I checked it and all of them are 0!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Besides I checked NVIC-&amp;gt;ISER[0..7] and I saw that only the first 8 bit of it is 0xae that seems Ok because I active only timers 0 ,1,2 and also uasrt2 ,0 . &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Am I right?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:51:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/B-Default-Handler/m-p/521842#M4478</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:51:52Z</dc:date>
    </item>
    <item>
      <title>Re: B Default_Handler</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/B-Default-Handler/m-p/521843#M4479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by mc on Tue Sep 15 11:01:00 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes NVIC-&amp;gt;IABR[0...7]. Put the break point inside default handler interrupt subroutine and when execution stops at this breakpoint check the value of all register bits.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If a particular bit is set, it means interrupt represented by that bit is active. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Please use below call &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;NVIC_GetActive(IRQn_Type IRQn);&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:51:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/B-Default-Handler/m-p/521843#M4479</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:51:53Z</dc:date>
    </item>
    <item>
      <title>Re: B Default_Handler</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/B-Default-Handler/m-p/521844#M4480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by dariush_abbasi868 on Tue Sep 15 20:53:54 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: mc&lt;/STRONG&gt;&lt;BR /&gt;Hi,&lt;BR /&gt;Yes NVIC-&amp;gt;IABR[0...7]. Put the break point inside default handler interrupt subroutine and when execution stops at this breakpoint check the value of all register bits.&lt;BR /&gt;If a particular bit is set, it means interrupt represented by that bit is active. &lt;BR /&gt;Please use below call &lt;BR /&gt;NVIC_GetActive(IRQn_Type IRQn);&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi and thanks for your kindly reply&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;would you please help me how I can do that ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;default handler&amp;nbsp; is in cstartup.c file and I cannot add any breakpoint in it .!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; sorry maybe I am make a sily mistake but if you can please help me . &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;At the attachment picture I tried to show NVIC s at that position , what do you think of it ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:51:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/B-Default-Handler/m-p/521844#M4480</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:51:53Z</dc:date>
    </item>
    <item>
      <title>Re: B Default_Handler</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/B-Default-Handler/m-p/521845#M4481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by dariush_abbasi868 on Tue Sep 15 23:50:09 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi again &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I 've just found it .&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It is HardFault_Handler&amp;nbsp; that I don't know why it is happening ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;How I can fix it ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:51:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/B-Default-Handler/m-p/521845#M4481</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:51:54Z</dc:date>
    </item>
    <item>
      <title>Re: B Default_Handler</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/B-Default-Handler/m-p/521846#M4482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by LabRat on Wed Sep 16 00:31:12 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fwww.lpcware.com%2Fcontent%2Ffaq%2Flpcxpresso%2Fdebugging-hard-fault" rel="nofollow" target="_blank"&gt;https://www.lpcware.com/content/faq/lpcxpresso/debugging-hard-fault&lt;/A&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:51:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/B-Default-Handler/m-p/521846#M4482</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: B Default_Handler</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/B-Default-Handler/m-p/521847#M4483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by dariush_abbasi868 on Sun Sep 20 03:14:41 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: LabRat&lt;/STRONG&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fwww.lpcware.com%2Fcontent%2Ffaq%2Flpcxpresso%2Fdebugging-hard-fault" rel="nofollow" target="_blank"&gt;https://www.lpcware.com/content/faq/lpcxpresso/debugging-hard-fault&lt;/A&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As I mentioned&amp;nbsp; my application without boot loader is working well , But when I used my secondary boot loader I have this problem , and I am using IAR&amp;nbsp; Workbench and I think I have some problem in STACK or HEAP only , &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;what about RAM?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I 's wondering if my boot loader's RAM or STACK has relation to my application's RAM or STACK? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;By the way I read that link but I am not sure what I have to do to fix my problem !&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I increased default Heap and Stack as I can but I have problem yet !&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;also in that case I found out SP(R13)=0x10004030&amp;nbsp; and LR(R14)=0x1576f&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:51:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/B-Default-Handler/m-p/521847#M4483</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:51:55Z</dc:date>
    </item>
  </channel>
</rss>

