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.

AM3352: enable the DEBUG_UART in U-Boot

Part Number: AM3352

Hello,

In sdk-04.03.00.05 (26 Mar 2018),How can I enable the DEBUG_UART functionality in U-Boot ?
I had configured it using the "make menuconfig" command as follows:


Device Drivers → Serial drivers
[*] Enable an early debug UART for debugging
Select which UART will provide the debug UART (ns16550) --->
(0x44e09000) Base address of UART
(48000000) UART input clock
(2) UART register shift
[ ] Enable board-specific debug UART init
[*] Show a message when the debug UART starts up

[*] NS16550 UART or compatible

The .config configuration is as follows:
CONFIG_DEBUG_UART=y
# CONFIG_DEBUG_UART_ALTERA_JTAGUART is not set
# CONFIG_DEBUG_UART_ALTERA_UART is not set
# CONFIG_DEBUG_UART_ATMEL is not set
CONFIG_DEBUG_UART_NS16550=y
# CONFIG_DEBUG_UART_S5P is not set
# CONFIG_DEBUG_UART_UARTLITE is not set
# CONFIG_DEBUG_UART_ARM_DCC is not set
# CONFIG_DEBUG_MVEBU_A3700_UART is not set
# CONFIG_DEBUG_UART_ZYNQ is not set
# CONFIG_DEBUG_UART_PL010 is not set
# CONFIG_DEBUG_UART_PL011 is not set
CONFIG_DEBUG_UART_BASE=0x44e09000
CONFIG_DEBUG_UART_CLOCK=48000000
CONFIG_DEBUG_UART_SHIFT=2
# CONFIG_DEBUG_UART_BOARD_INIT is not set
CONFIG_DEBUG_UART_ANNOUNCE=y
# CONFIG_DEBUG_UART_SKIP_INIT is not set
# CONFIG_ALTERA_JTAG_UART is not set
# CONFIG_ALTERA_UART is not set
# CONFIG_ATMEL_USART is not set
# CONFIG_FSL_LPUART is not set
# CONFIG_MVEBU_A3700_UART is not set
CONFIG_SYS_NS16550=y

With the above configuration, after powering on, it only prints "CCCCCCCCC" and then stops.

However, when DEBUG_UART is disabled, it can boot up normally.

What could be causing this? And How can I enable DEBUG_UART functionality in U-Boot?

Best regards,
zw

  • Hello,
    It it hard for TI to support sdk-04.03.00.05.
    Here are general pointers on your inquiry for your reference.
    software-dl.ti.com/.../U-Boot.html
    * Customize console UART settings
    * Setup early (debug) UART
    Best,
    -Hong

  • Hello Hong,

    As I mentioned in the previous post,

    The .config configuration is as follows:
    CONFIG_DEBUG_UART=y
    # CONFIG_DEBUG_UART_ALTERA_JTAGUART is not set
    # CONFIG_DEBUG_UART_ALTERA_UART is not set
    # CONFIG_DEBUG_UART_ATMEL is not set
    CONFIG_DEBUG_UART_NS16550=y
    # CONFIG_DEBUG_UART_S5P is not set
    # CONFIG_DEBUG_UART_UARTLITE is not set
    # CONFIG_DEBUG_UART_ARM_DCC is not set
    # CONFIG_DEBUG_MVEBU_A3700_UART is not set
    # CONFIG_DEBUG_UART_ZYNQ is not set
    # CONFIG_DEBUG_UART_PL010 is not set
    # CONFIG_DEBUG_UART_PL011 is not set
    CONFIG_DEBUG_UART_BASE=0x44e09000
    CONFIG_DEBUG_UART_CLOCK=48000000
    CONFIG_DEBUG_UART_SHIFT=2
    # CONFIG_DEBUG_UART_BOARD_INIT is not set
    CONFIG_DEBUG_UART_ANNOUNCE=y
    # CONFIG_DEBUG_UART_SKIP_INIT is not set
    # CONFIG_ALTERA_JTAG_UART is not set
    # CONFIG_ALTERA_UART is not set
    # CONFIG_ATMEL_USART is not set
    # CONFIG_FSL_LPUART is not set
    # CONFIG_MVEBU_A3700_UART is not set
    CONFIG_SYS_NS16550=y

    I couldn't find the configuration "CONFIG_DEBUG_UART_OMAP" in both "menuconfig" and the ".config" file. Is it ok if I manually add "CONFIG_DEBUG_UART_OMAP=y" to the ".config" file?

    I rechecked the U-Boot source code, and there's no code related to CONFIG_DEBUG_UART_OMAP, but there is code related to CONFIG_DEBUG_UART_NS16550. So why am I not getting any terminal output when I configure CONFIG_DEBUG_UART_NS16550=y?

    Best regards,
    zw

  • Hello,
    it is possible to re-configure .config as needed using Kconfig tool.
    Refer to the link in my last reply
    software-dl.ti.com/.../U-Boot.html
    * De-activate possibly unnecessary functionality as needed through U-Boot menu configuration
    Best,
    -Hong