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/TMDXIDK57X-LCD: Importing IPC example

Part Number: TMDXIDK57X-LCD

Tool/software: Code Composer Studio

Hello Team,

I have an am5728 IDK and I am trying to import an example provided by ti, to code composer studio, I have another open issue about IPC, ti example resides in "C:\ti\ipc_3_50_03_05\examples\AM572X_bios_elf\ex02_messageq" , so far, I have found some useful points in here  and here, following are steps I have done to compile  Host part of the example (cortex A15):

I added (copy) these files to my project: App.c, App.h, AppCommon.h, mainHost.c, ipc.cfg.xs, Host.cfg.

I also removed main.c and .cfg files from the default project created by CCS.

I also changed:

 var ipc_cfg = xdc.loadCapsule("../shared/ipc.cfg.xs");  to var ipc_cfg = xdc.loadCapsule("ipc.cfg.xs"); in Host.cfg

#include "../shared/AppCommon.h" to #include "AppCommon.h" in app.c.

I added "C:\ti\ipc_3_50_03_05\examples\AM572X_bios_elf\ex02_messageq\shared\config.bld to XDCTools=> advanced options

(at this point, I'm not sure whether to add profile:debug in --cfgArgs or not)

I added a ":host" to my platform 

when I hit the build, following errors occur:

**** Build of configuration Debug for project A15_ipcFromExmpl ****

"C:\\ti\\ccs910\\ccs\\utils\\bin\\gmake" -k -j 8 all -O 
 
Building file: "../Host.cfg"
Invoking: XDCtools
"C:/ti/ccs910/xdctools_3_55_02_22_core/xs" --xdcpath="C:/ti/bios_6_75_02_00/packages;C:/ti/uia_2_30_01_02/packages;C:/ti/ipc_3_50_03_05/packages;" xdc.tools.configuro -o configPkg -t gnu.targets.arm.A15F -p ti.platforms.evmAM572X:host -r release -b "C:/ti/ipc_3_50_03_05/examples/AM572X_bios_elf/ex02_messageq/shared/config.bld" -c "C:/ti/ccs910/ccs/tools/compiler/gcc-arm-none-eabi-7-2017-q4-major-win32" "../Host.cfg"
configuring Host.xa15fg from package/cfg/Host_pa15fg.cfg ...
subdir_rules.mk:19: recipe for target 'build-626052207-inproc' failed
js: "E:/projects_folder/codeComposerStudio/IPCTestProject001/A15_ipcFromExmpl/Host.cfg", line 42: TypeError: Cannot read property "profile" from null (E:/projects_folder/codeComposerStudio/IPCTestProject001/A15_ipcFromExmpl/Host.cfg#42)
    "./package/cfg/Host_pa15fg.cfg", line 224
xdctools_3_55_02_22_core\gmake.exe: *** [package.mak:234: package/cfg/Host_pa15fg.xdl] Error 1
js: "C:/ti/ccs910/xdctools_3_55_02_22_core/packages/xdc/tools/Cmdr.xs", line 52: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted.
gmake[1]: *** [build-626052207-inproc] Error 1
gmake: *** [build-626052207] Error 2
subdir_rules.mk:16: recipe for target 'build-626052207' failed
gmake: Target 'all' not remade because of errors.

**** Build Finished ****

I'm using bios_6_75_02_00, ccs9_10, ipc_3_50_03_05, xdctools_3_51_01_18, and rocessor_sdk_rtos_am57xx_6_00_00_07.

Here is my project folder:

IPCTestProject001.zip

any help would be appreciated.

Regards,

Alex.

  • OK, still I don't know where I am supposed to enter related input in CCS so that Program.build.cfgArgs can return something instead of null, But, I figured it out by creating an object in my *.cfg files like bellow:

    ...
    var Program = xdc.useModule('xdc.cfg.Program');
    Program.build.cfgArgs = {profile:"debug"};  /* i added this line */
    var cfgArgs = Program.build.cfgArgs;
    var RB = (cfgArgs.profile == "release" ? true : false);
    ...

    Here is my project folder including cortex-A15 and C66x projects if someone was facing the same issue.

    IPCTestProject001.rar

    and this is the result:

    But my question still remains unanswered.

    B.R,

    Alex.

  • Hi Alex,

    Your method of adding cfg arguments works just as well, but you can also add the arguments in your CCS build settings > Build > XDCtools > Advanced Options > Configuration script arguments (--cfgArgs).

    Regards,
    Sahin

  • Hi Sahin,

    settings > Build > XDCtools > Advanced Options > Configuration script arguments (--cfgArgs) is what I was thinking, but I was wrong about the syntax, I had already tried profile:"debug" and  profile:debug, after your post I also tried  profile=debug and finally my journey stoped at profile="debug" which is the correct syntax!!

    Thank you for your help.

    Bests,

    Alex.