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/CC3100: CC3100

Part Number: CC3100
Other Parts Discussed in Thread: MSP430F5529, ,

Tool/software: Code Composer Studio

I am trying out the http client app from the CC3100 sdk example library. I am using MSP430F5529 launchpad and cc3100Boost module. I am getting follwing compile errors

**** Build of configuration Debug for project http_client ****

"C:\\TI\\ccsv6\\utils\\bin\\gmake" -k all
'Building file: ../main.c'
'Invoking: MSP430 Compiler'
"C:/TI/ccsv6/tools/compiler/msp430_4.3.8/bin/cl430" -vmspx --abi=coffabi --include_path="C:/TI/ccsv6/ccs_base/msp430/include" --include_path="C:/TI/CC3100SDK_1.2.0/cc3100-sdk/netapps" --include_path="C:/TI/CC3100SDK_1.2.0/cc3100-sdk/examples/common" --include_path="C:/TI/CC3100SDK_1.2.0/cc3100-sdk/simplelink/include" --include_path="C:/TI/CC3100SDK_1.2.0/cc3100-sdk/simplelink/source" --include_path="C:/TI/CC3100SDK_1.2.0/cc3100-sdk/platform/msp430f5529lp" --include_path="C:/TI/ccsv6/tools/compiler/msp430_4.3.8/include" -g --define=HTTPCli_LIBTYPE_MIN --define=__SL__ --define=__CCS__ --define=_USE_CLI_ --define=__MSP430F5529__ --diag_warning=225 --display_error_number --diag_wrap=off --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU23 --silicon_errata=CPU40 --printf_support=full --preproc_with_compile --preproc_dependency="main.d" "../main.c"
'Finished building: ../main.c'
' '
'Building target: http_client.out'
'Invoking: MSP430 Linker'
"C:/TI/ccsv6/tools/compiler/msp430_4.3.8/bin/cl430" -vmspx --abi=coffabi -g --define=HTTPCli_LIBTYPE_MIN --define=__SL__ --define=__CCS__ --define=_USE_CLI_ --define=__MSP430F5529__ --diag_warning=225 --display_error_number --diag_wrap=off --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU23 --silicon_errata=CPU40 --printf_support=full -z -m"http_client.map" --heap_size=500 --stack_size=500 --use_hw_mpy=F5 --cinit_hold_wdt=on -i"C:/TI/ccsv6/ccs_base/msp430/include" -i"C:/TI/CC3100SDK_1.2.0/cc3100-sdk/platform/msp430f5529lp/library_project_ccs/http_lib/Debug" -i"C:/TI/ccsv6/tools/compiler/msp430_4.3.8/lib" -i"C:/TI/ccsv6/tools/compiler/msp430_4.3.8/include" -i"C:/TI/ccsv6/ccs_base/msp430/lib/5xx_6xx_FRxx" --reread_libs --warn_sections --display_error_number --diag_wrap=off --xml_link_info="http_client_linkInfo.xml" --rom_model -o "http_client.out" "./jsmn.obj" "./main.obj" "./board/board.obj" "./cli_uart/cli_uart.obj" "./simplelink/source/device.obj" "./simplelink/source/driver.obj" "./simplelink/source/flowcont.obj" "./simplelink/source/fs.obj" "./simplelink/source/netapp.obj" "./simplelink/source/netcfg.obj" "./simplelink/source/nonos.obj" "./simplelink/source/socket.obj" "./simplelink/source/spawn.obj" "./simplelink/source/wlan.obj" "./spi/spi.obj" "../lnk_msp430f5529.cmd" -llibc.a -lhttp_lib.lib
<Linking>
error #10008-D: cannot find file "http_lib.lib"

undefined first referenced
symbol in file
--------- ----------------
HTTPCli_connect ./main.obj
HTTPCli_construct ./main.obj
HTTPCli_getResponseField ./main.obj
HTTPCli_getResponseStatus ./main.obj
HTTPCli_readResponseBody ./main.obj
HTTPCli_sendField ./main.obj
HTTPCli_sendRequest ./main.obj
HTTPCli_sendRequestBody ./main.obj
HTTPCli_setRequestFields ./main.obj
HTTPCli_setResponseFields ./main.obj

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

