您尚未登录。

楼主 # 2021-07-15 14:55:39

luott
会员
注册时间: 2019-10-22
已发帖子: 15
积分: 10.5

求助 F1C200s配置UART2只能发,不能收,linux内核版本5.2

串口0和串口1能正常工作

dts配置

&uart0 {
	pinctrl-names = "default";
	pinctrl-0 = <&uart0_pe_pins>;
	status = "okay";
};
&uart1 {
	pinctrl-names = "default";
	pinctrl-0 = <&uart1_pa_pins>;
	status = "okay";
};
&uart2 {
	pinctrl-names = "default";
	pinctrl-0 = <&uart2_pe_pins>;
	status = "okay";
};

dtsi配置

uart0_pe_pins: uart0-pe-pins {
        pins = "PE0", "PE1";
        function = "uart0";
};
uart1_pa_pins: uart1-pa-pins {
        pins = "PA2", "PA3";
        function = "uart1";
};
uart2_pe_pins: uart2-pe-pins {
        pins = "PE7", "PE8";
        function = "uart2";
};

启动日志

[    0.364037] printk: console [ttyS0] disabled
[    0.384360] 1c25000.serial: ttyS0 at MMIO 0x1c25000 (irq = 23, base_baud = 6250000) is a 16550A
[    0.775548] printk: console [ttyS0] enabled
[    0.780419] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pa not found, using dummy regulator
[    0.813538] 1c25400.serial: ttyS1 at MMIO 0x1c25400 (irq = 24, base_baud = 6250000) is a 16550A
[    0.844140] 1c25800.serial: ttyS2 at MMIO 0x1c25800 (irq = 25, base_baud = 6250000) is a 16550A

离线

楼主 #2 2021-07-15 15:14:54

luott
会员
注册时间: 2019-10-22
已发帖子: 15
积分: 10.5

Re: 求助 F1C200s配置UART2只能发,不能收,linux内核版本5.2

正准备换一块板子试一下

离线

楼主 #3 2021-07-15 15:22:47

luott
会员
注册时间: 2019-10-22
已发帖子: 15
积分: 10.5

Re: 求助 F1C200s配置UART2只能发,不能收,linux内核版本5.2

硬件问题换了块歪朵拉的tiny200就没问题

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn