<?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>i.MX ProcessorsのトピックFreeRTOS: UART_SetModemMode does not work</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/FreeRTOS-UART-SetModemMode-does-not-work/m-p/654865#M100315</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the latest&amp;nbsp;FreeRTOS iMX7D 1.0.1 BSP I am not able to use the UART in DTE. I use the hello_world example and changed harware_init.c trying to switch to DCE mode using&amp;nbsp;UART_SetModemMode with the&amp;nbsp;uartModemModeDte argument. Unfortunately that seems not to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Sep 2016 22:10:41 GMT</pubDate>
    <dc:creator>falstaff</dc:creator>
    <dc:date>2016-09-27T22:10:41Z</dc:date>
    <item>
      <title>FreeRTOS: UART_SetModemMode does not work</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/FreeRTOS-UART-SetModemMode-does-not-work/m-p/654865#M100315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the latest&amp;nbsp;FreeRTOS iMX7D 1.0.1 BSP I am not able to use the UART in DTE. I use the hello_world example and changed harware_init.c trying to switch to DCE mode using&amp;nbsp;UART_SetModemMode with the&amp;nbsp;uartModemModeDte argument. Unfortunately that seems not to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2016 22:10:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/FreeRTOS-UART-SetModemMode-does-not-work/m-p/654865#M100315</guid>
      <dc:creator>falstaff</dc:creator>
      <dc:date>2016-09-27T22:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: FreeRTOS: UART_SetModemMode does not work</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/FreeRTOS-UART-SetModemMode-does-not-work/m-p/654866#M100316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After further debugging it turns out that the implementation in uart_imx.c contains a bug in the assertion of the argument. This change helped to fix the issue:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;diff --git a/platform/drivers/src/uart_imx.c b/platform/drivers/src/uart_imx.c
index 3c5149d..f86d559 100644
--- a/platform/drivers/src/uart_imx.c
+++ b/platform/drivers/src/uart_imx.c
@@ -389,7 +389,7 @@ void UART_SetCtsPinLevel(UART_Type* base, bool active)
 *END**************************************************************************/
 void UART_SetModemMode(UART_Type* base, uint32_t mode)
 {
- assert((uartModemModeDce &amp;amp; uartModemModeDce) || (uartModemModeDce &amp;amp; uartModemModeDte));
+ assert((mode == uartModemModeDce) || (mode == uartModemModeDte));
 if (uartModemModeDce == mode)
 UART_UFCR_REG(base) &amp;amp;= ~UART_UFCR_DCEDTE_MASK;
 else&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since the issue is in the driver code provided by NXP, it would be nice if&amp;nbsp;this issue will be fixed in the next FreeRTOS BSP release...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2016 22:15:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/FreeRTOS-UART-SetModemMode-does-not-work/m-p/654866#M100316</guid>
      <dc:creator>falstaff</dc:creator>
      <dc:date>2016-09-27T22:15:12Z</dc:date>
    </item>
  </channel>
</rss>

