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.

Compiling Client MCSDK example for 6472

Other Parts Discussed in Thread: SYSBIOS

Hi,

 

I am compiling Client example of MCSDK for NDK and SYS BIOS for C6472. I am using CCS 4.2. Without making any changes if i make build for little Endian then it goes smoothly. But when i am trying to change setting for Endianess using CCS Buils Option in IDE then It given error (are given below). As much i can understand it is because NDK library has not been linked. I want to know why it is not included for Big Endiane mode and whi it is included default in littel endiane mode. I have not done any changes just changed the CCS Build option as Big previouslt it was Little by default. Is this a problem with tool C:/CCS_V4/xdctools_3_22_01_21/xs or CCS 4.2?

A Special print comes when i change the setting for Big Endian mode marked as Red and errors are marked as Blue.

Please help....

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

**** Build of configuration Debug for project client_evm6472 ****

C:\CCS_V4\ccsv4\utils\gmake\gmake -k all
'Building file: ../client.cfg'
'Invoking: XDCtools'
"C:/CCS_V4/xdctools_3_22_01_21/xs" --xdcpath="C:/CCS_V4/ndk_2_20_02_22/packages;C:/CCS_V4/bios_6_32_02_39/packages;C:/CCS_V4/mcsdk_1_00_00_08/packages;C:/CCS_V4/mcsdk_1_00_00_08/packages;C:/CCS_V4/xdais_7_10_00_06/packages;C:/CCS_V4/xdais_7_10_00_06/examples;" xdc.tools.configuro -o configPkg -t ti.targets.C64P_big_endian -p ti.platforms.evm6472 -r whole_program -c "C:/CCS_V4/ccsv4/tools/compiler/c6000" "../client.cfg"
making package.mak (because of package.bld) ...
generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
configuring client.p64Pe from package/cfg/client_p64Pe.cfg ...
warning: ti.sysbios.BIOS: "C:/CCS_V4/bios_6_32_02_39/packages/ti/sysbios/BIOS.xs", line 382: Profile Deprecation Warning ti.sysbios.BIOS: The 'whole_program' build profile will not be supported in future releases of SYS/BIOS.  Use 'release' or 'debug' profiles together with the 'BIOS.libType' configuration parameter to specify your preferred library.  See the compatibility section of your SYS/BIOS release notes for more information.
warning: ti.sysbios.knl.Task: "C:/CCS_V4/bios_6_32_02_39/packages/ti/sysbios/knl/Task.xs", line 168: .far:taskStackSection : The Task.defaultTaskSection name has been changed to ".far:taskStackSection".  Please update your Program.sectMap[] setting accordingly.
unrecognized or unsupported suffix: 64Pe
unrecognized or unsupported suffix: 64Pe

