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/TMS320C6678: OpenMP execution Error Questions

Part Number: TMS320C6678
Other Parts Discussed in Thread: SYSBIOS

Tool/software: Code Composer Studio

Hi.

The development environment is as follows.

CCS 6.1.1
CGT 7.4.0
IMGLIB 3.1.1.0
IPC 1.24.3.32
MCSDK 2.1.2.6
PDK 1.1.2.6
NDK 2.21.2.43
OMP 1.1.3.02
SYSBIOS 6.33,6.50

I tested the OpenMP sample project.
It confirmed that eight cores were being executed. (using OMP 1.2.0.5)


It changed to cfg file and platform for the MCSDK Image_processing demo project config. To use NDK.

However, running results in the following error:
Why does it run like this?



My project file is as follows.  TestOMP_20190503_ImageProcess cfg.zip

Thanks.

  • lld_init()modified the function and the symptoms changed.

    OpenMP implementation is strange, and the following error.
    How do I get rid of the errors?

    It is running on the 6678 EVM board. Give me some advice.


    Project file is TestOMP_20190503_lld_init EXE.zip

    //**************************************************************************************
    < Console screen >
    [C66xx_0] Hello World from thread = 7
    Number of threads = 8
    [C66xx_1] Hello World from thread = 7
    [C66xx_2] Hello World from thread = 7
    [C66xx_3] Hello World from thread = 2
    [C66xx_4] Hello World from thread = 7
    [C66xx_5] Hello World from thread = 7
    [C66xx_6] Hello World from thread = 7
    [C66xx_7] Hello World from thread = 7
    [C66xx_0] A0=0x4598 A1=0x1
    A2=0x1 A3=0x90000030
    A4=0x90003fd4 A5=0xf8
    A6=0x8 A7=0xc0
    A8=0x833958 A9=0x0
    A10=0xc044758 A11=0x90000020
    A12=0xf8 A13=0xc03a630
    A14=0x0 A15=0x0
    A16=0x90020cb1 A17=0x0
    A18=0x0 A19=0x0
    A20=0x180 A21=0x4c
    A22=0x63d7be42 A23=0x800000e
    A24=0x88d097c A25=0x44624028
    A26=0x978dbca1 A27=0x0
    A28=0x8 A29=0xb
    A30=0x80 A31=0x0
    B0=0x90003f80 B1=0x0
    B2=0x0 B3=0xc044758
    B4=0xc03a630 B5=0xc044b98
    B6=0x832c40 B7=0x0
    B8=0x0 B9=0x0
    B10=0x833588 B11=0x1e440300
    B12=0x60 B13=0x8331b0
    B14=0xa0244500 B15=0x90003fa8
    B16=0x0 B17=0x0
    B18=0xff B19=0x20
    B20=0x20 B21=0x5c831270
    B22=0x1604598 B23=0x805ce400
    B24=0x10008409 B25=0xc122c258
    B26=0x91228825 B27=0x4004634
    B28=0x80880140 B29=0x0
    B30=0xc0 B31=0x9000403b
    NTSR=0x1800e
    ITSR=0xf
    IRP=0xc0368d0
    SSR=0x0
    AMR=0x0
    RILC=0x0
    ILC=0x0
    Exception at 0xc044770
    EFR=0x2 NRP=0xc044770
    Internal exception: IERR=0x8
    Opcode exception
    ti.sysbios.family.c64p.Exception: line 248: E_exceptionMin: pc = 0x0c044770, sp = 0x90003fa8.
    To see more exception detail, use ROV or set 'ti.sysbios.family.c64p.Exception.enablePrint = true;'
    xdc.runtime.Error.raise: terminating execution

    //**************************************************************************************

    Thanks.

  • Hi,

    We can provide some general suggestions for the obsolete MCSDK release. It's really difficult for us to reproduce and debug the problem like you described above. I would strongly recommend you move to the latest processor SDK and we can help resolve any issue you may observe there.

    Regards,
    Garrett
  • Hi.

    I will refer to your recommendations.

    If I use the latest SDK, do you have any example projects or materials using OpenMP and NDK?
    Please let me know and I'll use it to proceed with the project.

    Thanks.

  • Hi,

    There is no OpenMP + NDK project in the latest SDK today. I have requested to add one example into later releases. If you have any issue to integrate OpenMP with NDK using the processor SDK, just let us know.

    Regards,
    Garrett
  • Good to see you have moved to Processor SDK, we will follow up in the thread - e2e.ti.com/.../801298, and close this one.

    Regards,
    Garrett