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.

Is it possible to use UART0 for UBL?

Hi everybody,

We are using dm6446 and having our a producted board , We want to UART2 for debug console in PC instead of UART0. So we modified UBL source codes for using UART2 such as the following. But we cannot see any siganl on UART_TX2.

 

 

#define DEVICE_PINMUX_UART0_MASK        (0x00000004) // (0x00000001) [0x3:UART2]

#define DEVICE_PINMUX_UART0_EN          (0x00000004) // (0x00000001) [0x3:UART2]

// #define UART0 ((DEVICE_UartRegs*) 0x01C20000)
#define UART0 ((DEVICE_UartRegs*) 0x01C20800) // UART2

 

1. Is it possible to use UART2 for debug console in PC just as changing PINMUX1?

2. Otherwise neccessarily, UART0 is used for UBL or U-boot?

Thank you and BR.

  • Hi,

    If you are using our EVM, this is not supported.

    UART2 signals are not routed to the connector, and I don't think UBL is the one that initilizes UART (you do need to initiaze UART before usign it).

     

  • HI, Paul.Yin

    Thank you for your reply.

    We had tested UART2 on EVM. It was OK, And we have our custom board. And custom board has UART0 and UART2 connect.

    We had modified source within /DM644x_FlashAndBootUtils_1_50/DM644x/Common/include/device.h and had compiled within /DM644x_FlashAndBootUtils_1_50/DM644x/GNU/ubl such as 'make CROSSCOMPILE=arm_v5t_le-".

    Is it right how to compile and where is place to modify  source?

    Thank you and BR.

    Lee.

     

     

  • You might need to do the same update in the uboot files as well as the ubl ones. I am moving this to the linux team on how to compile them.

  • Hi Paul.Yin

    Thank you for your reply.

    We have completed to apply UART2. And, now we can complie UBL by CCS. But, we wonder whether it is possible to complie ubl by linux. Would you give us some information how to complie ubl by linux?

    BR.