<?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のトピックHow to disable all UART error interrupts?</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-disable-all-UART-error-interrupts/m-p/726083#M44404</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm getting UART overrun and framing errors in my application. I'd like to disable the UART error interrupts but I'm having trouble getting that to work. This is on a K22 MCU.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been using PE-generated code, so for UART I'm using ASynchroSerial components with lower-level ASerialLDD components. Within the ASerialLDD init function, I've replace the interrupt-enable line with interrupt-disable:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Previously was:&lt;/P&gt;&lt;P&gt;UART_PDD_EnableInterrupt(UART5_BASE_PTR, ( UART_PDD_INTERRUPT_RECEIVER | UART_PDD_INTERRUPT_PARITY_ERROR | UART_PDD_INTERRUPT_FRAMING_ERROR | UART_PDD_INTERRUPT_NOISE_ERROR | UART_PDD_INTERRUPT_OVERRUN_ERROR )); /* Enable interrupts */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Modified to:&lt;/P&gt;&lt;P&gt;UART_PDD_DisableInterrupt(UART5_BASE_PTR, ( UART_PDD_INTERRUPT_RECEIVER | UART_PDD_INTERRUPT_PARITY_ERROR | UART_PDD_INTERRUPT_FRAMING_ERROR | UART_PDD_INTERRUPT_NOISE_ERROR | UART_PDD_INTERRUPT_OVERRUN_ERROR ));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, my code is still ending up in&amp;nbsp;PE_ISR(Cpu_ivINT_UART5_ERR) when it gets framing errors or overruns.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I *completely* disable these interrupts?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Oct 2017 17:10:32 GMT</pubDate>
    <dc:creator>asfarley</dc:creator>
    <dc:date>2017-10-26T17:10:32Z</dc:date>
    <item>
      <title>How to disable all UART error interrupts?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-disable-all-UART-error-interrupts/m-p/726083#M44404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm getting UART overrun and framing errors in my application. I'd like to disable the UART error interrupts but I'm having trouble getting that to work. This is on a K22 MCU.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been using PE-generated code, so for UART I'm using ASynchroSerial components with lower-level ASerialLDD components. Within the ASerialLDD init function, I've replace the interrupt-enable line with interrupt-disable:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Previously was:&lt;/P&gt;&lt;P&gt;UART_PDD_EnableInterrupt(UART5_BASE_PTR, ( UART_PDD_INTERRUPT_RECEIVER | UART_PDD_INTERRUPT_PARITY_ERROR | UART_PDD_INTERRUPT_FRAMING_ERROR | UART_PDD_INTERRUPT_NOISE_ERROR | UART_PDD_INTERRUPT_OVERRUN_ERROR )); /* Enable interrupts */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Modified to:&lt;/P&gt;&lt;P&gt;UART_PDD_DisableInterrupt(UART5_BASE_PTR, ( UART_PDD_INTERRUPT_RECEIVER | UART_PDD_INTERRUPT_PARITY_ERROR | UART_PDD_INTERRUPT_FRAMING_ERROR | UART_PDD_INTERRUPT_NOISE_ERROR | UART_PDD_INTERRUPT_OVERRUN_ERROR ));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, my code is still ending up in&amp;nbsp;PE_ISR(Cpu_ivINT_UART5_ERR) when it gets framing errors or overruns.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I *completely* disable these interrupts?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Oct 2017 17:10:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-disable-all-UART-error-interrupts/m-p/726083#M44404</guid>
      <dc:creator>asfarley</dc:creator>
      <dc:date>2017-10-26T17:10:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to disable all UART error interrupts?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-disable-all-UART-error-interrupts/m-p/726084#M44405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;Alexander,&lt;/P&gt;&lt;P&gt;Please check the value of UARTx_C3 to ensure these Error Interrupt are disabled.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="UARTx_C3 Error Interrupt.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/7168i5EB49F4A740BD3A2/image-size/large?v=v2&amp;amp;px=999" role="button" title="UARTx_C3 Error Interrupt.png" alt="UARTx_C3 Error Interrupt.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here is the Interrupt vector assignments, you can also check if the UART error sources is disabled in NVIC.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Table 3-5. Interrupt vector assignments.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/7270i021022259DC98FDC/image-size/large?v=v2&amp;amp;px=999" role="button" title="Table 3-5. Interrupt vector assignments.png" alt="Table 3-5. Interrupt vector assignments.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Robin&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&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>Fri, 27 Oct 2017 02:53:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-disable-all-UART-error-interrupts/m-p/726084#M44405</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2017-10-27T02:53:20Z</dc:date>
    </item>
  </channel>
</rss>

