<?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 LPC15 MRT IRQ not working  in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC15-MRT-IRQ-not-working/m-p/703727#M28334</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;on a project with FreeRTOS and RTI i would like to add a MRT Timer.&lt;/P&gt;&lt;P&gt;The debugger shows the timer is running, interupt flag pending but the ISR is not&amp;nbsp; called.&lt;/P&gt;&lt;P&gt;Any idia?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/15530i286F5B898CED1FCF/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For a first test a added the example code + the first 2 lines. NVIC_EnableIRQ(MRT_IRQn) at the end of the init fnchas also no effect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void MRT_init()&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Chip_Clock_EnablePeriphClock(SYSCTL_CLOCK_MRT);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Chip_SYSCTL_PeriphReset(RESET_MRT);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; int mrtch;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Chip_MRT_Init();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;for (mrtch = 0; mrtch &amp;lt; MRT_CHANNELS_NUM; mrtch++)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;Chip_MRT_SetDisabled(Chip_MRT_GetRegPtr(mrtch));&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;NVIC_EnableIRQ(MRT_IRQn);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC_MRT_CH_T *pMRT;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;pMRT = Chip_MRT_GetRegPtr(0);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;/* Setup timer with rate based on MRT clock */&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Chip_MRT_SetInterval(pMRT, (Chip_Clock_GetSystemClockRate() / 20000) | MRT_INTVAL_LOAD);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Chip_MRT_SetMode(pMRT, MRT_MODE_REPEAT);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Chip_MRT_IntClear(pMRT);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Chip_MRT_SetEnabled(pMRT);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void MRT_IRQHandler(void)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;uint32_t int_pend;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Get and clear interrupt pending status for all timers */&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;int_pend = Chip_MRT_GetIntPending();&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Chip_MRT_ClearIntPending(int_pend);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DIO_SW2_TOGGLE;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Oct 2017 17:24:57 GMT</pubDate>
    <dc:creator>andreasschnitze</dc:creator>
    <dc:date>2017-10-11T17:24:57Z</dc:date>
    <item>
      <title>LPC15 MRT IRQ not working</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC15-MRT-IRQ-not-working/m-p/703727#M28334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;on a project with FreeRTOS and RTI i would like to add a MRT Timer.&lt;/P&gt;&lt;P&gt;The debugger shows the timer is running, interupt flag pending but the ISR is not&amp;nbsp; called.&lt;/P&gt;&lt;P&gt;Any idia?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/15530i286F5B898CED1FCF/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For a first test a added the example code + the first 2 lines. NVIC_EnableIRQ(MRT_IRQn) at the end of the init fnchas also no effect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void MRT_init()&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Chip_Clock_EnablePeriphClock(SYSCTL_CLOCK_MRT);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Chip_SYSCTL_PeriphReset(RESET_MRT);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; int mrtch;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Chip_MRT_Init();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;for (mrtch = 0; mrtch &amp;lt; MRT_CHANNELS_NUM; mrtch++)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;Chip_MRT_SetDisabled(Chip_MRT_GetRegPtr(mrtch));&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;NVIC_EnableIRQ(MRT_IRQn);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC_MRT_CH_T *pMRT;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;pMRT = Chip_MRT_GetRegPtr(0);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;/* Setup timer with rate based on MRT clock */&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Chip_MRT_SetInterval(pMRT, (Chip_Clock_GetSystemClockRate() / 20000) | MRT_INTVAL_LOAD);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Chip_MRT_SetMode(pMRT, MRT_MODE_REPEAT);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Chip_MRT_IntClear(pMRT);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Chip_MRT_SetEnabled(pMRT);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void MRT_IRQHandler(void)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;uint32_t int_pend;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Get and clear interrupt pending status for all timers */&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;int_pend = Chip_MRT_GetIntPending();&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Chip_MRT_ClearIntPending(int_pend);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DIO_SW2_TOGGLE;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Oct 2017 17:24:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC15-MRT-IRQ-not-working/m-p/703727#M28334</guid>
      <dc:creator>andreasschnitze</dc:creator>
      <dc:date>2017-10-11T17:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: LPC15 MRT IRQ not working</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC15-MRT-IRQ-not-working/m-p/703728#M28335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px;"&gt;Hi &lt;A _jive_internal="true" data-content-finding="Community" data-userid="289057" data-username="andreasschnitzer" href="https://community.nxp.com/people/andreasschnitzer"&gt;Andreas Schnitzer&lt;/A&gt;，&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN style="font-family: Arial,sans-serif; font-size: 15px;"&gt;To provide the fastest possible support, I'd highly recommend you to refer to the&amp;nbsp;periph_mrt demo of the &lt;SPAN style="color: #252526; font-family: Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;LPCXpresso LPC1549 board&lt;/SPAN&gt;'s LPCOpen library.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-family: Arial,sans-serif; font-size: 15px;"&gt;&lt;A class="link-titled" href="https://www.nxp.com/products/microcontrollers-and-processors/arm-based-processors-and-mcus/lpc-cortex-m-mcus/developer-resources-/lpcopen-libraries-and-examples/lpcopen-software-development-platform-lpc15xx:LPCOPEN-SOFTWARE-FOR-LPC15XX" title="https://www.nxp.com/products/microcontrollers-and-processors/arm-based-processors-and-mcus/lpc-cortex-m-mcus/developer-resources-/lpcopen-libraries-and-examples/lpcopen-software-development-platform-lpc15xx:LPCOPEN-SOFTWARE-FOR-LPC15XX"&gt;LPCOpen Software for LPC15XX|NXP&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;P style="color: #51626f; border: 0px;"&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P style="color: #51626f; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; border: 0px;"&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Oct 2017 09:07:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC15-MRT-IRQ-not-working/m-p/703728#M28335</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2017-10-12T09:07:24Z</dc:date>
    </item>
    <item>
      <title>Re: LPC15 MRT IRQ not working</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC15-MRT-IRQ-not-working/m-p/703729#M28336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi jermyzhou,&lt;/P&gt;&lt;P&gt;thank you. I took the example again its running now. . I obvious missed something and/or a breakpoint inside the isr for first ivestigation was optimiced out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Oct 2017 13:06:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC15-MRT-IRQ-not-working/m-p/703729#M28336</guid>
      <dc:creator>andreasschnitze</dc:creator>
      <dc:date>2017-10-14T13:06:38Z</dc:date>
    </item>
  </channel>
</rss>