cl64Pe package/cfg/client_p64Pe.c ...
lnk64Pe client.p64Pe ...
'Finished building: ../client.cfg'
' '
'Building file: ../client.c'
'Invoking: Compiler'
"C:/CCS_V4/ccsv4/tools/compiler/c6000/bin/cl6x" -mv64+ -g --include_path="C:/CCS_V4/ccsv4/tools/compiler/c6000/include" --include_path="C:/CCS_V4/mcsdk_1_00_00_08/packages/ti/csl/C6472/csl_c6472/inc" --include_path="C:/CCS_V4/mcsdk_1_00_00_08/packages/ti/drv/emac" --include_path="C:/Program Files/Texas Instruments/mcsdk_1_00_00_08/packages/ti/platform/nimu/test/evm6472/client" --include_path="C:/CCS_V4/ndk_2_20_02_22/packages/ti/ndk/inc" --include_path="C:/CCS_V4/ndk_2_20_02_22/packages/ti/ndk/inc/tools" --include_path="C:/CCS_V4/mcsdk_1_00_00_08/packages/ti/platform/inc" --include_path="C:/CCS_V4/bios_6_32_02_39/packages/ti/bios/include" --diag_warning=225 --big_endian --preproc_with_compile --preproc_dependency="client.pp" --cmd_file="./configPkg/compiler.opt"  "../client.c"
'Finished building: ../client.c'
' '
'Building file: ../webpage.c'
'Invoking: Compiler'
"C:/CCS_V4/ccsv4/tools/compiler/c6000/bin/cl6x" -mv64+ -g --include_path="C:/CCS_V4/ccsv4/tools/compiler/c6000/include" --include_path="C:/CCS_V4/mcsdk_1_00_00_08/packages/ti/csl/C6472/csl_c6472/inc" --include_path="C:/CCS_V4/mcsdk_1_00_00_08/packages/ti/drv/emac" --include_path="C:/Program Files/Texas Instruments/mcsdk_1_00_00_08/packages/ti/platform/nimu/test/evm6472/client" --include_path="C:/CCS_V4/ndk_2_20_02_22/packages/ti/ndk/inc" --include_path="C:/CCS_V4/ndk_2_20_02_22/packages/ti/ndk/inc/tools" --include_path="C:/CCS_V4/mcsdk_1_00_00_08/packages/ti/platform/inc" --include_path="C:/CCS_V4/bios_6_32_02_39/packages/ti/bios/include" --diag_warning=225 --big_endian --preproc_with_compile --preproc_dependency="webpage.pp" --cmd_file="./configPkg/compiler.opt"  "../webpage.c"
'Finished building: ../webpage.c'
' '
'Building target: client_evm6472.out'
'Invoking: Linker'
"C:/CCS_V4/ccsv4/tools/compiler/c6000/bin/cl6x" -mv64+ -g --diag_warning=225 --big_endian -z -m"client_evm6472.map" --warn_sections -i"C:/CCS_V4/ccsv4/tools/compiler/c6000/lib" -i"C:/CCS_V4/ccsv4/tools/compiler/c6000/include" -i"C:/CCS_V4/mcsdk_1_00_00_08/packages/ti/platform/nimu/lib" -i"C:/CCS_V4/mcsdk_1_00_00_08/packages/ti/drv/emac/lib" -i"C:/CCS_V4/mcsdk_1_00_00_08/packages/ti/csl/c6472/csl_c6472/lib" -i"C:/CCS_V4/mcsdk_1_00_00_08/packages/ti/platform/lib" --reread_libs --rom_model -o "client_evm6472.out" -l"./configPkg/linker.cmd"  "./webpage.obj" "./client.obj" -l"nimu_eth.lib" -l"csl_c6472e.lib" -l"emac_drv_c6472.lib" -l"platform_utils_evm6472.lib" -l"libc.a"
<Linking>

 undefined              first referenced                                                                                                                             
  symbol                    in file                                                                                                                                  
 ---------              ----------------                                                                                                                             
 _CONTENT_TYPE_HTML     ./webpage.obj                                                                                                                                
 _CRLF                  ./webpage.obj                                                                                                                                
 _CfgAddEntry           ./client.obj                                                                                                                                 
 _CfgEntryDeRef         ./client.obj                                                                                                                                 
 _CfgEntryGetData       ./client.obj                                                                                                                                 
 _CfgFree               ./client.obj                                                                                                                                 
 _CfgGetEntry           ./client.obj                                                                                                                                 
 _CfgGetImmediate       ./client.obj                                                                                                                                 
 _CfgNew                ./client.obj                                                                                                                                 
 _CfgRemoveEntry        ./client.obj                                                                                                                                 
 _ConsoleClose          ./client.obj                                                                                                                                 
 _ConsoleOpen           ./client.obj                                                                                                                                 
 _DNSErrorStrings       ./webpage.obj                                                                                                                                
 _DNSGetHostByAddr      ./webpage.obj                                                                                                                                
 _DaemonFree            ./client.obj                                                                                                                                 
 _DaemonNew             ./client.obj                                                                                                                                 
 _LLIGetMacAddr         ./webpage.obj                                                                                                                                
 _NC_NetStart           ./client.obj                                                                                                                                 
 _NC_SystemClose        ./client.obj                                                                                                                                 
 _NC_SystemOpen         ./client.obj                                                                                                                                 
 _NDK_hookCreate        C:/Program Files/Texas Instruments/mcsdk_1_00_00_08/packages/ti/platform/nimu/test/evm6472/client/Debug/configPkg/package/cfg/client.p64Pe.obj
 _NDK_hookInit          C:/Program Files/Texas Instruments/mcsdk_1_00_00_08/packages/ti/platform/nimu/test/evm6472/client/Debug/configPkg/package/cfg/client.p64Pe.obj
 _NtIPN2Str             ./webpage.obj                                                                                                                                
 _RtWalkBegin           ./webpage.obj                                                                                                                                
 _RtWalkEnd             ./webpage.obj                                                                                                                                
 _RtWalkNext            ./webpage.obj                                                                                                                                
 _SockGetPcb            ./webpage.obj                                                                                                                                
 _TaskCreate            ./client.obj                                                                                                                                 
 _TaskExit              ./client.obj                                                                                                                                 
 _TaskSleep             ./client.obj                                                                                                                                 
 __oscfg                ./client.obj                                                                                                                                 
 _cgiParseMultiVars     ./webpage.obj                                                                                                                                
 _cgiParseVars          ./webpage.obj                                                                                                                                
 _dtask_tcp_datasrv     ./client.obj                                                                                                                                 
 _dtask_tcp_echo        ./client.obj                                                                                                                                 
 _dtask_tcp_nullsrv     ./client.obj                                                                                                                                 
 _dtask_tcp_oobsrv      ./client.obj                                                                                                                                 
 _dtask_udp_echo        ./client.obj                                                                                                                                 
 _efs_createfile        ./webpage.obj                                                                                                                                
 _efs_destroyfile       ./webpage.obj                                                                                                                                
 _getpeername           ./webpage.obj                                                                                                                                
 _getsockname           ./webpage.obj                                                                                                                                
 _httpSendClientStr     ./webpage.obj                                                                                                                                
 _httpSendErrorResponse ./webpage.obj                                                                                                                                
 _httpSendStatusLine    ./webpage.obj                                                                                                                                
 _inet_addr             ./client.obj                                                                                                                                 
 _llEnter               ./webpage.obj                                                                                                                                
 _llExit                ./webpage.obj                                                                                                                                
 _llTimerTick           C:/Program Files/Texas Instruments/mcsdk_1_00_00_08/packages/ti/platform/nimu/test/evm6472/client/Debug/configPkg/package/cfg/client.p64Pe.obj
 _mmBulkAlloc           ./webpage.obj                                                                                                                                
 _mmBulkFree            ./webpage.obj                                                                                                                                
 _mmZeroInit            ./client.obj                                                                                                                                 
 _recv                  ./webpage.obj                                                                                                                                

