微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 无线和射频 > TI WIFI设计交流 > CC3100 SDK中的案例http_client案例无法正常编译

CC3100 SDK中的案例http_client案例无法正常编译

时间:10-02 整理:3721RD 点击:

版本为1.2.0和1.1.0中的案例都尝试编译都失败了。理论上我没有对案例中程序进行修改,inport后直接编译的。报错如下:

"../main.c", line 940: error #29: expected an expression

参考一下这个帖子里的回复

https://e2e.ti.com/support/wireless_connectivity/simplelink_wifi_cc31xx_cc32xx/f/968/t/573030

是否是IP设置的问题,

This is the wrong way to set an IP:
"appData.DestinationIP = 1981590148"
Change the octets into hex format, and concatenate.
#define IP_ADDR 0xc0a80064 /* 192.168.0.100 */

您好,根据您的回答,在前面定义了

#define HOST_PORT              80

语句:

addr.sin_port = htons(HOST_PORT);

就通过了。

原来定义的是:

#define HOST_PORT              <80>

新的问题错误如下:

'Building target: http_client.out'
'Invoking: MSP430 Linker'
"D:/TI/ccsv6/tools/compiler/ti-cgt-msp430_4.4.5/bin/cl430" -vmspx --abi=eabi --data_model=restricted -g --define=__MSP430F5529__ --define=__SL__ --define=__CCS__ --define=_USE_CLI_ --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"D:/TI/ccsv6/ccs_base/msp430/include" -i"D:/TI/http_client/simplelink/include" -i"D:/TI/CC3100SDK_1.2.0/cc3100-sdk/platform/msp430f5529lp/library_project_ccs/http_lib/Debug" -i"D:/TI/ccsv6/tools/compiler/ti-cgt-msp430_4.4.5/lib" -i"D:/TI/ccsv6/tools/compiler/ti-cgt-msp430_4.4.5/include" -i"D:/TI/ccsv6/ccs_base/msp430/lib/5xx_6xx_FRxx" --reread_libs --priority --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" "./spi/spi.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" "./cli_uart/cli_uart.obj" "./board/board.obj" "../lnk_msp430f5529.cmd" -l"libc.a" -l"libmath.a"
<Linking>

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

以下是我的Linker的截图:

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top