[FAQ] AM263P4-Q1: How to parse AM263P ROM Logs

Part Number: AM263P4-Q1

Hi expert,

Can you provide me the steps or tools necessary to parse ROM Logs in AM263P SoC.

  • The ROM logs the boot time log in the TCMB memory region. The address were it is stored is 0x82800.

    The TCMB logs can be parsed into meaningful messages. It will tell us regarding where the boot has failed.

    Please follow the below steps for the same.

    1. POR the board

    2. Afterwards connect to the target without gel scripts.

    For this it is required to create a target configuration without gel scripts.

    Double click on the target configuration, go to advanced tab and clear the initialization script field. This needs to be done for Core0-0

    3. Now launch the TG and connect to core 0-0.

    4. After connecting enter this address is memory browser.

    Export it as bin file.

    Start Address: 0x82800

    Length in Words: 1024

    5. Once bin file as been saved execute this command. The .exe and .csv has been attached.

    parse_log_win.zip

    Command to be executed:

    ./parse_log_win.exe test_bin_am263pcc.bin log_dictionary_r5_am263px_gen.csv > test_bin_am263pcc_output.txt

    I have also attached a sample binary and sample output that can be expected after running the command

    https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/908/test_5F00_bin_5F00_am263pcc.bin

    INFO: 2 ticks: 0x55D44208: "Pbist TCMB test passed"
    : 0: 0
    ---------------------------------------
    INFO: 2215 ticks: 0x55D44208: "Pbist TCMA and L2 test passed"
    : 0: C00000
    ---------------------------------------
    INFO: 2227 ticks: 0x428291C3: "Debug: R5 -> HSM [Hello]\n"
    : 0: 0
    ---------------------------------------
    INFO: 2234 ticks: 0x7A2184B7: "R5 ROM Version minor_major"
    : 1: 0
    ---------------------------------------
    INFO: 2235 ticks: 0x7A2184B7: "R5 ROM patch version"
    : 0: 0
    ---------------------------------------
    INFO: 2236 ticks: 0x7A2184B7: "R5 ROM XTAL and SYS clk frequency"
    : 17D7840: BEBC200
    ---------------------------------------
    INFO: 2543 ticks: 0x9DF179: "L2 mem_init is done"
    : 0: 0
    ---------------------------------------
    INFO: 2562 ticks: 0xD7590902: "OSPI input clock configured for 200MHz"
    : 0: C8
    ---------------------------------------
    INFO: 2562 ticks: 0xD7590902: "OSPI configuration started"
    : 80E8: 0
    ---------------------------------------
    INFO: 2734 ticks: 0x428291C3: "Debug: R5 -> HSM [Certificate Last]\n"
    : 6C9: 0
    ---------------------------------------
    INFO: 10776 ticks: 0x428291C3: "Debug: R5 -> HSM [Image Last]\n"
    : 0: 74
    ---------------------------------------
    INFO: 10854 ticks: 0x428291C3: "Debug: R5 <- HSM [message received]\n"
    : 88000001: 88000001
    ---------------------------------------
    INFO: 10855 ticks: 0x9DF179: "Number of Image block sent delayed."
    : 14C: 0
    ---------------------------------------
    INFO: 10896 ticks: 0x9DF179: "Boot succeed..."
    : 3: 0
    ---------------------------------------
    INFO: 10897 ticks: 0x428291C3: "Debug: R5 -> HSM [Result Ack]\n"
    : 0: 0
    ---------------------------------------
    INFO: 10909 ticks: 0x9DF179: "R5 Boot OK ... wait for ROM Eclipse"
    : AA: AA
    ---------------------------------------
    

    The tests were conducted on AM263P CC board.

    Thanks & Regards,

    Aswin