<?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>Kinetis Microcontrollers中的主题 Re: KL03Z interrupt</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL03Z-interrupt/m-p/509433#M32101</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jingjing,&lt;/P&gt;&lt;P&gt;Thanks for the help but it still does not want to work.&amp;nbsp; I am now using a P&amp;amp;E micro systems multilink universal interface.&lt;/P&gt;&lt;P&gt;When I load your project after running from the first interrupt and suspending operation I always get:&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/23445i95618E025D538E2D/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;If it were running correctly I would think that when I suspended operation I would either be in the interrupt service routine or in the main loop.&amp;nbsp; When I add a counter to the LPTMR interrupt routine it never increments.&lt;/P&gt;&lt;P&gt;I can install the code without the statement&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NVIC_EnableIRQ(28); and it will load and run but of course it will not get LPTMR interrupts.&amp;nbsp; When suspended it is in the main loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While debugging, besides moving the cursor to a new line and hitting Ctrl R, how do you single step?&lt;/P&gt;&lt;P&gt;In this program, are the interrupt vectors in RAM or in Flash and where is it designated?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 20 Mar 2016 20:26:27 GMT</pubDate>
    <dc:creator>stevengarfinkel</dc:creator>
    <dc:date>2016-03-20T20:26:27Z</dc:date>
    <item>
      <title>KL03Z interrupt</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL03Z-interrupt/m-p/509422#M32090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am sure this is totally due to my inexperience but here goes.&lt;/P&gt;&lt;P&gt;I am using a KL03Z 8k processor in an embedded application and I cannot get the LPTMR0 interrupt (the first I am trying) to work properly.Using KDS 1.2, bare copper, interfacing to the board using a FRDM-KL03Z dev board.&lt;/P&gt;&lt;P&gt;Here are some code bits.&amp;nbsp; Here is the basic interrupt enable.&amp;nbsp; Lines 143 and 144 execute but when 145 executes&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/58366i547250591C479B64/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;the processor goes off into unknown territory.&amp;nbsp; When I suspend operation the condition is always:&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/58418i47F23D96B48DEBF5/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;When I click on NVIC_Enable I see:&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/58442iBBE642993CB0E20C/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;the setup for the LPTMR is for regular interrupts so I can check some inputs.&amp;nbsp; My interrupt routine is:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/58465iD4F0480781A12CAA/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;but the interrupt routine is not being executed.&lt;/P&gt;&lt;P&gt;If I comment out the NVIC_Enable the program executes, but off course no interrupts occur.&lt;/P&gt;&lt;P&gt;The warning is for a break point which I cannot seem to clear.&amp;nbsp; I have tried it using both interrupt number 28 and LPTMR0_IRQn and they both do the same thing.&lt;/P&gt;&lt;P&gt;It seems to me that the interrupt routine is not being identified properly so that upon interrupt things fall apart.&lt;/P&gt;&lt;P&gt;Any assistance would be helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, when using the 8k processor in this configuration KDS reports that the wrong processor has been selected, even though the 8k is properly selected.&amp;nbsp; Perhaps this is due to working through the FRDM board which has a 32k part on it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I previously tried some dev using processor expert but it appears PE cannot be used on 8k devices.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, I found to get the FRDM board to work properly I needed to remove an additional resistor to separate the dev interface from the processor on the FRDM board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Mar 2016 23:39:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL03Z-interrupt/m-p/509422#M32090</guid>
      <dc:creator>stevengarfinkel</dc:creator>
      <dc:date>2016-03-06T23:39:39Z</dc:date>
    </item>
    <item>
      <title>Re: KL03Z interrupt</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL03Z-interrupt/m-p/509423#M32091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Steven,&lt;/P&gt;&lt;P&gt;Please check whether you enable the LPTMR interrupt through the register of LPTMRx_CSR-&amp;gt;TIE,&lt;/P&gt;&lt;P&gt;and the check whether the interrupt occur through the TCF :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/58374i0FDB01CADADC7CD9/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;if the two points are right , you can send your project to me , i will check it on my side.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Alice Yang&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2016 02:50:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL03Z-interrupt/m-p/509423#M32091</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2016-03-07T02:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: KL03Z interrupt</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL03Z-interrupt/m-p/509424#M32092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How are the interrupt vectors set up; to run in SRAM or directly from Flash? Practically, due to the very small SRAM size in the KL03, location in Flash is the only one that is really practical.&lt;/P&gt;&lt;P&gt;Check that your vectors have a LPTMR entry since otherwise it will try to take the interrupt and jump to 0xffffffff (and of course fail).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have problems with KDS or PE not supporting the part fully or you generally prefer a much more efficient solution see:&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.freescale.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fkinetis%2FFRDM-KL03Z.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis/FRDM-KL03Z.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;which gives you complete project operation and (approx.) real time KL03/board simulation to allow project testing and debugging without any HW debugging constrains or guesswork.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2016 03:14:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL03Z-interrupt/m-p/509424#M32092</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2016-03-07T03:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: KL03Z interrupt</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL03Z-interrupt/m-p/509425#M32093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steven Garfinkel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I already help you to create a KL03Z 8K LPTMR KDS barebone project, my project is based on the KDS3.0, it can works ok on my FRDM-KL03, it can enter the LPTMR interrupt:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="26.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/58367iA540DEB87528830E/image-size/large?v=v2&amp;amp;px=999" role="button" title="26.jpg" alt="26.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;For details, please refer to the attached project.&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&gt;If you still have question, please contact with me!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jingjing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2016 07:11:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL03Z-interrupt/m-p/509425#M32093</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2016-03-07T07:11:44Z</dc:date>
    </item>
    <item>
      <title>Re: KL03Z interrupt</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL03Z-interrupt/m-p/509426#M32094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have TIE enabled.&amp;nbsp; Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Mar 2016 00:35:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL03Z-interrupt/m-p/509426#M32094</guid>
      <dc:creator>stevengarfinkel</dc:creator>
      <dc:date>2016-03-08T00:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: KL03Z interrupt</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL03Z-interrupt/m-p/509427#M32095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mark,&lt;/P&gt;&lt;P&gt;Thanks and I think you are on the right track.&amp;nbsp; I have looked over the information on interrupts but I did not see anything about setting the interrupt vectors.&amp;nbsp; Since my program runs to ff..ff9 I am guessing there was no interrupt vector.&lt;/P&gt;&lt;P&gt;I assumed that by naming the interrupt handler LPTMR0_IRQHandler that the compiler set the vector but I am guessing that there is more to it than that.&amp;nbsp; I would like to understand this so if you could give me some guidance I would appreciate it.&amp;nbsp; This will be the first of a series of interrupts I will need.&lt;/P&gt;&lt;P&gt;So more questions:&amp;nbsp; How do I set the interrupt vectors to be in Flash?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Mar 2016 00:45:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL03Z-interrupt/m-p/509427#M32095</guid>
      <dc:creator>stevengarfinkel</dc:creator>
      <dc:date>2016-03-08T00:45:05Z</dc:date>
    </item>
    <item>
      <title>Re: KL03Z interrupt</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL03Z-interrupt/m-p/509428#M32096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Steven&lt;/P&gt;&lt;P&gt;Probabyl you have some assmebler files in your projet that include the reset and interrupt vectors that are located at the start of Flash. You will need to locates these and then see whether the have entries for the interrupts that you required.&lt;/P&gt;&lt;P&gt;Below is the const vector from the uTasker KL03 project, where is is done in C code - the LPTMR entry can be seen (there is no reason for assembler in a Kinetis project...)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14573987379147908 jive_text_macro" data-renderedposition="138_8_1192_864" jivemacro_uid="_14573987379147908" modifiedtitle="true"&gt;&lt;P&gt;const _RESET_VECTOR __attribute__((section(".vectors"))) reset_vect&lt;/P&gt;&lt;P&gt;= {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (void *)(RAM_START_ADDRESS + (SIZE_OF_RAM - NON_INITIALISED_RAM_SIZE)), // stack pointer to top of RAM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (void (*)(void))START_CODE,&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // start address&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; irq_NMI,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; irq_hard_fault,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; irq_memory_man,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; irq_bus_fault,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; irq_usage_fault,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; irq_SVCall,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; irq_debug_monitor,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; irq_pend_sv,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; _RealTimeInterrupt1,&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;&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;&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&lt;/P&gt;&lt;P&gt;&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;&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;&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;&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;&amp;nbsp;&amp;nbsp; // processor specific interrupts&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; irq_default,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; irq_default,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; irq_default,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; irq_default,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; irq_default,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; irq_default,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; irq_default,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; _wakeup_isr,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; _IIC_Interrupt_0,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; irq_default,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; irq_default,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; irq_default,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; _LPSCI0_Interrupt,&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;&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;&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; // LPUART 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; irq_default,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; irq_default,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; irq_default,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; irq_default,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; irq_default,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; irq_default,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; irq_default,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; _rtc_alarm_handler,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; _rtc_handler,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; irq_default,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; irq_default,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; irq_default,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; irq_default,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; irq_default,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; irq_default,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; _RealTimeInterrupt2,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // LPTMR interrupt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; irq_default,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; _port_A_isr,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; _port_B_isr&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The VTOR (vector table offset register) can be left at its default 0x00000000 when operating directly in Flash.&lt;/P&gt;&lt;P&gt;There is nothing else to be done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Mar 2016 01:02:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL03Z-interrupt/m-p/509428#M32096</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2016-03-08T01:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: KL03Z interrupt</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL03Z-interrupt/m-p/509429#M32097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I loaded your project and in my embedded system it does the same thing as before.&amp;nbsp; I am wondering if it is because I am using the 8k part using the frdm -kl03z board as the PNE interface.&amp;nbsp; Perhaps it is trying to put the interrupt vectors into memory that doesn't exist.&amp;nbsp; I will make a system with the 32k part and see if it works.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2016 20:24:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL03Z-interrupt/m-p/509429#M32097</guid>
      <dc:creator>stevengarfinkel</dc:creator>
      <dc:date>2016-03-11T20:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: KL03Z interrupt</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL03Z-interrupt/m-p/509430#M32098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steven,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; What do you mean about PNE interface?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Do you use the FRDM-KL03 on board PE debug to download the code to your 8K part board?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; When you do the debugging, if the LPTMR interrupt service code can't be work, do you stop the debug, whether the code enter to any other code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jingjing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Mar 2016 08:44:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL03Z-interrupt/m-p/509430#M32098</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2016-03-14T08:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: KL03Z interrupt</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL03Z-interrupt/m-p/509431#M32099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was using the FRDM-KL03 board to download code to the target board.&amp;nbsp; It worked (with the removal of R33) for downloading and debugging code until I added the LPTMR interrupt.&amp;nbsp; I realize now that the FRDM board is linked by serial number to the processor on the FRDM board and limits performance to other processors.&amp;nbsp; I am buying another programming interface to resolve the issue.&lt;/P&gt;&lt;P&gt;When I was using the FRDM board the performance was as I described above.&amp;nbsp; I would suspend running and it would be sitting at the default isr.&amp;nbsp; There may have been other errors due to coding that may have contributed as I was working a number of issues at the same time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Mar 2016 11:54:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL03Z-interrupt/m-p/509431#M32099</guid>
      <dc:creator>stevengarfinkel</dc:creator>
      <dc:date>2016-03-14T11:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: KL03Z interrupt</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL03Z-interrupt/m-p/509432#M32100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steven,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; From your description, your problem is not caused by the LPTMRT,&amp;nbsp; it caused by the debugger, so you need to buy a seperated debugger, eg, JLINK, P&amp;amp;E multilink to your own board.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; After you have the new debugger, you can try my code again.&lt;/P&gt;&lt;P&gt;&amp;nbsp; If you still have problem at that time, you can let me know!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Jingjing&lt;/P&gt;&lt;P&gt;&lt;BR /&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2016 03:03:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL03Z-interrupt/m-p/509432#M32100</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2016-03-15T03:03:16Z</dc:date>
    </item>
    <item>
      <title>Re: KL03Z interrupt</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL03Z-interrupt/m-p/509433#M32101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jingjing,&lt;/P&gt;&lt;P&gt;Thanks for the help but it still does not want to work.&amp;nbsp; I am now using a P&amp;amp;E micro systems multilink universal interface.&lt;/P&gt;&lt;P&gt;When I load your project after running from the first interrupt and suspending operation I always get:&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/23445i95618E025D538E2D/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;If it were running correctly I would think that when I suspended operation I would either be in the interrupt service routine or in the main loop.&amp;nbsp; When I add a counter to the LPTMR interrupt routine it never increments.&lt;/P&gt;&lt;P&gt;I can install the code without the statement&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NVIC_EnableIRQ(28); and it will load and run but of course it will not get LPTMR interrupts.&amp;nbsp; When suspended it is in the main loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While debugging, besides moving the cursor to a new line and hitting Ctrl R, how do you single step?&lt;/P&gt;&lt;P&gt;In this program, are the interrupt vectors in RAM or in Flash and where is it designated?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Mar 2016 20:26:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL03Z-interrupt/m-p/509433#M32101</guid>
      <dc:creator>stevengarfinkel</dc:creator>
      <dc:date>2016-03-20T20:26:27Z</dc:date>
    </item>
    <item>
      <title>Re: KL03Z interrupt</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL03Z-interrupt/m-p/509434#M32102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I loaded the project into the FRDM KL03 board and it works fine with both the main loop counter i and the lptmr counter I added incrementing.&lt;/P&gt;&lt;P&gt;On the target I defined the NMI pin as a GPIO output prior to enabling the interrupt with no help.&lt;/P&gt;&lt;P&gt;When I set the NMI (now GPIO) high the project worked with LPTMR interrupts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there something I am doing wrong?&amp;nbsp; I would assume that as soon as the pin is defined as an output its NMI function would end.&lt;/P&gt;&lt;P&gt;Is there some code I am missing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In all cases I am now using the KL03Z32 version.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Mar 2016 21:24:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL03Z-interrupt/m-p/509434#M32102</guid>
      <dc:creator>stevengarfinkel</dc:creator>
      <dc:date>2016-03-20T21:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: KL03Z interrupt</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL03Z-interrupt/m-p/509435#M32103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steven,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Did you use the NMI pin as the GPIO in your own KL03 board?&lt;/P&gt;&lt;P&gt;&amp;nbsp; NMI is the input pin, not the output pin, and you should connect an 4.7K to 10K pullup resistor, if you connect the NMI pin to ground, your project will enter in the NMI interrupt.&lt;/P&gt;&lt;P&gt;&amp;nbsp; If you want to disable the NMI pin, you should disable it in the flash FOPT address:0X40D,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Now, could you share your own KL03 board schematic to me? I need to check it, whether it is correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Waiting for your reply!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jingjing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Mar 2016 02:40:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL03Z-interrupt/m-p/509435#M32103</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2016-03-21T02:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: KL03Z interrupt</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL03Z-interrupt/m-p/509436#M32104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I could share the schematic but there is definitely no pull up.&amp;nbsp; I am using the NMI pin for another purpose, as an ADC input in the final design.&amp;nbsp; Using it as an output set high is a short term fix.&lt;/P&gt;&lt;P&gt;I would have assumed that when the pin mux was set for another application that the NMI function would be disabled.&amp;nbsp;&amp;nbsp; Please provide me with the code I need to disable the NMI function.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Mar 2016 22:16:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL03Z-interrupt/m-p/509436#M32104</guid>
      <dc:creator>stevengarfinkel</dc:creator>
      <dc:date>2016-03-21T22:16:30Z</dc:date>
    </item>
    <item>
      <title>Re: KL03Z interrupt</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL03Z-interrupt/m-p/509437#M32105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;NMI is "non-maskable" so it will aready fire before you enable interrupts in case the pin is '0' at any time after reset and before reprogramming its function.&lt;/P&gt;&lt;P&gt;If you don't need to use the NMI you can disable its operation by setting the NMI_DIS bit in the FOPT byte of the flash configuration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Mar 2016 22:54:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL03Z-interrupt/m-p/509437#M32105</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2016-03-21T22:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: KL03Z interrupt</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL03Z-interrupt/m-p/509438#M32106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steven,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ok, you don't need to share me your schematic now, your problem is caused by the NMI function, maybe you didn't disable the NMI function correctly, this NMI pin is special, so just as what I and Mark have said, you should modify the FOPT byte in the flash configuration filed, after you modify it, please generate the HEX code, and check the 0X40D, whether your NMI_DIS is correctly.&lt;/P&gt;&lt;P&gt;&amp;nbsp; Please disable the NMI function and check the modification at first.&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&gt;If you still have question, please contact with me!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jingjing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2016 01:44:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL03Z-interrupt/m-p/509438#M32106</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2016-03-22T01:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: KL03Z interrupt</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL03Z-interrupt/m-p/509439#M32107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Jingjing, Mark and everyone else for your help.&amp;nbsp; I edited the value in the processor.s file and it worked straight away.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2016 23:37:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL03Z-interrupt/m-p/509439#M32107</guid>
      <dc:creator>stevengarfinkel</dc:creator>
      <dc:date>2016-03-22T23:37:48Z</dc:date>
    </item>
  </channel>
</rss>

