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.

CCS5.1.1 SYS/BIOS on ARM9, XDCtool xs problem

Other Parts Discussed in Thread: OMAPL138, SYSBIOS

SYS/BIOS on ARM9, XDCtool xs problem

Platform ARM9 on OMAPL138
CCS5.1.1
SYS/BIOS 6.3.3
xdctools_3_23_01_43


I try to compile your generic SYS/BIOS examples like stairsteps or mutex.
But all tools with SYS/BIOS won't compile and crash.
What happens:
 gmake -k all
 'Invoking: XDCtools'
 "C:/ti/xdctools_3_23_01_43/xs"
crash

The crash happens in different ways:
  compiler cl470, the shell sh or path2dos.exe don't respond and there is a pop up dialog.

I can call gmake -k all from Release or Debug directory directly from a shell prompt.
Then it works sometimes but is also not stable.

Some debug output below
      



/********* OUTPUT stairstep ****************/
C:\ti\ccsv5\utils\bin\gmake -k all
'Building file: ../stairstep.cfg'
'Invoking: XDCtools'
"C:/ti/xdctools_3_23_01_43/xs" --xdcpath="C:/ti/bios_6_33_01_25/packages;" xdc.tools.configuro -o configPkg -t ti.targets.arm.elf.Arm9 -p ti.platforms.evmOMAPL138 -r release -c "C:/ti/ccsv5/tools/compiler/tms470" --compileOptions "-g --optimize_with_debug" "../stairstep.cfg"
  18190 [main] sh 176! _pinfo::dup_proc_pipe: DuplicateHandle failed, pid 176, hProcess 0x2B8, wr_proc_pipe 0x244, Win32 error 5
ti.targets.arm.elf.Arm9: warning: version match failed on ''
C:/ti/xdctools_3_23_01_43/packages/xdc/bld/xdc_rules.mak:313: *** Error: Specified build configuration file '' is not found.  Stop.
js: "C:/ti/xdctools_3_23_01_43/packages/xdc/tools/Cmdr.xs", line 51: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted.
gmake: Target `all' not remade because of errors.


/********* OUTPUT mutex ****************/
C:\ti\ccsv5\utils\bin\gmake -k all
'Building file: ../mutex.cfg'
'Invoking: XDCtools'
"C:/ti/xdctools_3_23_01_43/xs"
--xdcpath="C:/ti/bios_6_33_01_25/packages;"
xdc.tools.configuro -o configPkg
-t ti.targets.arm.elf.Arm9
-p ti.platforms.evmOMAPL138
-r release
-c "C:/ti/ccsv5/tools/compiler/tms470"
--compileOptions "-g --optimize_with_debug" "../mutex.cfg"
C:/ti/xdctools_3_23_01_43/packages/xdc/bld/xdc_rules.mak:313: *** Error: Specified build configuration file '' is not found.  Stop.
js: "C:/ti/xdctools_3_23_01_43/packages/xdc/tools/Cmdr.xs", line 51: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted.
gmake: Target `all' not remade because of errors.
>>>> the arguments are identical if it works from cmd prompt.


/************** xs called from COMMAND LINE **************************/
C:\Users\stefan.gehrig\workspace_v5_1\ArmMutex\Debug>"C:/ti/xdctools_3_23_01_43/
xs" --xdcpath="C:/ti/bios_6_33_01_25/packages;" xdc.tools.configuro -o configPkg
 -t ti.targets.arm.elf.Arm9 -p ti.platforms.evmOMAPL138 -r release -c "C:/ti/ccs
v5/tools/compiler/tms470" --compileOptions "-g --optimize_with_debug" "../mutex.
cfg"
generating interfaces for package configPkg (because package/package.xdc.inc is
older than package.xdc) ...
configuring mutex.xe9 from package/cfg/mutex_pe9.cfg ...
js: "C:/ti/xdctools_3_23_01_43/packages/xdc/cfg/Main.xs", line 156: Error: xdc.c
fg.INCOMPATIBLE_TARGET_VERSION: current target 'ti.targets.arm.elf.Arm9' [] is n
ot compatible with targets used to build the following packages; package ti.targ
ets.arm.rtsarm [in C:/ti/xdctools_3_23_01_43/packages/ti/targets/arm/rtsarm/] wa
s built using 'ti.targets.arm.elf.Arm9' [1,0,4.9,0]
; package ti.sysbios.family.arm [in C:/ti/bios_6_33_01_25/packages/ti/sysbios/fa
mily/arm/] was built using 'ti.targets.arm.elf.Arm9' [1,0,4.9,0]
; package ti.sysbios [in C:/ti/bios_6_33_01_25/packages/ti/sysbios/] was built u
sing 'ti.targets.arm.elf.Arm9' [1,0,4.9,0]
; package ti.sysbios.hal [in C:/ti/bios_6_33_01_25/packages/ti/sysbios/hal/] was
 built using 'ti.targets.arm.elf.Arm9' [1,0,4.9,0]
; package ti.sysbios.timers.timer64 [in C:/ti/bios_6_33_01_25/packages/ti/sysbio
s/timers/timer64/] was built using 'ti.targets.arm.elf.Arm9' [1,0,4.9,0]
; package ti.sysbios.knl [in C:/ti/bios_6_33_01_25/packages/ti/sysbios/knl/] was
 built using 'ti.targets.arm.elf.Arm9' [1,0,4.9,0]
; package ti.sysbios.heaps [in C:/ti/bios_6_33_01_25/packages/ti/sysbios/heaps/]
 was built using 'ti.targets.arm.elf.Arm9' [1,0,4.9,0]
; package ti.sysbios.gates [in C:/ti/bios_6_33_01_25/packages/ti/sysbios/gates/]
 was built using 'ti.targets.arm.elf.Arm9' [1,0,4.9,0]
; package ti.sysbios.family.arm.exc [in C:/ti/bios_6_33_01_25/packages/ti/sysbio
s/family/arm/exc/] was built using 'ti.targets.arm.elf.Arm9' [1,0,4.9,0]
; package ti.sysbios.family.arm.da830 [in C:/ti/bios_6_33_01_25/packages/ti/sysb
ios/family/arm/da830/] was built using 'ti.targets.arm.elf.Arm9' [1,0,4.9,0]
; package ti.sysbios.family.arm.arm9 [in C:/ti/bios_6_33_01_25/packages/ti/sysbi
os/family/arm/arm9/] was built using 'ti.targets.arm.elf.Arm9' [1,0,4.9,0]
; package ti.sysbios.xdcruntime [in C:/ti/bios_6_33_01_25/packages/ti/sysbios/xd
cruntime/] was built using 'ti.targets.arm.elf.Arm9' [1,0,4.9,0]
; package ti.sysbios.utils [in C:/ti/bios_6_33_01_25/packages/ti/sysbios/utils/]
 was built using 'ti.targets.arm.elf.Arm9' [1,0,4.9,0]

Adding the following line to your program configuration script:
        environment['xdc.cfg.check.fatal'] = 'false';
converts this incompatibility error into a warning. Please, check the documentat
ion for the package xdc.cfg for more information.
xdctools_3_23_01_43\gmake.exe: *** [package/cfg/mutex_pe9.xdl] Error 1
js: "C:/ti/xdctools_3_23_01_43/packages/xdc/tools/Cmdr.xs", line 51: Error: xdc.
tools.configuro: configuration failed due to earlier errors (status = 2); 'linke
r.cmd' deleted.

  • Stefan,

    I just tried it and it worked albeit I have slightly older versions of everything. Here are the steps I did to get the task example to build.

    I create a new project within CCS and set the fields accordingly:

    Then I did next and select the platform.

    Then I did a "Build Project". Can you confirm these are the steps you used?

    Todd

  • Yes, I did exactly the same as you.

    What i don't understand is that it works from command line.
    Call gmake -k all directly in Debug or Release directory.
    It crashes only if i use CCS 5.1.1.

    Do you use also Windows 7 ?

  • Problem found !

    You can install CCS5.x only properly without "BeyondTrust PowerBroker Desktop Client" software.
    If this software is installed, some functions won't work later.
    It is possible to compile a simple hello world.
    But xs functions will crash later.

    The installation doesn't depend on rights as "run elevated" or admin.

    Thanks for help !

    Stefan