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: CMEM issues

Part Number: AM5728

Now I have confirmed the starting address and address range of DDR,But how to get the address of DSP_CMEM_IOBUFS ? please to help me

  • The IPC experts have been notified. They will respond here.
  • Hi LJK,

    DSP_CMEM_IOBUFS corresponds to the address of CMEM block defined in the Linux device tree. These values must match. For AM572x, you can find the device tree file at arch/arm/boot/dts/am57xx-evm-cmem.dtsi.

    The following app note provides some details on this as well:
    www.ti.com/.../sprac60.pdf

    If you have any further questions please let me know.
  • but the DSP_MEM_IPC_VRING was 0xA0000000, and can I set the DSP_CMEM_IOBUFS is 0xB0000000 ? Thanks !

  • LJK,

    You will have to place the CMEM buffers somewhere else since the vring buffers are already at 0xA0000000.

    We have a Big Data IPC example called simple_buffer_example with CMEM already implemented that you may use as reference:

  • when I compiled the big-data-ipc-demo, I was get a warning, please to tell me how to solve this problem ? thanks !

  • LJK,

    By default Ubuntu uses “dash” as the default shell for /bin/sh. You must reconfigure to use bash. How to do this is explained in the Quick Start section of the Processor SDK Linux Developer's Guide.

    Please make sure you have gone through all the steps listed in that guide and try the build again. 

  • [BEGIN] 2018/5/17 15:46:33
    work@work-virtual-machine:~$ cd ti-processor-sdk-linux-am57xx-evm-04.01.00.06/
    work@work-virtual-machine:~/ti-processor-sdk-linux-am57xx-evm-04.01.00.06$ ls
    bin  board-support  docs  example-applications  filesystem  linux-devkit  linux-devkit.sh  Makefile  Rules.make  setup.sh
    work@work-virtual-machine:~/ti-processor-sdk-linux-am57xx-evm-04.01.00.06$ sudo make big-data-ipc-demo
    [sudo] password for work: 
    ==================================================
    Building the big data ipc demo: Linux host
    ==================================================
    make[1]: Entering directory '/home/work/ti-processor-sdk-linux-am57xx-evm-04.01.00.06/example-applications/big-data-ipc-demo-linux-01.01.00.00'
    #
    # Making host_linux/simple_buffer_example...
    make -C host_linux/simple_buffer_example all
    make[2]: Entering directory '/home/work/ti-processor-sdk-linux-am57xx-evm-04.01.00.06/example-applications/big-data-ipc-demo-linux-01.01.00.00/host_linux/simple_buffer_example'
    #
    # Making dsp ...
    make -C dsp PROCLIST="host dsp" \
    	DSP_PLATFORM=ti.platforms.evmDRA7XX:dsp \
    	PROC_HOST_NAME=""HOST"" \
    	PROC_DSP_NAME=""DSP1"" \
    	PROC_NAME_LIST="\\\""HOST"\\\", \\\"IPU1\\\", \\\"IPU2\\\", \\\"DSP2\\\", \\\"DSP1\\\"" \
    	SERVER="""DSP1"""
    #
    # Making host ...
    make -C host PROCLIST="host dsp" \
    	DSP_PLATFORM=ti.platforms.evmDRA7XX:dsp \
    	PROC_HOST_NAME=""HOST"" \
    	PROC_DSP_NAME=""DSP1"" \
    	PROC_NAME_LIST="\\\""HOST"\\\", \\\"IPU1\\\", \\\"IPU2\\\", \\\"DSP2\\\", \\\"DSP1\\\"" \
    	SERVER="""DSP1"""
    make[3]: Entering directory '/home/work/ti-processor-sdk-linux-am57xx-evm-04.01.00.06/example-applications/big-data-ipc-demo-linux-01.01.00.00/host_linux/simple_buffer_example/dsp'
    make PROFILE=release PROCLIST="host dsp" server_dsp.x
    make[3]: Entering directory '/home/work/ti-processor-sdk-linux-am57xx-evm-04.01.00.06/example-applications/big-data-ipc-demo-linux-01.01.00.00/host_linux/simple_buffer_example/host'
    #
    # Making all ...
    make[4]: Entering directory '/home/work/ti-processor-sdk-linux-am57xx-evm-04.01.00.06/example-applications/big-data-ipc-demo-linux-01.01.00.00/host_linux/simple_buffer_example/dsp'
    make PROFILE=release app_host
    #
    #
    #
    # Making bin/DRA7XX/release/obj/MainDsp.oe66 ...
    # Making bin/DRA7XX/release/configuro/linker.cmd ...
    #
    /home/work/ti/ti-cgt-c6000_8.1.3/bin/cl6x -c  -qq -pdsw225 -ppd=bin/DRA7XX/release/obj/MainDsp.oe66.dep -ppa -O2 -@bin/DRA7XX/release/configuro/compiler.opt -I. -I../shared/DRA7XX -I../shared/bigdataxlat -I../shared/bigdataxlat/bios --output_file=bin/DRA7XX/release/obj/MainDsp.oe66 -fc MainDsp.c
    # Making bin/shared/DRA7XX/release/obj/shared/bigdataxlat/bigdataxlat.oe66 ...
    /home/work/ti/xdctools_3_32_01_22_core/xs --xdcpath="/home/work/ti/bios_6_46_05_55/packages;/home/work/ti/packages;/home/work/ti/xdctools_3_32_01_22_core/packages" \
                xdc.tools.configuro -o bin/DRA7XX/release/configuro \
                -t ti.targets.elf.C66 \
                -c /home/work/ti/ti-cgt-c6000_8.1.3 \
                -p ti.platforms.evmDRA7XX:dsp \
                -b ../shared/DRA7XX/config.bld -r release \
                --cfgArgs "{ \
                    procnamelist: [\"HOST\", \"IPU1\", \"IPU2\", \"DSP2\", \"DSP1\"], \
                    procname: \"DSP1\", \
                    profile: \"release\" \
                }" \
                Dsp.cfg
    /home/work/ti/ti-cgt-c6000_8.1.3/bin/cl6x -c  -qq -pdsw225 -ppd=bin/shared/DRA7XX/release/obj/shared/bigdataxlat/bigdataxlat.oe66.dep -ppa -O2 -@bin/DRA7XX/release/configuro/compiler.opt -I. -I../shared/DRA7XX -I../shared/bigdataxlat -I../shared/bigdataxlat/bios --output_file=bin/shared/DRA7XX/release/obj/shared/bigdataxlat/bigdataxlat.oe66 -fc ../shared/bigdataxlat/bigdataxlat.c
    # Making bin/DRA7XX/release/obj/Server.oe66 ...
    /home/work/ti/ti-cgt-c6000_8.1.3/bin/cl6x -c  -qq -pdsw225 -ppd=bin/DRA7XX/release/obj/Server.oe66.dep -ppa -O2 -@bin/DRA7XX/release/configuro/compiler.opt -I. -I../shared/DRA7XX -I../shared/bigdataxlat -I../shared/bigdataxlat/bios --output_file=bin/DRA7XX/release/obj/Server.oe66 -fc Server.c
    make[4]: Entering directory '/home/work/ti-processor-sdk-linux-am57xx-evm-04.01.00.06/example-applications/big-data-ipc-demo-linux-01.01.00.00/host_linux/simple_buffer_example/host'
    make[4]: Nothing to be done for 'app_host'.
    make[4]: Leaving directory '/home/work/ti-processor-sdk-linux-am57xx-evm-04.01.00.06/example-applications/big-data-ipc-demo-linux-01.01.00.00/host_linux/simple_buffer_example/host'
    make[3]: Leaving directory '/home/work/ti-processor-sdk-linux-am57xx-evm-04.01.00.06/example-applications/big-data-ipc-demo-linux-01.01.00.00/host_linux/simple_buffer_example/host'
    "../shared/bigdataxlat/bios/_bigdataxlat.h", line 33: fatal error: cannot open source file "ti/ipc/SharedRegion.h"
    1 catastrophic error detected in the compilation of "../shared/bigdataxlat/bigdataxlat.c".
    Compilation terminated.
    
    >> Compilation failure
    makefile:78: recipe for target 'bin/shared/DRA7XX/release/obj/shared/bigdataxlat/bigdataxlat.oe66' failed
    make[4]: *** [bin/shared/DRA7XX/release/obj/shared/bigdataxlat/bigdataxlat.oe66] Error 1
    make[4]: *** Waiting for unfinished jobs....
    "Server.c", line 52: fatal error: cannot open source file "ti/ipc/MessageQ.h"
    1 catastrophic error detected in the compilation of "Server.c".
    Compilation terminated.
    
    >> Compilation failure
    makefile:73: recipe for target 'bin/DRA7XX/release/obj/Server.oe66' failed
    make[4]: *** [bin/DRA7XX/release/obj/Server.oe66] Error 1
    "MainDsp.c", line 46: fatal error: cannot open source file "ti/ipc/Ipc.h"
    1 catastrophic error detected in the compilation of "MainDsp.c".
    Compilation terminated.
    
    >> Compilation failure
    makefile:73: recipe for target 'bin/DRA7XX/release/obj/MainDsp.oe66' failed
    make[4]: *** [bin/DRA7XX/release/obj/MainDsp.oe66] Error 1
    configuring Dsp.xe66 from package/cfg/Dsp_pe66.cfg ...
    js: "/home/work/ti-processor-sdk-linux-am57xx-evm-04.01.00.06/example-applications/big-data-ipc-demo-linux-01.01.00.00/host_linux/simple_buffer_example/dsp/Dsp.cfg", line 56: xdc.services.global.XDCException: xdc.PACKAGE_NOT_FOUND: can't locate the package 'ti.ipc.ipcmgr' along the path: '/home/work/ti/bios_6_46_05_55/packages;/home/work/ti/packages;/home/work/ti/xdctools_3_32_01_22_core/packages;/home/work/ti/xdctools_3_32_01_22_core/packages;..;'. Ensure that the package path is set correctly.
        "./package/cfg/Dsp_pe66.cfg", line 244
    gmake: *** [package/cfg/Dsp_pe66.xdl] Error 1
    Warning: directory "/home/work/ti/packages" on package path does not exist
    js: "/home/work/ti/xdctools_3_32_01_22_core/packages/xdc/tools/Cmdr.xs", line 52: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted.
    makefile:83: recipe for target 'bin/DRA7XX/release/configuro/linker.cmd' failed
    make[4]: *** [bin/DRA7XX/release/configuro/linker.cmd] Error 1
    make[4]: Leaving directory '/home/work/ti-processor-sdk-linux-am57xx-evm-04.01.00.06/example-applications/big-data-ipc-demo-linux-01.01.00.00/host_linux/simple_buffer_example/dsp'
    makefile:63: recipe for target 'release' failed
    make[3]: *** [release] Error 2
    make[3]: Leaving directory '/home/work/ti-processor-sdk-linux-am57xx-evm-04.01.00.06/example-applications/big-data-ipc-demo-linux-01.01.00.00/host_linux/simple_buffer_example/dsp'
    makefile:95: recipe for target 'dsp' failed
    make[2]: *** [dsp] Error 2
    make[2]: Leaving directory '/home/work/ti-processor-sdk-linux-am57xx-evm-04.01.00.06/example-applications/big-data-ipc-demo-linux-01.01.00.00/host_linux/simple_buffer_example'
    makefile:51: recipe for target 'host_linux/simple_buffer_example' failed
    make[1]: *** [host_linux/simple_buffer_example] Error 2
    make[1]: Leaving directory '/home/work/ti-processor-sdk-linux-am57xx-evm-04.01.00.06/example-applications/big-data-ipc-demo-linux-01.01.00.00'
    Makefile:871: recipe for target 'big-data-ipc-demo-linux' failed
    make: *** [big-data-ipc-demo-linux] Error 2
    work@work-virtual-machine:~/ti-processor-sdk-linux-am57xx-evm-04.01.00.06$ ls -al /bin/sh
    lrwxrwxrwx 1 root root 4 5月  17 09:44 /bin/sh -> bash
    
    [END] 2018/5/17 15:47:51
    

    Thank you for your reply ! But I still have some problems .This is my compiled' log , please to help me ,thank you very much !

  • Is it convenient to give me a detailed compilation step?
  • LJK,

    Processor SDK RTOS is required to build the DSP side binaries. Please make sure you have this installed. The versions need to match so you'll need to download v4.1 of the RTOS SDK as well. 

    I was able to build without problems running the following commands.

    $ export TI_RTOS_PATH=/home/sahinlocal/ti/am57xx-4.1/              

    (my RTOS SDK is located at /home/sahinlocal/ti/am57xx-4.1/processor_sdk_rtos_am57xx_4_01_00_06)

    $ cd ti-processor-sd-linux-am57xx-evm-04.01.00.06

    $ make big-data-ipc-demo_clean

    $ make big-data-ipc-demo