<?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のトピックK22FN512 and MQX UART (MUX and baudrate)</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/K22FN512-and-MQX-UART-MUX-and-baudrate/m-p/403073#M13507</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm tryng to create a new project on a custom board (even on a FRDMK22F512) and MQX (I don't want to use KDS).&lt;/P&gt;&lt;P&gt;I had a lot of problem to porting librairies even with the cloning tool and problems to program / debug (because the Target Type is not present under CW : &lt;A href="https://community.nxp.com/message/570077"&gt;Re: MQ vs KDS&lt;/A&gt; ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, after several lost days, I can run some little pieces of code :smileywink:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But on the UART side, I had found, I think, 2 bugs in MXQ : &lt;/P&gt;&lt;P&gt;1. MUX&lt;/P&gt;&lt;P&gt;2. Baud rate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;1. MUX :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;In the init_gpio.c files (from the TWRK22F120M) :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d;"&gt;TWRK22F120M :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;A14 - A15 : OK UART0&lt;/P&gt;&lt;P&gt;E0 - E1 (second error : MUX disable : 3 - 4...) : OK UART1&lt;/P&gt;&lt;P&gt;E16 - E17 : These pins are not present on none package : &lt;SPAN style="line-height: 1.5;"&gt;it's PTB2 and PTB3, not PORTE for UART2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;2. BAUD RATE :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I tried UART0 at 115200 in the user_config.h file. I had 172 KBd in Tx pin...&lt;/P&gt;&lt;P&gt;Even with the IOCTL function, same BR : &lt;/P&gt;&lt;P&gt;_mqx_uint baud ;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&amp;nbsp; baud = 19200 ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; ioctl(uart0_handle, IO_IOCTL_SERIAL_SET_BAUD, &amp;amp;baud) ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By writing manually the registers, I can have 115200Bds :&lt;/P&gt;&lt;P&gt;UART_MemMapPtr&amp;nbsp;&amp;nbsp; uart = UART0_BASE_PTR;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&amp;nbsp; uart-&amp;gt;BDH = 0 ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; uart-&amp;gt;BDL = 65 ; // 115200&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will continue just few days to find bugs, after, I'll give up (K22_100 is written as supported by MQX : &lt;A href="http://www.freescale.com/products/arm-processors/kinetis-cortex-m/k-series/k7x-glcd-mcus/freescale-mqx-software-solutions:MQX#supportDevicesTree" title="http://www.freescale.com/products/arm-processors/kinetis-cortex-m/k-series/k7x-glcd-mcus/freescale-mqx-software-solutions:MQX#supportDevicesTree"&gt;Freescale MQX™ Software Solutions|Freescale&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Sep 2015 17:52:31 GMT</pubDate>
    <dc:creator>yb</dc:creator>
    <dc:date>2015-09-23T17:52:31Z</dc:date>
    <item>
      <title>K22FN512 and MQX UART (MUX and baudrate)</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/K22FN512-and-MQX-UART-MUX-and-baudrate/m-p/403073#M13507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm tryng to create a new project on a custom board (even on a FRDMK22F512) and MQX (I don't want to use KDS).&lt;/P&gt;&lt;P&gt;I had a lot of problem to porting librairies even with the cloning tool and problems to program / debug (because the Target Type is not present under CW : &lt;A href="https://community.nxp.com/message/570077"&gt;Re: MQ vs KDS&lt;/A&gt; ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, after several lost days, I can run some little pieces of code :smileywink:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But on the UART side, I had found, I think, 2 bugs in MXQ : &lt;/P&gt;&lt;P&gt;1. MUX&lt;/P&gt;&lt;P&gt;2. Baud rate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;1. MUX :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;In the init_gpio.c files (from the TWRK22F120M) :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d;"&gt;TWRK22F120M :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;A14 - A15 : OK UART0&lt;/P&gt;&lt;P&gt;E0 - E1 (second error : MUX disable : 3 - 4...) : OK UART1&lt;/P&gt;&lt;P&gt;E16 - E17 : These pins are not present on none package : &lt;SPAN style="line-height: 1.5;"&gt;it's PTB2 and PTB3, not PORTE for UART2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;2. BAUD RATE :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I tried UART0 at 115200 in the user_config.h file. I had 172 KBd in Tx pin...&lt;/P&gt;&lt;P&gt;Even with the IOCTL function, same BR : &lt;/P&gt;&lt;P&gt;_mqx_uint baud ;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&amp;nbsp; baud = 19200 ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; ioctl(uart0_handle, IO_IOCTL_SERIAL_SET_BAUD, &amp;amp;baud) ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By writing manually the registers, I can have 115200Bds :&lt;/P&gt;&lt;P&gt;UART_MemMapPtr&amp;nbsp;&amp;nbsp; uart = UART0_BASE_PTR;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&amp;nbsp; uart-&amp;gt;BDH = 0 ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; uart-&amp;gt;BDL = 65 ; // 115200&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will continue just few days to find bugs, after, I'll give up (K22_100 is written as supported by MQX : &lt;A href="http://www.freescale.com/products/arm-processors/kinetis-cortex-m/k-series/k7x-glcd-mcus/freescale-mqx-software-solutions:MQX#supportDevicesTree" title="http://www.freescale.com/products/arm-processors/kinetis-cortex-m/k-series/k7x-glcd-mcus/freescale-mqx-software-solutions:MQX#supportDevicesTree"&gt;Freescale MQX™ Software Solutions|Freescale&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2015 17:52:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/K22FN512-and-MQX-UART-MUX-and-baudrate/m-p/403073#M13507</guid>
      <dc:creator>yb</dc:creator>
      <dc:date>2015-09-23T17:52:31Z</dc:date>
    </item>
  </channel>
</rss>

