如题,之前一直用的是uart2,想再启用uart0,然后在fex文件配置之后有ttys2,但是无法读写
信息如下
[ 1.015740] sw_uart_get_devinfo()1503 - uart0 has no uart_regulator.
[ 1.016085] sw_uart_get_devinfo()1503 - uart2 has no uart_regulator.
[ 1.017014] uart0: ttyS2 at MMIO 0x1c28000 (irq = 32) is a SUNXI
[ 1.017657] uart2: ttyS0 at MMIO 0x1c28800 (irq = 34) is a SUNXI
[ 1.017997] sw_uart_pm()890 - uart2 clk is already enable
[ 1.018194] sw_console_setup()1233 - console setup baud 115200 parity n bits 8, flow n
[ 1.115315] console [ttyS0] enabled
fex配置
[uart0]
uart_used = 1
uart_port = 2
uart_type = 2
;uart_tx = port:PB08<3><1><default><default>
;uart_rx = port:PB09<3><1><default><default>
;card print
uart_tx = port:PF02<3><1><default><default>
uart_rx = port:PF04<3><1><default><default>
[uart1]
uart_used = 0
uart_port = 0
uart_type = 2
uart_tx = port:PE21<4><1><default><default>
uart_rx = port:PE22<4><1><default><default>
[uart2]
uart_used = 1
uart_port = 0
uart_type = 2
uart_tx = port:PB00<2><1><default><default>
uart_rx = port:PB01<2><1><default><default>
最近编辑记录 太一酱鸭 (2019-11-27 09:56:26)
离线
发现gpio复用,注释了mmc的配置之后串口发送接收都是乱码
离线
终端不能输入命令?
修改成9600之后试了下echo "test"> /devttyS2正常,晕哥怎么把这个串口波特率改成115200啊
离线
你在哪里改成9600的?
我就是启用这个串口,他默认就是9600
离线
离线