<?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: SysTick Interrupt Disable generates HardFault in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/SysTick-Interrupt-Disable-generates-HardFault/m-p/519485#M3185</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried that code, It doesn't disable the systick, well at least for the k50. Would you know how to disable systick on K50?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Jan 2019 21:37:50 GMT</pubDate>
    <dc:creator>thasin_akhand</dc:creator>
    <dc:date>2019-01-24T21:37:50Z</dc:date>
    <item>
      <title>SysTick Interrupt Disable generates HardFault</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SysTick-Interrupt-Disable-generates-HardFault/m-p/519483#M3183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by lokinhas on Wed Oct 29 03:05:18 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi everyone.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In my current project I'm using a LPC1788 with the SysTick acting has a global timer, for non blocking code, the problem is that when a function needs to disable momentary the SysTick the interrupt (SysTick_IRQn) a HardFault occurs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the past I've used several LPC microcontrollers with a Cortex-M0 core (LPC1227, LPC11U68, etc) with the exact same code, without problems.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In attachment there's a example project that you can try.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance for the help.&lt;/SPAN&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-337952"&gt;FW.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:38:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SysTick-Interrupt-Disable-generates-HardFault/m-p/519483#M3183</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: SysTick Interrupt Disable generates HardFault</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SysTick-Interrupt-Disable-generates-HardFault/m-p/519484#M3184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by NXP_Paul on Wed Oct 29 08:14:00 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Try disabling the Systick interrupt using the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SysTick-&amp;gt;CTRL&amp;nbsp; = SysTick_CTRL_CLKSOURCE_Msk | SysTick_CTRL_ENABLE_Msk;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then re-enable the interrupt using:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SysTick-&amp;gt;CTRL&amp;nbsp; = SysTick_CTRL_CLKSOURCE_Msk | SysTick_CTRL_TICKINT_Msk&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SysTick_CTRL_ENABLE_Msk;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The Disbale IRQ function states the following in the core_cm3.h file:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;/** \brief&amp;nbsp; Disable External Interrupt&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; The function disables a device-specific interrupt in the NVIC interrupt controller.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; \param [in]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [u]IRQn&amp;nbsp; External interrupt number. Value cannot be negative.[/u]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; */&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you look in the cmsis_1777x_8x.h file, it shows that the Systick has a negative value:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SysTick_IRQn&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = -1,/*!&amp;lt; 15 System Tick Interrupt */&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I changed your program using the disable/enable as shown above, and there is no longer a hardfault error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Paul&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:38:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SysTick-Interrupt-Disable-generates-HardFault/m-p/519484#M3184</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: SysTick Interrupt Disable generates HardFault</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SysTick-Interrupt-Disable-generates-HardFault/m-p/519485#M3185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried that code, It doesn't disable the systick, well at least for the k50. Would you know how to disable systick on K50?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2019 21:37:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SysTick-Interrupt-Disable-generates-HardFault/m-p/519485#M3185</guid>
      <dc:creator>thasin_akhand</dc:creator>
      <dc:date>2019-01-24T21:37:50Z</dc:date>
    </item>
  </channel>
</rss>

