SPRADG5 January   2024 DRA821U , DRA821U-Q1 , TDA4AL-Q1 , TDA4VH-Q1 , TDA4VL-Q1 , TDA4VM , TDA4VM-Q1

 

  1.   1
  2.   Abstract
  3.   Trademarks
  4. 1UART Introduction
    1. 1.1 Jacinto 7 UART Overview
    2. 1.2 Jacinto 7 UART Features
    3. 1.3 Jacinto 7 UART Functional Introduction
  5. 2UART Usage Overview
    1. 2.1 WKUP_UART0 Usage
    2. 2.2 MCU_UART0 Usage
    3. 2.3 MAIN_UARTx Usage
  6. 3Log Level Design on Software Module
  7. 4Change UART Instance
    1. 4.1 Change MAIN_UARTx for MAIN Domain
    2. 4.2 Set Standalone UART Port for DSP/MCU
  8. 5Summary
  9. 6References

WKUP_UART0 Usage

Jacinto 7 series processors use WKUP_UART0 to print DMSC (Device Management and Security Control) log, this log can be used to check if there is any error in the firewall or SYSFW (System Firmware). By default, the WKUP_UART0 log output is not sufficient, some additional steps are needed to obtain the full log. The steps are provided below in details.

  1. For SPL Boot:
    1. Enable the ENABLE_TRACE macro in the ti-processor-sdk-linux-xxxx-evm-0x_0x_00_xx/board-support/k3-image-gen-xxxxxxxx/soc/j7xxxx/evm/board-cfg.c
    2. Recompile board configure under Linux SDK home directory, $make sysfw-image
    3. Recompile tiboot3.bin, $make u-boot
    4. Copy tiboot3.bin and sysfw.itb to SD BOOT partition
    5. Boot up board, and copy the WUKUP_UART0 log (on the screen) to input_log.txt file
    6. There is a script parser sysfw_trace_parser.py in RTOS SDK
    7. ./sysfw_trace_parser.py -l input_log.txt -o output_log.txt
    GUID-B00629BE-C941-4BF7-885D-A4C211ACCB85-low.pngFigure 2-1 SPL Boot Board configure
  2. For SBL Boot:
    1. Enable the code comments in ti-processor-sdk-rtos-j7xxxx-evm-xx_xx/pdk_xxxx/packages/ti/drv/sciclient/soc/Vx/sciclient_defaultBoardcfg.c
    2. Recompile board configure under pdk_xxxx/packages/ti/build, $make sciclient_boardcfg
    3. Update PDK library under pdk_xxxx/packages/ti/build, $make pdk_libs_allcores BOARD=j7xxx_evm SOC=j7xxx
    4. Recompile sbl_mmcsd_img_mcu1_0_release.tiimage under pdk_xxxx/packages/ti/build $make -j BOARD=j7xxx_evm CORE=mcu1_0 BUILD_PROFILE=release sbl_mmcsd_img
    5. Copy the sbl_mmcsd_img_mcu1_0_release.tiimage to SD BOOT partition as tiboot3.bin $cp pdk_xxxx/packages/ti/boot/sbl/binary/j7xxx_evm/mmcsd/bin/sbl_mmcsd_img_mcu1_0_release.tiimage /media/BOOT/tiboot3.bin
    6. Boot up board, and copy the WUKUP_UART0 log (on the screen) to input_log.txt file
    7. There is a script parser sysfw_trace_parser.py in RTOS SDK
    8. ./sysfw_trace_parser.py -l input_log.txt -o output_log.txt
    GUID-4D4AA725-DE5D-4602-8865-2B8663C6AF4E-low.pngFigure 2-2 SBL Boot Board Configure
CAUTION: Different SOC and SDK versions have different code path, so here using xxxxx to represent. The value of BOARD includes j7200_evm/j721e_evm/j721s2_evm/j784s4_evm, and the value of SOC includes j7200/j721e/j784s4/j721s2