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.

AM5728: Building IPC Linux source

Part Number: AM5728

I'm trying to build the Linux source for IPC from the IPC quick start guide.

http://software-dl.ti.com/processor-sdk-linux/esd/docs/latest/linux/Foundational_Components_IPC.html#ipc-quick-start-guide

The binaries build and run correctly on my AM5728, but now I'm trying to import the source files into Code Composer Studio to modify and build the project myself.

The built linux source is in located in the following directory. <RTOS_SDK_INSTALL_DIR>/ipc_3_50_04_07/linux/src/tests/MessageQBench.c

I have tried several methods but have failed to build the project in CCS myself. What are the steps to build the IPC MessageQBench.c project in CCS?

  • Hello Andre,

    We are in the process of restructuring and rewriting the IPC documentation, so I apologize if it is a bit messy right now.

    Does section "Add IPC to the UART Example" of the IPC for AM57xx documentation address your issue?

    Regards,

    Nick

  • I will look at this next sprint (2 weeks) and get back to you.

  • After carefully following the instructions in that example, I ended up with the following error:

    **** Build of configuration Debug for project UART_BasicExample_evmAM572x_m4ExampleProject_andre_ipc ****
    
    /home/andre/ti/ccs910/ccs/utils/bin/gmake -k -j 8 all -O 
     
    Building file: "/home/andre/ti/pdk_am57xx_1_0_16/packages/ti/drv/uart/example/sample/am572x/m4/bios/uart_m4_evmAM572x.cfg"
    Invoking: XDCtools
    "/home/andre/ti/ccs910/xdctools_3_55_02_22_core/xs" --xdcpath="/home/andre/ti/bios_6_76_02_02/packages;/home/andre/ti/pdk_am57xx_1_0_16/packages;/home/andre/ti/edma3_lld_2_12_05_30E/packages;/home/andre/ti/ipc_3_50_04_07/packages;/home/andre/ti/ndk_3_61_01_01/packages;/home/andre/ti/uia_2_30_01_02/packages;" xdc.tools.configuro -o configPkg -t ti.targets.arm.elf.M4 -p ti.platforms.evmDRA7XX:ipu2 -r debug -b "/home/andre/workspace_v9/UART_BasicExample_evmAM572x_m4ExampleProject_andre_ipc/shared/config.bld" -c "/home/andre/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS" "/home/andre/ti/pdk_am57xx_1_0_16/packages/ti/drv/uart/example/sample/am572x/m4/bios/uart_m4_evmAM572x.cfg"
    making package.mak (because of package.bld) ...
    generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
    configuring uart_m4_evmAM572x.xem4 from package/cfg/uart_m4_evmAM572x_pem4.cfg ...
    subdir_rules.mk:24: recipe for target 'build-1421503537-inproc' failed
    js: "/home/andre/ti/pdk_am57xx_1_0_16/packages/ti/drv/uart/example/sample/am572x/m4/bios/uart_m4_evmAM572x.cfg", line 265: TypeError: Cannot read property "configBld" from null (/home/andre/ti/pdk_am57xx_1_0_16/packages/ti/drv/uart/example/sample/am572x/m4/bios/uart_m4_evmAM572x.cfg#265)
        "./package/cfg/uart_m4_evmAM572x_pem4.cfg", line 255
    gmake: *** [package.mak:203: package/cfg/uart_m4_evmAM572x_pem4.xdl] Error 1
    js: "/home/andre/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-1421503537-inproc] Error 1
    gmake: *** [build-1421503537] Error 2
    subdir_rules.mk:21: recipe for target 'build-1421503537' failed
    gmake: Target 'all' not remade because of errors.
    
    **** Build Finished ****
    

    I think its coming from here:

    var cfgArgs = Program.build.cfgArgs;
    var configBld = xdc.loadCapsule(cfgArgs.configBld);

    For some reason, it looks like cfgArgs is returning null;

  • I am able to get the example project to build, I see differences between the instructions and the sample IPU project.

    http://software-dl.ti.com/processor-sdk-linux/esd/docs/latest/_downloads/UART_BasicExample_evmAM572x_m4ExampleProject_with_ipc.zip

    Question 1: I am trying to work this example with a DSP example, but I am yet able to do so. Do you have any example projects with the IPC merged into a DSP project?

    Another issue is getting this project to run. The instructions say

    "In order to run the UART Example on M4, you need to disable the UART in the Linux DTB file and interact with the Linux kernel using Telnet (This will be described later in the article)."

    However, I was unable to see where this process was described.

    Question 2: Can you please point me in the right direction.

  • I haven't heard anything in about 2 months, and I wanted to follow up on the progress of the IPC documentation. 

  • Hello Andre,

    I apologize for losing track of this thread. I'll take a more in depth look at your response later this week.

    Our first big overhaul of the IPC documentation should get pushed to the web later in January, but I do not think it will address your immediate question.

    Regards,

    Nick

  • Hello Andre,

    Apologies for the delayed response. Section "Add IPC to the LED Blink Example" in the IPC for AM57xx documentation covers creating a DSP CCS project (the original link I pointed to was for an IPU project). There is a zip file that should have a fully functional DSP CCS project at the end of the section.

    Other than DSP/IPU specifics, most of the steps in those two sections are identical.

    Regards,

    Nick