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.

missing http_lib.lib library from cc3100sdk_1.2.0

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

Tool/software: Code Composer Studio

Hi. I am running ccs7 on windows 7 with cc3100sdk_1.2.0 and trying to import the http_client example from the msp430f5529lp platform examples. When I compile the code, I get a "cannot find file http_lib.lib" error. I am able to import and compile the getting_started_with_wlan_station.

Hardware is msp430f5529 launchpad and cc3100 booster.

Should this file be in the sdk. I have searched my hard drive and did not find this file present so I have nothing to point the linker to. Without this file, I get unresolved symbol errors (HTTPCli_sendRequest, HTTPCli_readResponseBody, etc).

The file search path in the properties msp430 linker indicates that http_lib.lib should be an included library.

Does anyone have any suggestions on how to proceed?

Thanks

  • Hi Nick,

    It looks like the pre-built http_lib.lib is missing from the most recent CC3100 SDK, so you will have to import the CCS project, build the library, and link it to your http_client example.

    1. Import the http_lib project into CCS from <cc3100-sdk>\platform\msp430f5529lp\library_project_ccs\http_lib

    2. Build the http_lib project with the most recent MSP430 compiler or whatever MSP430 compiler you are using wit the http_client example.

    3. In the http_client example Properties, go to Build-> MSP430 Linker -> File Search Path and change the old http_lib path ("${CC3100_SDK_ROOT}/platform/msp430f5529lp/library_project_ccs/http_lib/Debug") to your newly built library ("${WORKSPACE_LOC}/http_lib/Debug").


    If you rebuild the example again and get an error about the data memory model, you may have to go back to the http_lib project properties and change Build -> MSP430 Compiler -> Processor Options -> Specify the data memory model -> restricted. Then rebuild both the library and the example again.

    Best regards,
    Sarah
  • That worked. Thank you.

  • Hi, 

    I was getting the similar problem and I tried the above solution. Th linking problem disappeared but now I am getting the following error in console.

    ' '
    'Building target: http_client.out'
    'Invoking: MSP430 Linker'
    "C:/TI/ccsv6/tools/compiler/msp430_4.2.7/bin/cl430" -vmspx --abi=coffabi --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>
    warning #10204-D: could not resolve index library "libmath.a" to a compatible library
    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.

    I am using MSP430F5529 launchpad with CC3100Boost board.

  • Sorry I can't be of much help here. I would suggesting opening a new thread with this question. I did notice that your directive -i"C:/TI/ccsv6/ccs_base/msp430/lib/5xx_6xx_FRxx" refers to the FRAM version of this processor. Maybe a configuration issue is causing the llibmath.a conflict?

    Good luck!
  • Alternatively you could find the respective files in CC3100SDK_1.2.0/cc3100-sdk/netapps directory