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.

SRIOLoopbackDioIsr example hangs in waiting for "destination==source"

Hi, I'm new to SRIO and now trying to understand SRIOLoopbackDioIsr example from \pdk_C6678_1_1_2_6\packages\ti\drv\srio\example. I use TI Simulator, but it's not clear for me completely, if this example should work on TI Simulator or not. When I run this example, I see some printfs from the beginning of the example, but then it hangs in string:

while( *((int32_t *)destination) != *((int32_t *)source));

Could someone tell me, please, what is the source of this problem? Is something wrong in SRIO configuration, or, maybe, this functionality is not supported by simulator?

Any help appreciated.
Thanks in advance,
Maxim

8233.SRIOLoopbackDioIsr.zip

  • I'll make some inquiries, I've never personally used the simulator with any of the SRIO examples.  I'm not sure if it is possible or requires additional setup.  I'll let you know what I find out.

    Regards,

    Travis

  • Confirmed the DIO example won't work on the simulator.  The messaging example, SRIO_MulticoreLoopBackExample, will work if you use the define SIMULATOR_SUPPORT in the project.

    Regards,

    Travis

  • Hi, tscheck

    Thank you very much for your reply! It is clear for me know, what SRIO's functions are supported by simulator.

    You also mentioned a SRIO_LoopbackMulticoreExample - it seems like I've already tried to run it, but there were some problems... Namely, several unresolved symbols appears during the project building:

    undefined first referenced
    symbol in file
    --------- ----------------
    SrioDevice_init ./multicoreLoopback.obj
    cppiGblCfgParams ./multicoreLoopback.obj
    qmssGblCfgParams ./multicoreLoopback.obj

    It looks strange for me, because I import the project into my workspace, defined the "SIMULATOR_SUPPORT" symbol, included (I think all the required) headers and libraries, like below:

    Could you tell me, please, if I missed something? That symbols are defined as external, but I can't find declaration for them anywhere, but libs, listed in figures..

    Regards, Maxim

     

  • If you build it in place you won't have any issues, but if you copy project into workspace when you import the project, you will have issues since relative paths are not maintained.  You are missing three files, that you can just copy into your project directly:

    device_srio_loopback.c, cppi_device.c, and qmss_device.c

    If you look in the SRIO_MulticoreLoopbackexampleProject.txt file, it will give you the path as:

    -ccs.linkFile "PDK_INSTALL_PATH/ti/drv/srio/example/SRIOMulticoreLoopback/multicoreLoopback.c"
    -ccs.linkFile "PDK_INSTALL_PATH/ti/drv/srio/example/SRIOMulticoreLoopback/multicoreLoopback_osal.c"
    -ccs.linkFile "PDK_INSTALL_PATH/ti/drv/srio/device/device_srio_loopback.c"
    -ccs.linkFile "PDK_INSTALL_PATH/ti/drv/cppi/device/cppi_device.c"
    -ccs.linkFile "PDK_INSTALL_PATH/ti/drv/qmss/device/qmss_device.c"
    -ccs.linkFile "PDK_INSTALL_PATH/ti/drv/srio/example/SRIOMulticoreLoopback/multicoreLoopback.cmd"
    -ccs.linkFile "PDK_INSTALL_PATH/ti/drv/srio/example/SRIOMulticoreLoopback/multicoreLoopback.cfg"
    -ccs.setCompilerOptions "-mv6600 -g --diag_warning=225 -I${PDK_INSTALL_PATH}/ti/drv/srio/example/SRIOMulticoreLoopback" -rtsc.enableRtsc

    Regards,

    Travis

  • Hi, Travis

    Thank you so much for your help! You were right and SRIO example now finally works! :)

    Regards, Maxim