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.

problem of openmp hello world compile with c6670

Hello Dear.

I try build OpenMp example as hello world of MCSDK user guide in http://processors.wiki.ti.com/index.php/BIOS_MCSDK_2.0_User_Guide with TMDSEVM6670LE.

I create project with empty RTSC project and adding source and configuration file:

          d:\ti\omp_1_02_00_05\packages\ti\omp\examples\omp_hello.c

         d:\ti\omp_1_02_00_05\packages\ti\omp\examples\omp_config.cfg

I'm not modifying any code. Only modify XDC path of RTSC configuration in properties of CCS Project.

I cannot build project follows error message:

************************************************************************************************************************

**** Build of configuration Debug for project openmp_hello ****

"D:\\ti\\ccs\\ccsv5\\utils\\bin\\gmake" -k all
'Building file: ../omp_config.cfg'
'Invoking: XDCtools'
"D:/ti/ccs/xdctools_3_25_03_72/xs" --xdcpath="D:/ti/ccs/bios_6_35_04_50/packages;D:/ti/ccs/uia_1_03_01_08/packages;D:/ti/ccs/xdais_7_21_01_07/packages;D:/ti/ccs/xdais_7_21_01_07/examples;D:/ti/ipc_1_24_03_32/packages;D:/ti/omp_1_02_00_05/packages;D:/ti/pdk_C6670_1_1_2_6/packages;D:/ti/ccs/ccsv5/ccs_base;" xdc.tools.configuro -o configPkg -t ti.targets.elf.C66 -p ti.platforms.evm6670 -r release -c "D:/ti/ccs/ccsv5/tools/compiler/c6000_7.4.5" "../omp_config.cfg"
making package.mak (because of package.bld) ...
generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
configuring omp_config.xe66 from package/cfg/omp_config_pe66.cfg ...
js: "D:/ti/omp_1_02_00_05/packages/ti/omp/utils/OpenMP.xs", line 140: TypeError: Cannot read property "base" from undefined (D:/ti/omp_1_02_00_05/packages/ti/omp/utils/OpenMP.xs#140)
    "D:/ti/omp_1_02_00_05/packages/ti/omp/utils/OpenMP.xs", line 103
gmake.exe: *** [package/cfg/omp_config_pe66.xdl] Error 1
js: "D:/ti/ccs/xdctools_3_25_03_72/packages/xdc/tools/Cmdr.xs", line 51: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted.
gmake: *** [configPkg/linker.cmd] Error 1
gmake: Target `all' not remade because of errors.

**** Build Finished ****

**************************************************************************************************************************

My complie environments are:

    CCS: 5.5.0.00077

    CGT: 7.4.5

    MCSDK: 2.1.2.6 with patch1

    OpenMP: 1.2.0.5 (I tried 1.1.3.2, but it's same result)

    XDCtools: 3.25.03.72

   SYS/BIOS: 6.35.04.50

What should i do? Please help me.

thanks

 

  • Check out this thread, it may help:

    http://e2e.ti.com/support/development_tools/compiler/f/343/t/218468.aspx

    That thread describes the same "cannot read base" issue (if you scroll down a little).

  • Hi chris

    Thank your replay.

    Your link was helpful. But still remain Cannot read base problem.

    Anyway, i solved this problem

    1. I was built new platform from Platform.xdc in image processing demo and append MSMCSRAM_NOCAHE in device memory mentioned platform.xdc file.

         Enter Name: MSMCSRAM_NOCACHE

         Enter Base Address: 0xa0100000

         Enter Section Length: 0x00100000

         Code Memory: MSMCSRAM_NOCACHE

         Data Memory: MSMCSRAM_NOCACHE

         Stack Memory: MSMCSRAM_NOCACHE

    2. Open and edti omp_1_02_00_05\packages\ti\omp\utils\OpenMP.xs file and change to follows in memorysetup() function.

    var dataMem = Program.cpu.memoryMap["MSMCSRAM_NOCACHE"];  to var dataMem = Program.cpu.memoryMap["DDR3"];

    3. Open and edit \ccs\xdctools_3_25_03_72\packages\ti\targets\elf\linkcmd.xdt

    Add follow line at line number 74 in MEMORY section

    MSMCSRAM_NOCACHE: org = 0xa0100000, len = 0x00100000

    I thought it's major problem, thus xdctool generate linker.cmd from linkcmd.xdt file except MSMCSRAM_NOCACHE section.

    Regards,

    Soyoung.