我在 T113-PRO 板上,想把修改调试串口3的PB06,PB07,改为串口3的PE08,PE09. 我下载了buildroot_100ask_t113-pro 源码。我修改了buildroot_100ask_t113-pro/br2t113pro/board/100ask/dragon下修文件:sys_config.fex
修改后信息如下:
[uart_para]
uart_debug_port = 3
uart_debug_tx = port:PE08<5><1>
uart_debug_rx = port:PE09<5><1>
编译 spi nand最小系统镜像
book@100ask:~/buildroot_100ask_t113-pro/buildroot$ make BR2_EXTERNAL="…/br2t113pro …/br2lvgl" 100ask_t113-pro_spinand_core_defconfig
book@100ask:~/buildroot_100ask_t113-pro/buildroot$ make V=1
生成:buildroot_linux_nand_uart3文件。通过PhoenixSuit工具,成功烧写到T113板上。但板子重启用。串口调试数据还是送到 PB06,PB07对应的串口3,没用转到PE08,PE09的串口3.
通过以上编译之后,产生了设备树文件:
book@100ask:~/buildroot_100ask_t113-pro/buildroot/dl/linux/git/scripts/dtc/include-prefixes/arm/sun8iw20p1-t113-100ask-t113-pro.dts](mailto:book@100ask:~/buildroot_100ask_t113-pro/buildroot/dl/linux/git/scripts/dtc/include-prefixes/arm/sun8iw20p1-t113-100ask-t113-pro.dts
我修改设备树文件串口信息:
uart3_pins_a: uart3_pins@0 { /* For t113_evb */
//pins = “PG8”, “PG9”;
// pins = “PB6”, “PB7”;
pins = “PE8”, “PE9”;
function = “uart3”;
drive-strength = <10>;
bias-pull-up;
};
uart3_pins_b: uart3_pins@1 { /* For t113_evb */
// pins = "PB6", "PB7";
pins = "PE8", "PE9";
function = "gpio_in";
};
之后,重新编译 spi nand最小系统镜像。再烧写到T113板上。但板子启动后,串口数据还是送到PB06,PB07的串口3上。
请老师们指点一下,这是什么原因?困扰几天了,一直没有解决。谢谢!