error: unresolved symbols remain
error: errors encountered during linking; "client_evm6472.out" not built

>> Compilation failure
gmake: *** [client_evm6472.out] Error 1
gmake: Target `all' not remade because of errors.
Build complete for project client_evm6472

  • Arun,

    Please try to build your NDK & NSP versions for Big Endianess.

    After this, link the appropriate(Big endian) NSP lib in the Client project.

    This should solve your problem.

    Regards

    Prasad V Joshi

  • Hi Prasad,

    There is no need to build as per my understanding as bigendiane library are already build in with NDK like nettool.lib and nettoole.lib both are present in same Lib folder of NDK.

  • Arun,

    I dont know about the NDK & NSP versions you are using. Therefore i am just suggesting you to look into that direction.

    What about NSP? Is it built for big endian & have you linked big endian libs in client project? 

    Regards

    Prasad V Joshi

  • This problem is due to a bug in the NDK version you are using.  The big endian libraries are present, however the file which "picks" the correct library has a bug in that it is missing support for the C64P BE target.

    You can work around this issue by replacing the file:

    C:\Program Files\Texas Instruments\ndk_2_20_02_22_eng\packages\ti\ndk\config\package.xs4401.package.xs.zip

    in your NDK 2.20.02.22 installation with the newer one that's attached. (NOTE: due to our strange restrictions on attachments of certain file types, I had to rename the file to be "package.xs.zip".  Please rename it to be "package.xs".  Also note that it is *not* a zip file, I simply renamed it as such in order to allow it to be attached).

    Or, if you don't like messing with the installed product, you can download the latest NDK release and build against that, as it has the fix contained within it.  The latest NDK release can be found here:

    http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/ndk/ndk_2_20_04_26/index_FDS.html

    Steve

  • Hi Steven,

     

    Thanks a lot. Your comment solved my problem.

     

  • Hi Steven,

     

    Thanks for resolution. I have one more problem can you please help me.

    If possible help me link is given below:

     

    http://e2e.ti.com/support/dsp/c6000_multi-core_dsps/f/439/p/136841/492328.aspx