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.

How simulate example of Serial RapidIO in STUDIO V5 ?

Other Parts Discussed in Thread: CCSTUDIO

Hello,

After installing MCSDK and CCstudio V5 ... i want to simulate example of SRIO in EVM C6678

the project is  SRIO_MulticoreLoopbackexampleProject

i successd  to simulate example of 'Hello World' in C6678  .. but for SRIO example not yet.

so if somebody can tell me the correct steps  to simulate this example.

 

Thank you in advance

  • Hi,

    To run the SRIO LLD example on the simulator, the application needs to be rebuilt with compile flag SIMULATOR_SUPPORT. You can define this for the CCS project.

    Also, you can create all of the LLD example projects under PDK to be built for Simulator by modifying the pdkProjectCreate.bat file located under \ti\drv directory

    Please modify the below line

    REM Set to 'no' when using QT, EVM, VDB, or other hardware. Set to 'yes' only when using the simulator.
    set IS_SIMULATOR_SUPPORT_NEEDED=no

    Change to as below for Simulator support

    REM Set to 'no' when using QT, EVM, VDB, or other hardware. Set to 'yes' only when using the simulator.
    set IS_SIMULATOR_SUPPORT_NEEDED=yes

    Thanks,

    Aravind

     

  • Hello Aravind ,

    Thank you for your response

    I modified the line  IS_SIMULATOR_SUPPORT_NEEDED=no   to     IS_SIMULATOR_SUPPORT_NEEDED=yes    in pdkProjectCreate.bat file ...

    after that i launched the CCStudio 5 ...

    Project --> Import existing CCS/CCE eclipse project--> Browser ...


    C:\Program Files\Texas Instruments\pdk_C6678_1_0_0_6_beta1\packages\ti\drv\exampleProjects\SRIO_MulticoreLoopbackexampleProject

     

    I creat new Target Configuration file ..i selected  C6678 Cycle Approximate Simulator,Little Endian

    but after i made  build project the warnings appears ...see  image below

    please for compile flag SIMULATOR_SUPPORT  

    how can i define this for CCS project ?

    is this procedure correct ?

  • Hi,

    From the screen shot it appears like the macros.ini is not imported,

    Please refer to http://processors.wiki.ti.com/index.php/BIOS_MCSDK_2.0_User_Guide#Building_the_Device_Drivers_Example_Projects for importing the macros.ini for the project.

    Regarding setting the compile time defines in CCS,

    Goto the below window using CCS and Click on Add to add the symbol "SIMULATOR_SUPPORT" and recompile the project. Let me know if it helps.

     

  • Hello Aravind ,

    Thank you for your help

    i made a changes like you mentionned in the last replay.....

    1-Import macros.ini located under \pdk_C667#_1_0_0_6_beta1\packages\ti\drv.

    2- I added the  'SIMULATOR_SUPPORT'  in Predifined symbols....


    After 'Building' project all the Warnings are disappeared.

    but in the console  the message appear :

    (Cannot run program "C:\Program Files\Texas Instruments\pdk_C6678_1_0_0_6_beta1C:\Program Files\Texas Instruments\ccsv5\utils\gmake\gmake": Launching failed)

     

    Remark :

    for example Project i import project

    C:\Program Files\Texas Instruments\pdk_C6678_1_0_0_6_beta1\packages\ti\drv\exampleProjects\SRIO_MulticoreLoopbackexampleProject

    So , you have any idea the resolve this problem ?

     


  • Hi,

    Good to know that you could build the project.

    I assume you are able to build the .out file with the changes.

    Not sure about this message - looks weird

    (Cannot run program "C:\Program Files\Texas Instruments\pdk_C6678_1_0_0_6_beta1C:\Program Files\Texas Instruments\ccsv5\utils\gmake\gmake": Launching failed) .

    Can you delete the Debug (and Release) directories that got created by CCS and try to rebuild the project?

    -Thanks,
    Aravind