<?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: Abour uart TX question</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/Abour-uart-TX-question/m-p/417559#M13902</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey David . I use MQX version is 4.0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;deivce is developed by myself. I did not use the development board that made by freescale .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use the Keil IDE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;project is a little big .I can not post all project maybe . I can post some .c file to u .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In addition, I found I change my baudrate to 19200 or 38400 . The problem never happened again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;:smileyhappy:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 May 2015 03:12:42 GMT</pubDate>
    <dc:creator>haoyuancai</dc:creator>
    <dc:date>2015-05-12T03:12:42Z</dc:date>
    <item>
      <title>Abour uart TX question</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Abour-uart-TX-question/m-p/417557#M13900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I am confuse recently. When I use uart to send my command and I use PC to receive data(PS: I have used converter to change TTL&amp;nbsp; voltage to RS232 voltage).Because this part code will be used many times in program(in a loop).the data is correct most of time. but there are still some error data inside . But I have checked&amp;nbsp; the data in the send buffer of my code is correct, But the data that I&amp;nbsp; received is error. who can help me ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; fwrite((pointer)Trans_buffer,sizeof(unsigned char),lenth,upload_dev);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; fflush(upload_dev);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ioctl( upload_dev, IO_IOCTL_SERIAL_WAIT_FOR_TC, NULL );&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use these three line code to send data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trans_buffer : the data in this buffer is always correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example of my data :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;77 10 80 00 00 77 12 80 00 00 77 14 80 00 00 77 16 80 00 00 77 18 80 00 00 77 1A 80 00 00&lt;/P&gt;&lt;P&gt;77 1C 80 00 00 77 1E 80 00 00 77 20 80 00 00 77 22 80 00 00 77 24 80 00 00 77 26 80 00 00&lt;/P&gt;&lt;P&gt;77 28 80 00 00 77 2A 80 00 00 77 2C 80 00 00 77 2E 80 00 00 77 30 80 00 00 &lt;SPAN style="color: #e23d39;"&gt;77 80 32 00 00 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;77 34 80 00 00 77 36 80 00 00 77 38 80 00 00 77 3A 80 00 00 77 3C 80 00 00 77 3E 80 00 00&lt;/P&gt;&lt;P&gt;77 40 80 00 00 77 42 80 00 00 77 44 80 00 00 77 46 80 00 00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;The red data is error, we can find the second data and the third data exchanged their place.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;I dont know how to solve this problem.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;the data send to PC through a voltage converter and Serial port to USB port line&amp;nbsp;&amp;nbsp;&amp;nbsp; ( PIN:TX RX GND )&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 May 2015 09:10:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Abour-uart-TX-question/m-p/417557#M13900</guid>
      <dc:creator>haoyuancai</dc:creator>
      <dc:date>2015-05-10T09:10:08Z</dc:date>
    </item>
    <item>
      <title>Re: Abour uart TX question</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Abour-uart-TX-question/m-p/417558#M13901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Haoyuan,&lt;/P&gt;&lt;P&gt;Could some other task be overwriting the buffer from time to time?&lt;/P&gt;&lt;P&gt;What MQX version?&amp;nbsp; What device and/or tower and/or freedom hardware are you using?&lt;/P&gt;&lt;P&gt;What development tools?&lt;/P&gt;&lt;P&gt;Can you post your project?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2015 18:14:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Abour-uart-TX-question/m-p/417558#M13901</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2015-05-11T18:14:17Z</dc:date>
    </item>
    <item>
      <title>Re: Abour uart TX question</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Abour-uart-TX-question/m-p/417559#M13902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey David . I use MQX version is 4.0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;deivce is developed by myself. I did not use the development board that made by freescale .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use the Keil IDE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;project is a little big .I can not post all project maybe . I can post some .c file to u .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In addition, I found I change my baudrate to 19200 or 38400 . The problem never happened again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;:smileyhappy:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2015 03:12:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Abour-uart-TX-question/m-p/417559#M13902</guid>
      <dc:creator>haoyuancai</dc:creator>
      <dc:date>2015-05-12T03:12:42Z</dc:date>
    </item>
    <item>
      <title>Re: Abour uart TX question</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Abour-uart-TX-question/m-p/417560#M13903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Haoyuan,&lt;/P&gt;&lt;P&gt;If the baud change fixes it....keep it :-).&lt;/P&gt;&lt;P&gt;With your custom board and software, have you changed the clock configuraiton?&amp;nbsp; Depending on the core/bus clock configuration maybe the 19200 baud had too much error and 38400 does not.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2015 15:52:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Abour-uart-TX-question/m-p/417560#M13903</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2015-05-12T15:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: Abour uart TX question</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Abour-uart-TX-question/m-p/417561#M13904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;David:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; But I still want to solve this problem . I find my macro definition of bus_clock_&amp;nbsp; is 48000000. But my external oscillator is 50Mhz. I am not sure if it will affect the stability of baud rate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;:smileyhappy:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2015 05:09:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Abour-uart-TX-question/m-p/417561#M13904</guid>
      <dc:creator>haoyuancai</dc:creator>
      <dc:date>2015-05-13T05:09:15Z</dc:date>
    </item>
    <item>
      <title>Re: Abour uart TX question</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Abour-uart-TX-question/m-p/417562#M13905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Haoyuan,&lt;/P&gt;&lt;P&gt;Please post your code/project so I may look at it.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2015 17:13:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Abour-uart-TX-question/m-p/417562#M13905</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2015-05-13T17:13:53Z</dc:date>
    </item>
  </channel>
</rss>

