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.

Srio_socketSend_DIO failure

Hi Experts,

I am developing a DSP application of testing SRIO interface. I initialize SRIO interface to be operational and set SRIO loopback. However after calling "Srio_socketSend_DIO" to send DIO packet, “Srio_getSockOpt” will get bad completion code. 

I don't know how to find out the cause of the failure, can someone help me on this? I am referring to the SRIO example (SRIOLoopbackDioIsr) in MCSDK to design my application.

My hardware is TI K2H EVM board. (XTCIEVMK2X), and i am using CCS 6.1.0.

thanks

Changyong

  • Hi Changyong,

    Welcome to the TI E2E forum. I hope you will find many good answers here and in the TI.com documents and in the TI Wiki Pages (for processor issues). Be sure to search those for helpful information and to browse for the questions others may have asked on similar topics (e2e.ti.com). Please read all the links below my signature.

    We will get back to you on the above query shortly. Thank you for your patience.

  • We recommend you to install and test the latest MCSDK 3.x released for Keystone II devices development. Please find the download and user guide link below my signature.

    Also recommend you to start with SRIO Example/Test project available in below path for development. The PDK will be installed as part of MCSDK.
    PATH: :\ti\pdk_keystone2_3_01_03_06\packages\exampleProjects

    Thank you.
  • Hi,

    We have tested the this example on TI K2H EVM board, It is working properly. Have you test the MCSDK SRIO example (SRIOLoopbackDioIsr) for your setup? If no, please try to test the default example code on your setup.

    Thanks,
  • Thanks for the reply.

    mcsdk_3_01_03_06/pdk_keystone2_3_01_03_06/packages/ti/drv/srio/example/SRIOLoopbackDioIsr

    In the SDK this example is not complete. It needs users to implement function "SrioDevice_init". So I wrote one by myself. I kept other part mostly same with "SRIOLoopbackDioIsr" example in my application.

    I check the completion code value, it's 0x05. Referring to SRIO user guide, this code means "0b101 — DMA data transfer error". Not sure what's wrong. Can you advise?

    My log:
    Debug(Core 0): DIO Socket (0) Send for iteration 0
    Debug(Core 0): compCode=0x5
    Debug(Core 0): ISR Count: 1
    Debug(Core 0): Transfer Completion without Errors - 0
    Debug(Core 0): Transfer Completion with Errors - 1
    Debug(Core 0): DIO Transfer Data NOT completed successfully !!!
    Error: Loopback DIO ISR example for Write operation failed
  • Hi,

    The DMA Transfer error indicates an access attempt to either a non-mapped address, reserved address, or privledged/protected address.  Basically the internal bus returns an error to the SRIO peripheral for trying to access that address.

    see the following similar threat:

    Thanks,