<?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>MQX Software SolutionsのトピックRe: MQX 4.2 interrupt UART causing lock-up</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-4-2-interrupt-UART-causing-lock-up/m-p/906667#M18206</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp; &lt;A _jive_internal="true" data-content-finding="Community" data-userid="28496" data-username="ARQuattr" href="https://community.nxp.com/people/ARQuattr"&gt;Angelo &lt;/A&gt;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would suggest you try to configure PDSRx Pin strength register control bits to high driver strength.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer to the reference manual:&lt;/P&gt;&lt;P style="margin: 2.0pt 0cm 2.0pt 0cm;"&gt;&lt;STRONG style="font-size: 13.0pt; "&gt;15.6.6.2 Pin Drive Strength Register (PDSR)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin: 2.0pt 0cm 2.0pt 0cm;"&gt;&lt;SPAN style="font-size: 9.0pt;"&gt;P&lt;/SPAN&gt;&lt;EM style="font-size: 9.0pt; "&gt;DS&lt;/EM&gt;&lt;SPAN style="font-size: 9.0pt;"&gt;Rx pin strength register control bits.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 2.0pt 0cm 2.0pt 0cm;"&gt;&lt;SPAN style="font-size: 9.0pt;"&gt;1 Pin is configured for high drive strength (10mA)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt;"&gt;0 Pin is configured for low drive strength (2mA)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Apr 2019 03:16:24 GMT</pubDate>
    <dc:creator>danielchen</dc:creator>
    <dc:date>2019-04-26T03:16:24Z</dc:date>
    <item>
      <title>MQX 4.2 interrupt UART causing lock-up</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-4-2-interrupt-UART-causing-lock-up/m-p/906666#M18205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a board with an MCF52254 MCU running MQX 4.2.&amp;nbsp; There is a UART port exposed for an optional peripheral and it was running as a polled serial port with no issues&amp;nbsp;except it would sometimes miss characters so it was changed to an interrupt-based UART.&amp;nbsp; That works fine as long as something is connected to the port, however when disconnected the application sometimes locks up.&amp;nbsp; I found that even touching the RX pin can lead the device to lock up sometimes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To confirm, I switched back to polling and I can't reproduce the lock up.&amp;nbsp; It only happens when configured for interrupts.&amp;nbsp; If I connect a terminal to it, it doesn't reproduce, so I feel the 'floating' RX pin is picking up noise leading to the issue.&amp;nbsp; I was able to narrow the lock-ups down to whenever there is some output produced on the same UART port, but again only when nothing is connected to it.&amp;nbsp; (I assume there is some crosstalk from the TX output back onto the RX input when terminated.)&amp;nbsp; It only happens rarely, maybe 1 in every ~50 times it's operated, unless I touch the pin which makes it happen somewhat more often.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I add a pull-up on the RX pin I can't reproduce it, but I don't think I can turn on a internal pull-up on the pin when it's in UART mode (not GPIO mode).&amp;nbsp; Am I wrong about that?&amp;nbsp; I don't have the option to modify the hardware.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assumed there was some UART interrupt that is not being serviced, but I'm not sure what.&amp;nbsp; I tried installing the unexpected and exception ISRs, but it doesn't look like they were triggered when the lock-up occurred.&amp;nbsp; (Perhaps I did something wrong there though as I haven't used those before.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any thoughts on what else I could try or check?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Angelo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Apr 2019 15:43:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-4-2-interrupt-UART-causing-lock-up/m-p/906666#M18205</guid>
      <dc:creator>ARQuattr</dc:creator>
      <dc:date>2019-04-23T15:43:41Z</dc:date>
    </item>
    <item>
      <title>Re: MQX 4.2 interrupt UART causing lock-up</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-4-2-interrupt-UART-causing-lock-up/m-p/906667#M18206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp; &lt;A _jive_internal="true" data-content-finding="Community" data-userid="28496" data-username="ARQuattr" href="https://community.nxp.com/people/ARQuattr"&gt;Angelo &lt;/A&gt;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would suggest you try to configure PDSRx Pin strength register control bits to high driver strength.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer to the reference manual:&lt;/P&gt;&lt;P style="margin: 2.0pt 0cm 2.0pt 0cm;"&gt;&lt;STRONG style="font-size: 13.0pt; "&gt;15.6.6.2 Pin Drive Strength Register (PDSR)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin: 2.0pt 0cm 2.0pt 0cm;"&gt;&lt;SPAN style="font-size: 9.0pt;"&gt;P&lt;/SPAN&gt;&lt;EM style="font-size: 9.0pt; "&gt;DS&lt;/EM&gt;&lt;SPAN style="font-size: 9.0pt;"&gt;Rx pin strength register control bits.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 2.0pt 0cm 2.0pt 0cm;"&gt;&lt;SPAN style="font-size: 9.0pt;"&gt;1 Pin is configured for high drive strength (10mA)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt;"&gt;0 Pin is configured for low drive strength (2mA)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Apr 2019 03:16:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-4-2-interrupt-UART-causing-lock-up/m-p/906667#M18206</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2019-04-26T03:16:24Z</dc:date>
    </item>
  </channel>
</rss>

