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.

[FAQ] TDA4VM: How to enable/use wake-up domain UART for collecting EthFw debug logs? when we not have Main Domain UART on Board.

Part Number: TDA4VM


How to enable/use wake-up domain UART for collecting EthFw debug logs? when we not have Main Domain UART on Board.

  • When running EthFw with HLOS, we can get the EthFw Debug logs to HLOS using the trace command (using remoteproc), as EthFw will log the debug prints in trace buffers.

    Command to get the EthFw trace buffer logs to HLOS is as follows:
    # cat /sys/kernel/debug/remoteproc/remoteproc*/trace0

    If still required to use the wake-up domain UART for Ethfw debug logs, we need to make the following changes in EthFw and UART Driver in pdk.

    1. EthFw update to use wake-up domain UART:
    Update the UART Soc Domain and Instance as shown in the below, form “board_soc_evm.c” file in the EthFw directory.
    Ex: for J721E, the file name will be ” board_j721e_evm.c”.



    2. PDK UART driver update to allow using cross-domain UART.
    Comment “UART_socInit” as it will overwrite the UART Instance Base Address with Main Domain UART’s, as it will not allow use of cross-domain UART.



    After making the above changes, rebuild the EthFw application and use the latest binaries.
    Default Port will be configured for 115200 Baud rate, open wake-up UART, and check EthFw debug logs.

    Note:
    1. Ideally, it is not recommended to use cross-domain as SDK doesn’t support complete UART features in this cross-domain access like Interrupt mode is not supported.
    2. You can only use this for stdio functionality like debug logs and so on.
    3. Along with EthFw logs, you may observe the TIFS FW logs on the same UART (like firewall exceptions). It may conflict with the EthFw messages.

    Best Regards,
    Sudheer

  • Hi,

    Also, refer to patch for enabling MAIN UART from MCU1_0 application.
    Here, we have enabled MAIN UART2 from MCU1_0 example (ipc echo test).

    https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/791/0001_2D00_Enable_2D00_MAIN_2D00_UART2_2D00_in_2D00_ipc_5F00_echo_5F00_test_5F00_example_2D00_on_2D00_mcu1_5F00_0.patch

    Best Regards,
    Sudheer