FYI: Here is a potential fix for the following problem:
Context: Codec Engine 2.23.01 for Linux, CodeGen 6.0.22 or 6.1.8, XDCtools 3.10.03. Build target is OMAP3530.
When building these two drivers (in cetools/packages/ti/sdo/fc), the default scripts would fail when compiling for the DSP:
cl64P package/package_ti.sdo.fc.edma3.c ...
ERROR: Cannot use STABS debug options with 6400+
(CodeGen 6.1.8 also complains that 6740 would fail.)
The root cause of the issue is that the "-gp" option is being passed to the cl6x compiler for the xdc profiles of "profile" and "coverage", but this option is not supported for the DSP processor in OMAP3530.
I was able to fix this by changing the option to "--gen_profile_info" (for "profile") and "--codecov --use_profile_info" (for "coverage") by inserting the following into examples/user.bld in the last "for" loop (labeled "specify custom toolchain options"; add an "if" similar to (and just after) the LONGNAME setting for GCArmv5T):
if (t.name == "C64P") {
// CodeGen (both 6.0.22 and 6.1.8) does not accept "-gp" for this processor,
// as set by default by xdctools_3_10_03/packages/ti/targets/ITarget.xdc.
// Change to options that are supported by cl6x of CodeGen 6.1.8.
t.profiles["profile" ].compileOpts.copts = "--gen_profile_info";
t.profiles["coverage"].compileOpts.copts = "--codecov --use_profile_info";
}
So this combination seems to work for me. With any luck, this will be helpful to someone else.
I'd love to hear of other combinations (especially newer ones) that might be easier. -Dirk