<?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のトピックi.MX8M mini</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/i-MX8M-mini/m-p/1069944#M157162</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Nxp,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I&amp;nbsp;am trying to use i.Mx8M Mini DDR4 evk. I have windows application over UART that I am&amp;nbsp;using to talk to an App in the i.Mx8M Mini evk(&lt;STRONG&gt;readSerial&lt;/STRONG&gt;) over Linux. I have code snippet of evk app below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am writing data from desk top app but not able to read&amp;nbsp;the data in evk. I am using "/dev/&lt;SPAN&gt;ttymxc1" for UART communication&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;int set_interface_attribs(int fd, int speed)&lt;BR /&gt;{&lt;BR /&gt; struct termios tty;&lt;BR /&gt; if(tcgetattr(fd, &amp;amp;tty) &amp;lt; 0){&lt;BR /&gt; printf("Error from tcgetattr: %s\n",strerror(errno));&lt;BR /&gt; return -1;&lt;BR /&gt; }&lt;BR /&gt; cfsetospeed (&amp;amp;tty, speed);&lt;BR /&gt; cfsetispeed (&amp;amp;tty, speed);&lt;BR /&gt; tty.c_cflag &amp;amp;= ~PARENB;&lt;BR /&gt; tty.c_cflag &amp;amp;= ~CSTOPB;&lt;BR /&gt; tty.c_cflag &amp;amp;= ~CSIZE;&lt;BR /&gt; tty.c_cflag |= CS8;&lt;/P&gt;&lt;P&gt;tty.c_cflag &amp;amp;= ~CRTSCTS;&lt;BR /&gt; /* fetch bytes as they become available */&lt;BR /&gt; tty.c_cc[VMIN] = 1;&lt;BR /&gt; tty.c_cc[VTIME] = 5;&lt;BR /&gt; tty.c_cflag |= CREAD | CLOCAL;&lt;BR /&gt; cfmakeraw(&amp;amp;tty);&lt;/P&gt;&lt;P&gt;tcflush(fd, TCIFLUSH);&lt;BR /&gt; if (tcsetattr(fd, TCSANOW, &amp;amp;tty) != 0)&lt;BR /&gt; {&lt;BR /&gt; return -1;&lt;BR /&gt; }&lt;BR /&gt; return 0;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;int main(int argc, char* argv[])&lt;BR /&gt;{&lt;BR /&gt; char *port1 = "/dev/ttymxc1";&lt;BR /&gt; int out = open("log.txt", O_RDWR | O_CREAT | O_APPEND, 0600);&lt;BR /&gt; signal(SIGTTOU, sig_ttou);&lt;/P&gt;&lt;P&gt;printf("read/write from %s\n", port1);&lt;BR /&gt; int fd = open(port1, O_RDWR | O_NOCTTY | O_SYNC);&lt;BR /&gt; if(fd &amp;lt; 0)&lt;BR /&gt; {&lt;BR /&gt; return -1;&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;set_interface_attribs(fd, B115200);&lt;BR /&gt; int rdlen;&lt;BR /&gt; do {&lt;BR /&gt; unsigned char buf[5];&lt;BR /&gt; rdlen = read(fd, buf, 1);&lt;BR /&gt; if(rdlen &amp;gt; 0)&lt;BR /&gt; {&lt;BR /&gt; unsigned char *p;&lt;BR /&gt; for(p=buf; rdlen-- &amp;gt; 0; p++)&lt;BR /&gt; {&lt;BR /&gt; printf("0x%x",*p);&lt;BR /&gt; }&lt;BR /&gt; }&lt;BR /&gt; }while(1);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I copy the app the&amp;nbsp;rootfs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;./readSerial &amp;amp;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;James&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Jun 2020 23:11:06 GMT</pubDate>
    <dc:creator>jander2355</dc:creator>
    <dc:date>2020-06-19T23:11:06Z</dc:date>
    <item>
      <title>i.MX8M mini</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX8M-mini/m-p/1069944#M157162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Nxp,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I&amp;nbsp;am trying to use i.Mx8M Mini DDR4 evk. I have windows application over UART that I am&amp;nbsp;using to talk to an App in the i.Mx8M Mini evk(&lt;STRONG&gt;readSerial&lt;/STRONG&gt;) over Linux. I have code snippet of evk app below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am writing data from desk top app but not able to read&amp;nbsp;the data in evk. I am using "/dev/&lt;SPAN&gt;ttymxc1" for UART communication&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;int set_interface_attribs(int fd, int speed)&lt;BR /&gt;{&lt;BR /&gt; struct termios tty;&lt;BR /&gt; if(tcgetattr(fd, &amp;amp;tty) &amp;lt; 0){&lt;BR /&gt; printf("Error from tcgetattr: %s\n",strerror(errno));&lt;BR /&gt; return -1;&lt;BR /&gt; }&lt;BR /&gt; cfsetospeed (&amp;amp;tty, speed);&lt;BR /&gt; cfsetispeed (&amp;amp;tty, speed);&lt;BR /&gt; tty.c_cflag &amp;amp;= ~PARENB;&lt;BR /&gt; tty.c_cflag &amp;amp;= ~CSTOPB;&lt;BR /&gt; tty.c_cflag &amp;amp;= ~CSIZE;&lt;BR /&gt; tty.c_cflag |= CS8;&lt;/P&gt;&lt;P&gt;tty.c_cflag &amp;amp;= ~CRTSCTS;&lt;BR /&gt; /* fetch bytes as they become available */&lt;BR /&gt; tty.c_cc[VMIN] = 1;&lt;BR /&gt; tty.c_cc[VTIME] = 5;&lt;BR /&gt; tty.c_cflag |= CREAD | CLOCAL;&lt;BR /&gt; cfmakeraw(&amp;amp;tty);&lt;/P&gt;&lt;P&gt;tcflush(fd, TCIFLUSH);&lt;BR /&gt; if (tcsetattr(fd, TCSANOW, &amp;amp;tty) != 0)&lt;BR /&gt; {&lt;BR /&gt; return -1;&lt;BR /&gt; }&lt;BR /&gt; return 0;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;int main(int argc, char* argv[])&lt;BR /&gt;{&lt;BR /&gt; char *port1 = "/dev/ttymxc1";&lt;BR /&gt; int out = open("log.txt", O_RDWR | O_CREAT | O_APPEND, 0600);&lt;BR /&gt; signal(SIGTTOU, sig_ttou);&lt;/P&gt;&lt;P&gt;printf("read/write from %s\n", port1);&lt;BR /&gt; int fd = open(port1, O_RDWR | O_NOCTTY | O_SYNC);&lt;BR /&gt; if(fd &amp;lt; 0)&lt;BR /&gt; {&lt;BR /&gt; return -1;&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;set_interface_attribs(fd, B115200);&lt;BR /&gt; int rdlen;&lt;BR /&gt; do {&lt;BR /&gt; unsigned char buf[5];&lt;BR /&gt; rdlen = read(fd, buf, 1);&lt;BR /&gt; if(rdlen &amp;gt; 0)&lt;BR /&gt; {&lt;BR /&gt; unsigned char *p;&lt;BR /&gt; for(p=buf; rdlen-- &amp;gt; 0; p++)&lt;BR /&gt; {&lt;BR /&gt; printf("0x%x",*p);&lt;BR /&gt; }&lt;BR /&gt; }&lt;BR /&gt; }while(1);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I copy the app the&amp;nbsp;rootfs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;./readSerial &amp;amp;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;James&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jun 2020 23:11:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX8M-mini/m-p/1069944#M157162</guid>
      <dc:creator>jander2355</dc:creator>
      <dc:date>2020-06-19T23:11:06Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX8M mini</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX8M-mini/m-p/1069945#M157163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/jander2355@gmail.com"&gt;jander2355@gmail.com&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; You may try to run UART tests in /unit_tests/UART/ of the Linux demo image.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;./autorun-mxc_uart.sh&lt;BR /&gt;./mxc_uart_stress_test.out /dev/ttymxc#&lt;BR /&gt;./mxc_uart_test.out /dev/ttymxc#&lt;BR /&gt;./mxc_uart_xmit_test.out /dev/ttymxc#&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://source.codeaurora.org/external/imx/imx-test" title="https://source.codeaurora.org/external/imx/imx-test"&gt;imx-test - i.MX Driver Test Application Software&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://source.codeaurora.org/external/imx/imx-test/tree/test/mxc_uart_test?h=lf-5.4.y" title="https://source.codeaurora.org/external/imx/imx-test/tree/test/mxc_uart_test?h=lf-5.4.y"&gt;mxc_uart_test\test - imx-test - i.MX Driver Test Application Software&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Yuri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2020 07:31:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX8M-mini/m-p/1069945#M157163</guid>
      <dc:creator>Yuri</dc:creator>
      <dc:date>2020-06-25T07:31:54Z</dc:date>
    </item>
  </channel>
</rss>

