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/AM5728: VPS loopback example compile error

Part Number: AM5728

Tool/software: Code Composer Studio

I've rebuilt PDK with this link http://processors.wiki.ti.com/index.php/Rebuilding_The_PDK#PDK_Example_and_Test_Project_Creation

I ran "./pdkProject Crate.sh AM572x all little vps all dsp"

I import "vps_loopbackExample-idkAM572x_C66ExampleProject", and compile it.

finally, I got following compile error.

>> Compilation failure
makefile:147: recipe for target 'vps_loopbackExample_idkAM572x_C66ExampleProject.out' failed
"configPkg/linker.cmd", line 190: warning #10097: memory range not found: APP_CACHED_DATA_BLK1_MEM on page 0
"configPkg/linker.cmd", line 190: error #10265: no valid memory range(null) available for placement of ".bss:frameBuffer"
"configPkg/linker.cmd", line 190: error #10099-D: program will not fit into available memory.  run placement with alignment fails for section ".bss:frameBuffer" size 0xf200000
"configPkg/linker.cmd", line 189: warning #10097: memory range not found: APP_UNCACHED_DATA_BLK3_MEM on page 0
"configPkg/linker.cmd", line 189: error #10265: no valid memory range(null) available for placement of ".bss:extMemNonCache:vpdma"
"configPkg/linker.cmd", line 189: error #10099-D: program will not fit into available memory.  run placement with alignment fails for section ".bss:extMemNonCache:vpdma" size 0x1ca40
"configPkg/linker.cmd", line 191: warning #10097: memory range not found: APP_CODE_MEM on page 0
"configPkg/linker.cmd", line 191: error #10099-D: program will not fit into available memory.  run placement with alignment fails for section ".plt" size 0x0
error #10010: errors encountered during linking; "vps_loopbackExample_idkAM572x_C66ExampleProject.out" not built
gmake[1]: *** [vps_loopbackExample_idkAM572x_C66ExampleProject.out] Error 1
gmake: *** [all] Error 2
makefile:143: recipe for target 'all' failed

**** Build Finished ****

I did not change any source code and I got same error message both windows and linux environment.

Please let me know what was problem.

Thanks in advance.

Doug

  • The RTOS team have been notified. They will respond here.
  • Hi,

    Can you clarify what Processor SDK RTOS release for this? Also, if you are using IDK AM572x EVM, please use pdkProject Crate.sh AM572x idkAM572x little vps all dsp to specify the board as "idkAM572x" instead of "all".

    Regards, Eric
  • I have excuted "pdkProject Crate.sh AM572x idkAM572x little vps all dsp".

    I got new error messages

    Error opening input image file! workspace_v7/vps_loopbackExample_idkAM572x_C66ExampleProject/Debug/vps_loopbackExample_idkAM572x_C66ExampleProject.out.rprc
     
    /ti/pdk_am57xx_1_0_9/packages/ti/boot/sbl/tools/scripts/AM57xImageGen.sh: line 121: mono: command not found

    **** Build Finished ****

    ---- AM57xImageGen.sh ---------

    #Set the variable to point to a dummy Test Image to avoid generation of a dummy app image.
    if [ -z $APP_DSP1 ]; then
        export APP_DSP1=$PDK_INSTALL_PATH/ti/boot/sbl/binary/testApp
    fi
    if [ -f $APP_DSP1  ]
    then
        export DSP1_CPU=$DSP1_ID
        export image_gen=1
        export APP_DSP1_RPRC=$APP_DSP1.rprc

        mono "$TOOLS_PATH/out2rprc/bin/out2rprc.exe" $APP_DSP1 $APP_DSP1_RPRC   #  <== Line 121
    else
        echo "$APP_DSP1 does not exists"
    fi

    I have question about this script.

    1. This is linux shell script but out2rprc.exe looks like windows execution file.

    2. I cannot find out2rprc source code that's why I cannot make out2rprc linux execution file.

    3. I just run out2rprc.exe in linux shell then I got following error message

       bash: ./out2rprc.exe : cannot execute binary file: Exec format error

    Thank you

    Doug

  • Hi,

    Seems there is an issue in the script in the Linux installer package. The pdkprojectcreate.sh calls the:
    -ccs.setPostBuildStep "\${TI_PDK_INSTALL_DIR}/packages/pdkAppImageCreate.sh \${TI_PDK_INSTALL_DIR}/packages \${CG_TOOL_ROOT} \${PROJECT_LOC}/\${ConfigName} \${ProjName} $SOC $PROCESSOR" \;

    Then pdkAppImageCreate.sh calls ti/boot/sbl/tools/scripts/AM57xImageGen.sh, in turn it calls: mono "$TOOLS_PATH/out2rprc/bin/out2rprc.exe"

    However the out2rprc.exe is Windows executable. The distribution doesn't have the Linux one.

    Most of our RTOS processor user run the Windows so we overlooked this problem. I opened a ticket for a fix. As a workaround, please remove the CCS post build step, as you just need to create CCS project, not converting the output into a binary.
    -ccs.setPostBuildStep "\${TI_PDK_INSTALL_DIR}/packages/pdkAppImageCreate.sh \${TI_PDK_INSTALL_DIR}/packages \${CG_TOOL_ROOT} \${PROJECT_LOC}/\${ConfigName} \${ProjName} $SOC $PROCESSOR" \;

    Regards, Eric