<?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>S32Gのトピック回复： How S32G3 Linux BSP 35 enable ttyLF1</title>
    <link>https://community.nxp.com/t5/S32G/How-S32G3-Linux-BSP-35-enable-ttyLF1/m-p/2070539#M13099</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/236748"&gt;@GG0712&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;You can find that information at the &lt;STRONG&gt;BSP 42 User Manual&lt;/STRONG&gt; at chapter&amp;nbsp;&lt;STRONG&gt;27.5 Changing UART baud rate&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="carlos_o_0-1743196707967.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/330333i448A2E384867E1B8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="carlos_o_0-1743196707967.png" alt="carlos_o_0-1743196707967.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="carlos_o_1-1743196768388.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/330334iD9359CBD31C48AA3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="carlos_o_1-1743196768388.png" alt="carlos_o_1-1743196768388.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="carlos_o_2-1743197668929.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/330335iD6AB05909B231851/image-size/medium?v=v2&amp;amp;px=400" role="button" title="carlos_o_2-1743197668929.png" alt="carlos_o_2-1743197668929.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 28 Mar 2025 21:36:11 GMT</pubDate>
    <dc:creator>carlos_o</dc:creator>
    <dc:date>2025-03-28T21:36:11Z</dc:date>
    <item>
      <title>How S32G3 Linux BSP 35 enable ttyLF1</title>
      <link>https://community.nxp.com/t5/S32G/How-S32G3-Linux-BSP-35-enable-ttyLF1/m-p/2069570#M13081</link>
      <description>&lt;P&gt;Hi NXP team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I referenced S32G399ardb3 and designed out custom board and use Linux BSP 35.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Our &lt;FONT color="#FF0000"&gt;S32G3&lt;/FONT&gt; customized board &lt;FONT color="#FF0000"&gt;can not receive UART data&lt;/FONT&gt; from PC,but PC can received UART data from S32G3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do we know what function PINMUX FUNC X represents in device tree?&lt;/P&gt;&lt;P&gt;If we enable UART2 &lt;SPAN&gt;how should PINMUX FUNC X be set?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is our device tree (I follow BSP 43 to modify)&lt;/P&gt;&lt;PRE&gt;uart1_pins: uart1_pins {
	uart1_pins_grp0 {
		pinmux = &amp;lt;S32CC_PINMUX(40, &lt;FONT color="#FF0000"&gt;FUNC2&lt;/FONT&gt;)&amp;gt;;	// PC_08
		output-enable;
		slew-rate = &amp;lt;S32CC_GPIO_SLEW_50MHZ&amp;gt;;
	};

	uart1_pins_grp1 {
		pinmux = &amp;lt;S32CC_PINMUX(36, &lt;FONT color="#FF0000"&gt;FUNC0&lt;/FONT&gt;)&amp;gt;;	// PC_04
		input-enable;
		slew-rate = &amp;lt;S32CC_GPIO_SLEW_50MHZ&amp;gt;;
	};

	uart1_pins_grp2 {
		pinmux = &amp;lt;S32CC_PINMUX(736, &lt;FONT color="#FF0000"&gt;FUNC2&lt;/FONT&gt;)&amp;gt;;
	};
};&lt;BR /&gt;
&amp;amp;uart1 {
	pinctrl-0 = &amp;lt;&amp;amp;uart1_pins&amp;gt;;
	pinctrl-names = "default";
	status = "okay";
};&lt;/PRE&gt;&lt;P&gt;I use command in S32G3 to send data&lt;/P&gt;&lt;PRE&gt;echo "Test" &amp;gt; /dev/ttyLF1&lt;/PRE&gt;&lt;P&gt;My PC can use command to&amp;nbsp;received data&lt;/P&gt;&lt;PRE&gt;cat /dev/ttyUSB1&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 27 Mar 2025 15:13:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/How-S32G3-Linux-BSP-35-enable-ttyLF1/m-p/2069570#M13081</guid>
      <dc:creator>GG0712</dc:creator>
      <dc:date>2025-03-27T15:13:03Z</dc:date>
    </item>
    <item>
      <title>回复： How S32G3 Linux BSP 35 enable ttyLF1</title>
      <link>https://community.nxp.com/t5/S32G/How-S32G3-Linux-BSP-35-enable-ttyLF1/m-p/2069620#M13082</link>
      <description>&lt;P&gt;Hi NXP team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found these issue in &lt;FONT color="#FF0000"&gt;S32G3_IOMUX 2&lt;/FONT&gt;.&lt;FONT color="#FF0000"&gt;xlsx&lt;/FONT&gt; file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PC_04 PINMUX function "LIN Receive Data" SSS is 0000_0100, so it should be FUNC4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;uart1_pins_grp2 {
	pinmux = &amp;lt;S32CC_PINMUX(736, &lt;FONT color="#FF0000"&gt;&lt;FONT color="#000000"&gt;FUNC&lt;/FONT&gt;4&lt;/FONT&gt;)&amp;gt;;
};&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 27 Mar 2025 16:15:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/How-S32G3-Linux-BSP-35-enable-ttyLF1/m-p/2069620#M13082</guid>
      <dc:creator>GG0712</dc:creator>
      <dc:date>2025-03-27T16:15:45Z</dc:date>
    </item>
    <item>
      <title>回复： How S32G3 Linux BSP 35 enable ttyLF1</title>
      <link>https://community.nxp.com/t5/S32G/How-S32G3-Linux-BSP-35-enable-ttyLF1/m-p/2069682#M13084</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/236748"&gt;@GG0712&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;As you say, the FUNCX is described at the&amp;nbsp;S32G3_IOMUX 2.xlsx file attached at the Reference Manual (it needs to be open with Acrobat Reader to open the attached files).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After changing this setting, is the UART working correctly?&lt;/P&gt;
