<?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中的主题 UART interrupt can't enter interruput</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-interrupt-can-t-enter-interruput/m-p/618936#M36973</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using &lt;STRONG&gt;MK22FN1M0AVLH12&lt;/STRONG&gt; processor, copy the part code of the No-Block UART example of &lt;STRONG&gt;frdmk22f&lt;/STRONG&gt; in V1.3 KSDK. The SW hold at send function, &lt;STRONG&gt;seems that send function can't find the correct ISR.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Debug.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/3064iA1FC5556375EBED6/image-size/large?v=v2&amp;amp;px=999" role="button" title="Debug.jpg" alt="Debug.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;My question is,&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Why have the above issue? Should some place define interrupt vector?&lt;/LI&gt;&lt;LI&gt;What evaluationd board is for MK22FN1M0AVLH12?&amp;nbsp;&lt;SPAN style="color: #646464; background-color: #ffffff;"&gt;TWR-K21F120M?&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #646464; background-color: #ffffff;"&gt;&amp;nbsp;I use wrong code? Not the code from&amp;nbsp;&lt;STRONG style="color: #3d3d3d;"&gt;frdmk22f?&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN style="color: #646464; background-color: #ffffff;"&gt;&lt;STRONG style="color: #3d3d3d;"&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #646464; background-color: #ffffff;"&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #646464; background-color: #ffffff;"&gt;Kent&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 08 Oct 2016 23:45:19 GMT</pubDate>
    <dc:creator>kent_gu</dc:creator>
    <dc:date>2016-10-08T23:45:19Z</dc:date>
    <item>
      <title>UART interrupt can't enter interruput</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-interrupt-can-t-enter-interruput/m-p/618936#M36973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using &lt;STRONG&gt;MK22FN1M0AVLH12&lt;/STRONG&gt; processor, copy the part code of the No-Block UART example of &lt;STRONG&gt;frdmk22f&lt;/STRONG&gt; in V1.3 KSDK. The SW hold at send function, &lt;STRONG&gt;seems that send function can't find the correct ISR.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Debug.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/3064iA1FC5556375EBED6/image-size/large?v=v2&amp;amp;px=999" role="button" title="Debug.jpg" alt="Debug.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;My question is,&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Why have the above issue? Should some place define interrupt vector?&lt;/LI&gt;&lt;LI&gt;What evaluationd board is for MK22FN1M0AVLH12?&amp;nbsp;&lt;SPAN style="color: #646464; background-color: #ffffff;"&gt;TWR-K21F120M?&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #646464; background-color: #ffffff;"&gt;&amp;nbsp;I use wrong code? Not the code from&amp;nbsp;&lt;STRONG style="color: #3d3d3d;"&gt;frdmk22f?&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN style="color: #646464; background-color: #ffffff;"&gt;&lt;STRONG style="color: #3d3d3d;"&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #646464; background-color: #ffffff;"&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #646464; background-color: #ffffff;"&gt;Kent&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Oct 2016 23:45:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-interrupt-can-t-enter-interruput/m-p/618936#M36973</guid>
      <dc:creator>kent_gu</dc:creator>
      <dc:date>2016-10-08T23:45:19Z</dc:date>
    </item>
    <item>
      <title>Re: UART interrupt can't enter interruput</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-interrupt-can-t-enter-interruput/m-p/618937#M36974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kent,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Your problem is mainly caused by the mismatching between your chip and code.&lt;/P&gt;&lt;P&gt;Answer your 3 question in details:&lt;/P&gt;&lt;P&gt;1.Why have the above issue? Should some place define interrupt vector?&lt;/P&gt;&lt;P&gt;If the code and the chip is mismatching, when the code access the area which the hardware don't have, then it may enter in the defaultISR.&lt;/P&gt;&lt;P&gt;2.What evaluationd board is for MK22FN1M0AVLH12?&amp;nbsp;&lt;SPAN style="color: #646464; background-color: #ffffff;"&gt;TWR-K21F120M?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #646464; background-color: #ffffff;"&gt;&amp;nbsp;You can refer to TWR-K21F120M, but you should better refer to &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;H1&gt;&lt;A class="link-titled" href="http://www.nxp.com/products/software-and-tools/hardware-development-tools/tower-development-boards/mcu-and-processor-modules/kinetis-modules/twr-k21f120ma-kinetis-k21-120-mhz-tower-system-module:TWR-K21F120MA" title="http://www.nxp.com/products/software-and-tools/hardware-development-tools/tower-development-boards/mcu-and-processor-modules/kinetis-modules/twr-k21f120ma-kinetis-k21-120-mhz-tower-system-module:TWR-K21F120MA"&gt;TWR-K21F120MA|Tower System Board|Kinetis MCUs|NXP&lt;/A&gt;&amp;nbsp;&lt;/H1&gt;&lt;P&gt;&lt;SPAN style="color: #646464; background-color: #ffffff;"&gt;3.I use wrong code? Not the code from&amp;nbsp;&lt;STRONG style="color: #3d3d3d;"&gt;frdmk22f?&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;You can refer to KSDK2.0 code which can be download from this link:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://kex.nxp.com/en/welcome" title="https://kex.nxp.com/en/welcome"&gt;Welcome to Kinetis Expert | Kinetis Expert&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Click build an sdk button,&amp;nbsp; then select the processor like this:&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/3534i5070DCF4DE1A3433/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;&lt;/P&gt;&lt;P&gt;Generate the code ,and download it, you will find the uart code in folder: SDK_2.0_MK22FN1M0Axxx12\boards\twrk21f120m\driver_examples\uart&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&gt;If you still have question, please let me know!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&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>Sun, 09 Oct 2016 06:44:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-interrupt-can-t-enter-interruput/m-p/618937#M36974</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2016-10-09T06:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: UART interrupt can't enter interruput</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-interrupt-can-t-enter-interruput/m-p/618938#M36975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kerry,&lt;/P&gt;&lt;P&gt;yes, I creat KSDK V2.0 UART example, do as following,&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&amp;nbsp;Downloaded KSDK V2.0 for MK22FN1M0AVLH12&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;Use "Kinets SDK 2x project" wizard to create empty project for MK22FN1M0AVLH12&lt;/LI&gt;&lt;LI&gt;Copy part code from&amp;nbsp;"KSDK_2.0_MK22FN1M0A\boards\twrk21f120m\driver_examples\uart\interrupt_transfer\kds", include some part from uart_interrupt_transfer.c, board.c, board. h, etc.&lt;/LI&gt;&lt;LI&gt;Change UART5 to UART1 because I design a new board using MK22FN1M0AVLH12&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PC COM tool can receive the data from the board, but have the below question,&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Data is not right as&amp;nbsp; string in code. I try to change baud rate in PC COM tool, but can't work.&lt;/LI&gt;&lt;LI&gt;PC COM tool can't realize Rx/Tx loop function base on FW SW should have Rx/TX loop function.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="UART.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/3069i98E4900309AC0243/image-size/large?v=v2&amp;amp;px=999" role="button" title="UART.jpg" alt="UART.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Kent&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Oct 2016 02:02:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-interrupt-can-t-enter-interruput/m-p/618938#M36975</guid>
      <dc:creator>kent_gu</dc:creator>
      <dc:date>2016-10-10T02:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: UART interrupt can't enter interruput</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-interrupt-can-t-enter-interruput/m-p/618939#M36976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I have found the reason. The reason is baud rate is wrong in the example, which is caused by "#define DEMO_UART_CLKSRC kCLOCK_BusClk", and get &lt;STRONG&gt;60M&lt;/STRONG&gt;, which&amp;nbsp;cause wrong. If use "#define DEMO_UART_CLKSRC kCLOCK_CoreSysClk", then can fix make the example wrong well.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not sure if I use MK22FN1M0AVLH12, may example "\twrk21f120m\driver_examples\uart\interrupt_transfer\kds" is for&amp;nbsp;&lt;SPAN&gt;twrk21f120m.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Oct 2016 06:35:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-interrupt-can-t-enter-interruput/m-p/618939#M36976</guid>
      <dc:creator>kent_gu</dc:creator>
      <dc:date>2016-10-10T06:35:04Z</dc:date>
    </item>
  </channel>
</rss>

