<?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: Hard Fault Handler</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Hard-Fault-Handler/m-p/1084538#M41650</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A _jive_internal="true" data-content-finding="Community" data-userid="235125" data-username="keerthisripallapothu" href="https://community.nxp.com/people/keerthisripallapothu"&gt;Avinash G&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Most of the NVIC_IRQ functions only support Interruptions. The Systick is a system exception, so the Systick is not allowed in the function NVIC_DisableIRQ(SysTick_IRQn).&lt;/P&gt;&lt;P&gt;In order to disable the exception, you need to set the TICKINT bit in the SYST_CSR register to 0.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/1666i0B2EDE8E679AB935/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if you want to disable all IRQ and system exception (apart from NMI and hardfault), you can use "__disable_irq()" and reenable all IRQ and system exception using "__enable_irq()"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if this is helpful, if you have more questions do not hesitate to ask me.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Omar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Apr 2020 17:58:54 GMT</pubDate>
    <dc:creator>Omar_Anguiano</dc:creator>
    <dc:date>2020-04-28T17:58:54Z</dc:date>
    <item>
      <title>Hard Fault Handler</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Hard-Fault-Handler/m-p/1084537#M41649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just disable the systic interrupt in systic handler. code is given below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void SysTick_Handler(void)&lt;BR /&gt;{&lt;BR /&gt; NVIC_DisableIRQ(SysTick_IRQn);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;after executing the above instruction processor goes to&amp;nbsp; hard fault handler.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But like the same thing I have done it for timer interrupt as given below.&lt;/P&gt;&lt;P&gt;void TIMER0_IRQHandler()&lt;BR /&gt; {&lt;BR /&gt;NVIC_DisableIRQ(TIMER0_IRQn);&lt;/P&gt;&lt;P&gt;}&amp;nbsp;&lt;/P&gt;&lt;P&gt;it didn't go to hard fault handler.&lt;/P&gt;&lt;P&gt;What is the reason for this? is anyone experienced this type of issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Muralidhar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2020 14:02:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Hard-Fault-Handler/m-p/1084537#M41649</guid>
      <dc:creator>TEMCEFF</dc:creator>
      <dc:date>2020-04-27T14:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: Hard Fault Handler</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Hard-Fault-Handler/m-p/1084538#M41650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A _jive_internal="true" data-content-finding="Community" data-userid="235125" data-username="keerthisripallapothu" href="https://community.nxp.com/people/keerthisripallapothu"&gt;Avinash G&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Most of the NVIC_IRQ functions only support Interruptions. The Systick is a system exception, so the Systick is not allowed in the function NVIC_DisableIRQ(SysTick_IRQn).&lt;/P&gt;&lt;P&gt;In order to disable the exception, you need to set the TICKINT bit in the SYST_CSR register to 0.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/1666i0B2EDE8E679AB935/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if you want to disable all IRQ and system exception (apart from NMI and hardfault), you can use "__disable_irq()" and reenable all IRQ and system exception using "__enable_irq()"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if this is helpful, if you have more questions do not hesitate to ask me.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Omar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2020 17:58:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Hard-Fault-Handler/m-p/1084538#M41650</guid>
      <dc:creator>Omar_Anguiano</dc:creator>
      <dc:date>2020-04-28T17:58:54Z</dc:date>
    </item>
  </channel>
</rss>

