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.

mDNS compilation on TIVA TM4C123

Other Parts Discussed in Thread: TM4C123GH6PM, CC3100, CC3100SDK

Hi,

I want to try mDNS on my Tiva TM4C123GH6PM with CC3100 custom board. After installing CCS6.0.1, I create a Hello World CCS project, taking TI v5.1.6 as compiler. Then I drag and drop C:\ti\CC3100SDK_1.0.0\cc3100-sdk\examples\mdns\main.c to the project (with "Copy" option selected) and delete hello.c.

In Build Settings of the project, Build - ARM- Include options, I add to the upper window the following 3 paths: "C:\ti\CC3100SDK_1.0.0\cc3100-sdk\simplelink\include", "C:\ti\CC3100SDK_1.0.0\cc3100-sdk\examples\common" and "C:\ti\CC3100SDK_1.0.0\cc3100-sdk\platform\tiva-c-launchpad". I can then pass the build phase easily but when linking, the below error appears:

**** Build of configuration Debug for project mDNS ****

"c:\\ti\\ccsv6\\utils\\bin\\gmake" -k all 
'Building file: ../main.c'
'Invoking: ARM Compiler'
"c:/ti/ccsv6/tools/compiler/arm_5.1.6/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 --abi=eabi -me --include_path="c:/ti/ccsv6/tools/compiler/arm_5.1.6/include" --include_path="C:/ti/CC3100SDK_1.0.0/cc3100-sdk/simplelink/include" --include_path="C:/ti/CC3100SDK_1.0.0/cc3100-sdk/examples/common" --include_path="C:/ti/CC3100SDK_1.0.0/cc3100-sdk/platform/tiva-c-launchpad" -g --gcc --define=ccs="ccs" --define=PART_TM4C123GH6PM --display_error_number --diag_warning=225 --diag_wrap=off --preproc_with_compile --preproc_dependency="main.pp"  "../main.c"
'Finished building: ../main.c'
' '
'Building file: ../tm4c123gh6pm_startup_ccs.c'
'Invoking: ARM Compiler'
"c:/ti/ccsv6/tools/compiler/arm_5.1.6/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 --abi=eabi -me --include_path="c:/ti/ccsv6/tools/compiler/arm_5.1.6/include" --include_path="C:/ti/CC3100SDK_1.0.0/cc3100-sdk/simplelink/include" --include_path="C:/ti/CC3100SDK_1.0.0/cc3100-sdk/examples/common" --include_path="C:/ti/CC3100SDK_1.0.0/cc3100-sdk/platform/tiva-c-launchpad" -g --gcc --define=ccs="ccs" --define=PART_TM4C123GH6PM --display_error_number --diag_warning=225 --diag_wrap=off --preproc_with_compile --preproc_dependency="tm4c123gh6pm_startup_ccs.pp"  "../tm4c123gh6pm_startup_ccs.c"
'Finished building: ../tm4c123gh6pm_startup_ccs.c'
' '
'Building target: mDNS.out'
'Invoking: ARM Linker'
"c:/ti/ccsv6/tools/compiler/arm_5.1.6/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 --abi=eabi -me -g --gcc --define=ccs="ccs" --define=PART_TM4C123GH6PM --display_error_number --diag_warning=225 --diag_wrap=off -z -m"mDNS.map" --heap_size=0 --stack_size=512 -i"c:/ti/ccsv6/tools/compiler/arm_5.1.6/lib" -i"c:/ti/ccsv6/tools/compiler/arm_5.1.6/include" --reread_libs --warn_sections --display_error_number --diag_wrap=off --xml_link_info="mDNS_linkInfo.xml" --rom_model -o "mDNS.out"  "./main.obj" "./tm4c123gh6pm_startup_ccs.obj" "../tm4c123gh6pm.cmd" -l"libc.a" 
<Linking>

 undefined                      first referenced
  symbol                            in file     
 ---------                      ----------------
 CLI_Configure                  ./main.obj      
 CLI_Write                      ./main.obj      
 _SlNonOsMainLoopTask           ./main.obj      
 initClk                        ./main.obj      
 sl_DevGet                      ./main.obj      
 sl_NetAppDnsGetHostByService   ./main.obj      
 sl_NetAppMDNSRegisterService   ./main.obj      
 sl_NetAppMDNSUnRegisterService ./main.obj      
 sl_NetCfgSet                   ./main.obj      
 sl_Start                       ./main.obj      
 sl_Stop                        ./main.obj      
 sl_WlanConnect                 ./main.obj      
 sl_WlanDisconnect              ./main.obj      
 sl_WlanPolicySet               ./main.obj      
 sl_WlanProfileDel              ./main.obj      
 sl_WlanRxFilterSet             ./main.obj      
 sl_WlanSet                     ./main.obj      
 sl_WlanSetMode                 ./main.obj      
 stopWDT                        ./main.obj      

error #10234-D: unresolved symbols remain
error #10010: errors encountered during linking; "mDNS.out" not built

>> Compilation failure
gmake: *** [mDNS.out] Error 1
gmake: Target `all' not remade because of errors.

**** Build Finished ****

These link errors are due to the inability to find the source code of the listed functions.

AFAIK, CLI_Configure function is in cli_uart.c under "C:\ti\CC3100SDK_1.0.0\cc3100-sdk\platform\tiva-c-launchpad" which was already included above but it seems the compiler (TI v5.1.6) just ignores. I tried to add that path to library search path in Project settings - Build - ARM Linker - File Search Path but that does not help.

My questions:

1) C:\ti\CC3100SDK_1.0.0\cc3100-sdk\examples\mdns\main.c is the right source code to experiment mDNS service? If not, could you show me the correct link or mDNS sample project?

2) How to make the compiler (TI v5.1.6) "understand" functions in C source files such as cli_uart.c

Thanks in advance,