>> Compilation failure
makefile:163: recipe for target 'http_client.out' failed
gmake: *** [http_client.out] Error 1
gmake: Target 'all' not remade because of errors.

**** Build Finished ****

I followed this on the community and found this thread pn the community.

"CC3100 + MSP430F5529LP Example HTTP Client don't work"

 I have added following macros in project properties, as shown in the attached file. I still cannot get the project to compile 

HTTPCli_LIBTYPE_MIN

__SL__

_USE_CLI_

__CCS__

Is there any step I am missing?

Kaustubh

  • Hi Kaustubh,

    I noticed from your other post that you resolved the http_lib issue, but you're still having problems with resolving "libmath.a". I would suggest making sure your using the most up-to-date compiler for both http_client and http_lib (Properties>General>Compiler version) and that the output format is ELF, not legacy COFF. I would also try verifying your File Search Path, it should look  like this:

    Best regards,

    Alexis

  • Hi Alexis,

    Thanks for helping me resolve the "libmath.a" issue, but I still have the code size limit issue.

    "C:\\TI\\ccsv6\\utils\\bin\\gmake" -k all
    'Building target: http_client.out'
    'Invoking: MSP430 Linker'
    "C:/TI/ccsv6/tools/compiler/msp430_4.2.7/bin/cl430" -vmspx --abi=eabi --data_model=restricted -O0 -g --define=HTTPCli_LIBTYPE_MIN --define=__SL__ --define=__CCS__ --define=_USE_CLI_ --define=__MSP430F5529__ --diag_warning=225 --display_error_number --diag_wrap=off --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU23 --silicon_errata=CPU40 --printf_support=full -z -m"http_client.map" --heap_size=500 --stack_size=500 --use_hw_mpy=F5 --cinit_hold_wdt=on -i"C:/TI/ccsv6/ccs_base/msp430/include" -i"C:/Users/kaustubhk/workspace_v6_2/http_lib/Debug" -i"C:/TI/ccsv6/tools/compiler/msp430_4.2.7/lib" -i"C:/TI/ccsv6/tools/compiler/msp430_4.2.7/include" -i"C:/TI/ccsv6/ccs_base/msp430/lib/5xx_6xx_FRxx" --reread_libs --warn_sections --display_error_number --diag_wrap=off --xml_link_info="http_client_linkInfo.xml" --rom_model -o "http_client.out" "./jsmn.obj" "./main.obj" "./board/board.obj" "./cli_uart/cli_uart.obj" "./simplelink/source/device.obj" "./simplelink/source/driver.obj" "./simplelink/source/flowcont.obj" "./simplelink/source/fs.obj" "./simplelink/source/netapp.obj" "./simplelink/source/netcfg.obj" "./simplelink/source/nonos.obj" "./simplelink/source/socket.obj" "./simplelink/source/spawn.obj" "./simplelink/source/wlan.obj" "./spi/spi.obj" "../lnk_msp430f5529.cmd" -llibc.a -lhttp_lib.lib -llibmath.a
    <Linking>
    error #10269: output file "http_client.out" exceeds code size limit
    error #10010: errors encountered during linking; "http_client.out" not built

    >> Compilation failure
    makefile:164: recipe for target 'http_client.out' failed
    gmake: *** [http_client.out] Error 1
    gmake: Target 'all' not remade because of errors.

    is this meant to run on MSP430F5529 board?
    Kaustubh
  • Kaustubh,

    Make sure you're using the latest version of CCS. You can download the latest version HERE.

    Best regards,

    Alexis

  • Kaustubh,

    After looking at your build console again it also looks like you're still linking to an old compiler :
    "C:/TI/ccsv6/tools/compiler/msp430_4.2.7/bin/cl430"

    Make sure you're linking to the correct "tools/compiler" folder

    Best regards,
    Alexis