This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] AM5728:更改调试 UART

Guru**** 2587365 points
Other Parts Discussed in Thread: AM5728

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/594048/am5728-debug-uart-change

器件型号:AM5728

我使用的是 IDK AM5728板。 默认情况下,它将 UART3用于控制台。

我尝试通过在 u-boot 中使用 VIN2A_D1/PR1_UART0_TX、VIN2A_D0/PR1_UART0_RXD 将控制台切换到 UART0。

我应该怎么做?

------------------------------------------------------
我一直在 u-boot 中设置 UART0 =>

[包含/配置/ am57xx_evm.h]
#define CONSOLEDEV "ttyO0"

[ board/ti/am57xx/mux_data.h]
const struct pad_conf_entry core_padconf_array_ess_am572x_idk[]={
(笑声)
-{UART2_CTSN、(M2 | PIN_INPUT)}、  /* uart2_CTSN.uart3_RXD *
-{UART2_RTSN、(M1 | PIN_OUTPUT)}、/* uart2_rtsn.uart3_TXD *
{VIN2A_D0、(M11 | PIN_INPUT)}、       /* vin2a_d0.pr1_uart0_RxD */(已设置。)
{VIN2A_D1、(M11 | PIN_OUTPUT)}、   // vin2a_D1.pr1_uart0_TXD */(已设置。)
(笑声)

const struct pad_conf_entry earle_padconf[]={
(笑声)
-{UART2_CTSN、(M2 | PIN_INPUT_SLEW)}、/* uart2_CTSN.uart3_RxD *
-{UART2_RTSN、(M1 | PIN_INPUT_SLEW)}、/* uart2_rtsn.uart3_TXD *

+{VIN2A_D0、(M11 | PIN_INPUT_SLEW)}、/* vin2a_d0.pr1_uart0_RxD */
+{VIN2A_D1、(M11 | PIN_INPUT_SLEW)}、/* vin2a_D1.pr1_uart0_TXD *
(笑声)

[u-boot/arch/arm/dts/am572x-idk.dtsi]
选择{
- stdout-path = uart3;
+ stdout-path = uart1;
};

[u-boot/arch/arm/dts/am57xx-idk-common.dtsi]
uart1{(&U)
状态="正常";

uart1{(&U)
状态="正常";
-中断扩展=<&crossbar_MPU GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH &dra7_PMX_CORE 0x248>;
+中断扩展=<&crossbar_MPU GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH &dra7_PMX_CORE 0x168>;
};

};
----------------------------------------------------------------

但控制台未转移到 UART0。

我应该怎么做?

请帮助。