&lt;P&gt;Let me know if you face any other issue with this.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Mar 2025 18:25:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/How-S32G3-Linux-BSP-35-enable-ttyLF1/m-p/2069682#M13084</guid>
      <dc:creator>carlos_o</dc:creator>
      <dc:date>2025-03-27T18:25:25Z</dc:date>
    </item>
    <item>
      <title>回复： How S32G3 Linux BSP 35 enable ttyLF1</title>
      <link>https://community.nxp.com/t5/S32G/How-S32G3-Linux-BSP-35-enable-ttyLF1/m-p/2070153#M13095</link>
      <description>&lt;P&gt;Hi NXP team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently working correctly.&lt;/P&gt;&lt;P&gt;But how do I set the baud rate without using stty comand?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: ttyLF1 is internal UART instead of serial console&lt;/P&gt;</description>
      <pubDate>Fri, 28 Mar 2025 08:29:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/How-S32G3-Linux-BSP-35-enable-ttyLF1/m-p/2070153#M13095</guid>
      <dc:creator>GG0712</dc:creator>
      <dc:date>2025-03-28T08:29:55Z</dc:date>
    </item>
    <item>
      <title>回复： How S32G3 Linux BSP 35 enable ttyLF1</title>
      <link>https://community.nxp.com/t5/S32G/How-S32G3-Linux-BSP-35-enable-ttyLF1/m-p/2070539#M13099</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/236748"&gt;@GG0712&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;You can find that information at the &lt;STRONG&gt;BSP 42 User Manual&lt;/STRONG&gt; at chapter&amp;nbsp;&lt;STRONG&gt;27.5 Changing UART baud rate&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="carlos_o_0-1743196707967.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/330333i448A2E384867E1B8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="carlos_o_0-1743196707967.png" alt="carlos_o_0-1743196707967.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="carlos_o_1-1743196768388.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/330334iD9359CBD31C48AA3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="carlos_o_1-1743196768388.png" alt="carlos_o_1-1743196768388.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="carlos_o_2-1743197668929.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/330335iD6AB05909B231851/image-size/medium?v=v2&amp;amp;px=400" role="button" title="carlos_o_2-1743197668929.png" alt="carlos_o_2-1743197668929.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Mar 2025 21:36:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/How-S32G3-Linux-BSP-35-enable-ttyLF1/m-p/2070539#M13099</guid>
      <dc:creator>carlos_o</dc:creator>
      <dc:date>2025-03-28T21:36:11Z</dc:date>
    </item>
    <item>
      <title>回复： How S32G3 Linux BSP 35 enable ttyLF1</title>
      <link>https://community.nxp.com/t5/S32G/How-S32G3-Linux-BSP-35-enable-ttyLF1/m-p/2070849#M13111</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/241501"&gt;@carlos_o&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It looks like same as BSP 43 User Manual&amp;nbsp;at chapter 29.6&lt;/P&gt;&lt;P&gt;My understanding is that this is to change the serial console and the baud rate of the default tty during the startup phase.&lt;/P&gt;&lt;P&gt;But my requirement is that the baud rate of ttyLF0 is 115200 and still serves as the serial console. The baud rate of ttyLF1 needs to be changed from the default 9600 to other values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 31 Mar 2025 06:31:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/How-S32G3-Linux-BSP-35-enable-ttyLF1/m-p/2070849#M13111</guid>
      <dc:creator>GG0712</dc:creator>
      <dc:date>2025-03-31T06:31:55Z</dc:date>
    </item>
    <item>
      <title>回复： How S32G3 Linux BSP 35 enable ttyLF1</title>
      <link>https://community.nxp.com/t5/S32G/How-S32G3-Linux-BSP-35-enable-ttyLF1/m-p/2071473#M13117</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/236748"&gt;@GG0712&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;You are right the documentation I shared is to change the baudrate for the UART used as console.&lt;/P&gt;
