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.

OpenMP

Other Parts Discussed in Thread: TMS320C6678

Hi

Non of the OpenMP example projects run correctly on my platform. when I run them, the sequential part of code works correct but when the parallel region wants run the below error occur:

Board: EVMC6678l

MCSDK: 2_01_02_06

CCS: 5.3

Load on 4 cores

What should I do?

  • Hi Dariush karami,

    We will look into that and get back.

    Let me try this example, image_processing_openmp_evmc6678l from my end.


    --
  • Hi Dariush,

    Able to build and successfully run the "image_processing_openmp_evmc6678l" which uses open MP on target C6678.

    Environment:

    CCS: 5.5

    mcsdk_2_01_02_06\demos\image_processing\openmp\evmc6678l

    Hardware:

    Make sure you connect the ethernet cable. Otherwise, it will give you run time error.

    Steps:

    1. launch the Cxxml file and do connect target.

    2. Load the image_processing_openmp_evmc6678l.out

    3. Run

    4. You will observe something like below screeshot.

    5. Open up the browser and type the IP address popped in the window.

    6. Image processing can be done.

  • Hi

    I will test and run the example that you had said. why in your screen shot one core is running?  I remember I ran the "hello world" example before, the only change after

    I install the CCS and MCSDK again, is put the configuration mode on "no boot"! have the position of deep switches jumpers on running of OpenMP project? I'm really

    confused!!

                         Best Regards

  • Hi Dariush,

    Dariush says said:
    I will test and run the example that you had said. why in your screen shot one core is running? I remember I ran the "hello world" example before


    That example is made it up to run in one core only, i.e., core -0. I am not using the example that you are mentioned.

    This is image processing demo.

    Since you said "Non of the OpenMP example projects run correctly on my platform" I just pointed you the working example ( with Open MP ) which I know. I ran this example on C6678 and tested. It works. You can refer this too if you are facing problem in the hello world project of yours.

    Dariush said:
    put the configuration mode on "no boot"! have the position of deep switches jumpers on running of OpenMP project?


    Yes, the image processing demo runs on "no boot" mode.

    -----

  • Hi

    I connect my board to PC and set the IP address in PC then put the deep switch "no boot" like below:

    add "Target Configuration file", load GEL file on core_0 and finally load and run the program on core_0. my result show below:

    what is the problem? what should I do?

  • Hi Dariush,

    When you give the "connect target" are you able to see the log messages from the gel file on the console?

    It should be in no-boot mode. As you said, if you have set the IP address properly, you should be able to ping the target with that IP address. From the host machine, use "ping" command to ping the target and make sure it is alive.

    ----
  • Hi Shankari

    I will test the "ping" command but I want to explain my test in more details for you:

    1. I connected board to my PC.

    2. I set the IP address of PC:

    IP address: 192.168.2.101

    Subnet mask: 255.255.254.0

    Default gateway: 192.168.2.101

    3.I set deep switches(SW3...SW6) as mentioned on no boot and SW9 on "off,off" position.

    4. I turned on the board.

    5. I added target configuration file.

     set emulator: Blackhawk XDS560v2-USB Mezzanine Emulator

    set chip: tms320c6678 (I saved and pushed the button of "test connection" and saw the report of correct connection).

    set gel file "evmc6678l.gel" to core_0. ( gel file was in the DVD that was in the board package).

    6.I loaded the program:

    I pushed the debug button and after that "CCS" asked about which cores do you want to load? and I set only core_0.

    7. I Ran the program.

    After that the error occurred. (It is a run time error) when I debugged it I found out in file"mcip_master_main.c" at line "170" the variable "hCfg" got negative or zero value after that the sentence

    "Unable to create configuration" printed and the program terminated .

    I couldn't understand why function "CfgNew()" at line "170" didn't work correct??

    Is it possible the reason of error be the ccs version?(my ccs version: 5.3) Help Please!!!

    Best Regards

  • Hi,

    Check, to where you have connected the ethernet cable of the target??? In that function it is trying to create a new ethernet configuration for the target.

    ----

  • Hi

    I checked my ethernet cable it  was connected. I must mentioned I ran project "C:\Program Files (x86)\Texas instruments\mcsdk_2_01_02_06\examples\ndk\helloWorld\evmc6678l" in this project that function "CfgNew()" was used too and this project worked correctly!!!

    What should I do?

       Regards