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.

CCS: Running EVE application on simulator: Failed in file operation

Tool/software: Code Composer Studio

Hello,

I want to run existing EVE application " ImagePyramid_u8" (present at ti_components/algorithms/eve_sw_01_16_00_00/apps/imagePyramid_u8) on simulator.

Building application is successful.

While executing on simulator , it fails at below line ti_components/algorithms/eve_sw_01_16_00_00/apps/imagePyramid_u8/test/src/imagePyramid_u8_tb.c : 833

    status = (int)FGETS(configLine,FILE_NAME_SIZE,fp);

It doesn't give any error, but in "configLine" no data is reading from "fp" .  return status value is non-negative and non zero.

So it breaks from ti_components/algorithms/eve_sw_01_16_00_00/apps/imagePyramid_u8/test/src/imagePyramid_u8_tb.c : 844 i.e

    if(config_cmd == 0)
    {
      printf("End of config list found !\n");
      break;
    }

So, I am wondering if,

1. is the file operation problem on the platform ( I also tried fread() , but issue is same) ??

2. is the simulator problem ??

I have also try execute "edge_detector " application (present at /home/kajalk/TDA/sdk_installed/ti_components/algorithms/eve_sw_01_16_00_00/apps/edge_detector ) and it behaves same as ImagePyramid_u8.

Details of tools,

1. PROCESSOR_SDK_03_00_00

2. eve_sw_01_16_00_00

3. ccs 5.4 simuator

Need help for same.

Regards,

Kajal

  • Hello there,

    Any updates ??

    Regards,

    Kajal

  • Hi Kajal,
    File read is not a problem in simulator. Can you run edge detector applet which comes as part of EVE SW release ( not the one which you built) and see if you are able to run it on simulator?

    Regards,
    Anshu
  • Hello Anshu,

    I newly installed "eve_sw_01_17_00" package.

    On simulator, executed eve_sw_01_17_00/apps/edge_detector/test/elf_out/test_eveEdgeDetector.eve.out .

    Got below logs on console,

    ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    [EVE_1]

    TEST_REPORT_APPLET_NAME : EDGE_DETECTOR_TI_VISION Test application

    TEST_REPORT_TEXT_CONST :

    Module                                  Far data (DDR)       Near data DMEM       Program(.text)  Comments

    EDGE_DETECTOR_TI_VISION                            708                 1320                 8516  

    BAM                                               1368                  985                13780  

    Starterware                                        500                    0                  272  

    rtsarp32_v200.lib                                  768                  616                27184  

    Processing config file ../testvecs/config/edge_detector_binpack_random.cfg !

    TEST_REPORT_TESTCASE_NAME : TEST_FUNCTIONALITY_1

    TEST_REPORT_TESTCASE_DESC : Random test case : Sobel with BinPack 640 x 480

    TEST_REPORT_PERF_TESTCASE :

    TEST_REPORT_CONFIG_STRING : inImage =

    TEST_REPORT_CONFIG_STRING : outImage =

    TEST_REPORT_CONFIG_INT16 : imageWidth =  640

    TEST_REPORT_CONFIG_INT16 : imageHeight =  480

    TEST_REPORT_CONFIG_INT16 : imagePitch =  640

    TEST_REPORT_CONFIG_INT16 : outputPitch =  80

    TEST_REPORT_CONFIG_INT8 : kernelSize =  3

    TEST_REPORT_CONFIG_INT16 : threshold1 =  50

    TEST_REPORT_CONFIG_INT16 : threshold2 =  150

    TEST_REPORT_CONFIG_INT8 : outputFormat =  1

    TEST_REPORT_CONFIG_INT8 : method =  0

    TEST_REPORT_CONFIG_INT32 : randSeed =  0

    TEST_REPORT_CONFIG_STRING : testCaseName = TEST_FUNCTIONALITY_1

    TEST_REPORT_CONFIG_INT8 : performanceTestcase =  1

    TEST_REPORT_CONFIG_STRING : desc = Random test case : Sobel with BinPack 640 x 480

    TEST_REPORT_INIT_PROFILE_DATA : TSC cycles = 27590, SCTM VCOP BUSY cycles = 0, SCTM VCOP Overhead = 0

    I/O Bytes :       14 (        7 +        7 ) :       14 (        7 +        7 )

    after some time in running state only , it gives below error or ccs get crashed ( checked 2-3 times same .out file )

     

    EVE_1: Warning: Error: instruction decoder not set for instruction storeInvalid Instruction

    ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    Also no output generated!!

    So, an obvious i have below question,

    1. Why different behavior i.e. without building and with building EVE SW package ?

    2. What need to do to get running my application ?

    3. According to above logs, why errors/ ccs crash ?

    Regards,

    Kajal

  • Kajal,
    Which EVE simulator are you using? I tried the same example and it is running on simulator.
    May I know for what purpose you are trying to use simulator? Generally simulator is very flow (also we dont support it) if we want to run a full applet. If you are trying to use simulator for debugging purpose then I would recommend you to use Host emulation mode instead. We use simulator only at kernel level where data sizes are small.

    Regards,
    Anshu
  • Hello Anshu,

    Which EVE simulator are you using? I tried the same example and it is running on simulator.
    >> vayu simulator in ccs 5.4

    Purpose is to run application and if needed debugging also, instead of running it directly on hardware.
    As Linux does not support host emulation, we were using simulator.

    But, how come different behavior i.e. without building and with building EVE SW package ?

    Regards,
    Kajal
  • There is nothing like vayu simulator in CCS 5.4. We have to install simulator separately which has its own version ( which is not related to CCS version).
    Regarding your issue I am not very sure what could be going wrong. It could be because of Linux also. We have never tried running simulator on Linux ( and now we dont support vayu simulator). If possible can you try the same example from some windows machine? This is just to rule out the possibility that the issue is because of running the simulator from Linux machine.

    Regards,
    Anshu
  • Hello Anshu,

    I tested binary on hardware and it works fine on linux,  for both with( building my code) and without building EVE SW package.

    Yes, there is some issue of simulator .

    "There is nothing like vayu simulator in CCS 5.4. We have to install simulator separately which has its own version ( which is not related to CCS version). "

    >> we use vayu simulator within the CCS 5.4 for executing/debugging sample EVE applications , attached screenshot for reference.

    Regards,

    Kajal