&lt;P&gt;In this case the recommendation is to use the stty command to change to another standard baudrate. This because the serial driver used for the UART is the provided with linux.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Mar 2025 23:18:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/How-S32G3-Linux-BSP-35-enable-ttyLF1/m-p/2071473#M13117</guid>
      <dc:creator>carlos_o</dc:creator>
      <dc:date>2025-03-31T23:18:59Z</dc:date>
    </item>
    <item>
      <title>回复： How S32G3 Linux BSP 35 enable ttyLF1</title>
      <link>https://community.nxp.com/t5/S32G/How-S32G3-Linux-BSP-35-enable-ttyLF1/m-p/2071641#M13119</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/241501"&gt;@carlos_o&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I solved this issue and thanks for your support.&lt;/P&gt;&lt;P&gt;I modify&amp;nbsp;Linux serial driver in "drivers/tty/serial/serial_core.c"&lt;/P&gt;&lt;PRE&gt;normal-&amp;gt;init_termios.c_cflag = &lt;FONT color="#FF0000"&gt;B921600&lt;/FONT&gt; | CS8 | CREAD | HUPCL | CLOCAL;&lt;BR /&gt;normal-&amp;gt;init_termios.c_ispeed = normal-&amp;gt;init_termios.c_ospeed = &lt;FONT color="#FF0000"&gt;921600&lt;/FONT&gt;;&lt;/PRE&gt;&lt;P&gt;Now, the ttyLF1 and ttyLF2 default baud rate is 921600 and serial console baud rate is 115200&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is my test log (I jump the ttyLF2 and connect it to USB to TTL dongle)&lt;/P&gt;&lt;PRE&gt;root@s32g399ardb3:~# stty -F /dev/ttyLF1&lt;BR /&gt;speed 921600 baud; line = 0;&lt;BR /&gt;-brkint -imaxbel&lt;BR /&gt;root@s32g399ardb3:~# echo "test" &amp;gt; /dev/ttyLF2&lt;BR /&gt;root@s32g399ardb3:~#&lt;BR /&gt;root@s32g399ardb3:~# cat /dev/ttyLF2&lt;BR /&gt;PC to GW&lt;/PRE&gt;&lt;P&gt;PC&lt;/P&gt;&lt;PRE&gt;PC:~$ stty -F /dev/ttyUSB1 921600 -opost -onlcr -isig -icanon -iexten -echo -echoe -echok -echoctl -echoke -icrnl -inlcr&lt;BR /&gt;PC:~$&lt;BR /&gt;PC:~$ cat /dev/ttyUSB1&lt;BR /&gt;test&lt;BR /&gt;^C&lt;BR /&gt;PC:~$&lt;BR /&gt;PC:~$ echo "PC to GW" &amp;gt; /dev/ttyUSB1&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 01 Apr 2025 04:45:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/How-S32G3-Linux-BSP-35-enable-ttyLF1/m-p/2071641#M13119</guid>
      <dc:creator>GG0712</dc:creator>
      <dc:date>2025-04-01T04:45:55Z</dc:date>
    </item>
    <item>
      <title>回复： How S32G3 Linux BSP 35 enable ttyLF1</title>
      <link>https://community.nxp.com/t5/S32G/How-S32G3-Linux-BSP-35-enable-ttyLF1/m-p/2072358#M13123</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/236748"&gt;@GG0712&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Thanks for share your solution.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Apr 2025 20:51:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/How-S32G3-Linux-BSP-35-enable-ttyLF1/m-p/2072358#M13123</guid>
      <dc:creator>carlos_o</dc:creator>
      <dc:date>2025-04-01T20:51:11Z</dc:date>
    </item>
  </channel>
</rss>

