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.

AM6546: Device boot diagnostics

Part Number: AM6546

(I am asking this question on behalf of a customer)

Could TI please point out in TI's documentation information about 'how to read out diagnostic statuses' of the AM65xx/ DRA80M device during/after boot the Linux PDK? Important interest topics include:

  • Last reset reason
  • BIST execution/results
  • Ethernet tx/rx error counters per interface
  • Incremental boot count
  • CAN tx/rx error counters per interface
  • DDR error counters
  • Jason,

    Do you want to read these from a booted Linux system, or are you more interested in debugging a failed boot? Both are going to come down to reading registers either by Linux (if available) or using a JTAG emulator or debugger. The registers will be documented in the TRM with the associated modules for appropriate information.

    Ethernet and CAN are supported well by ethtool and IP commands to get statistics and such since they are both primarily networking protocols.

    If you can provide some more specifics, I will do my best to help provide some more information.

  • I notified my customer about your reply today.

    I asked my customer to directly respond to your clarifying questions, above.

    Let's see how my customer responds.

  • Hi Ron,

    I think we need to provide more details for this question to be fully answered. I will try to expand the questions further below:

    Boot related - can you please provide the exact registers with references in the TRM that can give more details to the customer?

    Customer is running Linux at the moment, but if this information can also be obtained via JTAG that's fine too.

    • Last reset reason
    • BIST execution/results
    • Incremental boot count

    CAN/Ethernet - same as above, references to TRM will be useful here. Tool output and commands if there are tools available in Linux to get this.

    • Ethernet tx/rx error counters per interface
    • CAN tx/rx error counters per interface

    DDR - can this also be expanded?

    • DDR error counters
    Regards
    Karthik
  • Hi,

    For CAN and Ethernet these are the tools to use when running Linux:

    Ethernet:

    ethtool -S eth0

    This command will show the statistics for the port which will include error counters. 

    CAN

    The basic command to show the CAN device is this, will show statistics and error counters.

    ip link show can0

    Best Regards,
    Schuyler
  • Hi Ron,

    This thread did not receive the full answer to the question. I would like to reopen this thread and have all the answers captured here.

    Regards

    Karthik

  • For DDR, do you mean ECC error counters?  There is a register for this in the controller DDRCTL_ECCERRCNT which counts both correctable and uncorrectable errors.  

    Parity/CRC errors from the DDR, signaled by the alert signal, are also counted int the controller using DDRCTL_CRCPARSTAT.  

    Regards,

    James

  • Hello,

    Can you please let us know how to enable the ECC?

    Regards,

    Shanthan