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.
您好!
是否有人可以为 TMS320F28388D 的 Modbus TCP/IP 提供示例项目? 这是为了将 TMS320F28388D 与 PLC 通信
谢谢你。
您好!
由于接下来的三天是 TI 印度节假日、因此请预计会有一些延迟。
您好!
我们没有您正在寻找的确切示例、但也有类似的示例。 有一个基于 lwip TCP/IP 堆栈的 Web 服务器示例、但在以太网上。
您可以在此处找到该项目 \libraries\communications\ethernet/third_party/lwip\examples\enet_lwip\cm\、然后 按照工程中 readme.txt 中的步骤开始使用。
有一个接口层 f2838xif.c、用于将网络堆栈与以太网 IP 连接。 您可能需要查看此内容并尝试根据 Modbus 要求进行更新。
此致、
Yashwant
您好!
感谢您的回复。 我能够使用 lwIP 示例在控制卡和 PC 之间建立通信、它既适用于网络服务器、也适用于从 PC ping。 您能告诉我吗、我能不能通过修改 f2838xif.c 文件来与 PLC 通信、或者我还需要做任何其他更改?
此致、
Dushan
通过简单的网络搜索、可以得到以下使用 socket (4)并使用 lwIP 协议栈 https://www.programrsought.com/article/59761635631/的 Modbus TCP 应用示例。
您可能需要对此进行研究。
此致、
Yashwant
您好!
感谢您的回复。 我尝试在 enet_lwip 示例中启用套接字、但显示错误
平路机、
Dushan
查找现有 e2e 是否存在类似错误。 如果它们是链接器 cmd 错误、请尝试为所需的段分配更多内存。
您好!
我找不到任何有关使用 lwip 的机具方式的 e2e 螺纹
您能否粘贴错误的图像。
-yashwant
//***************************************************************************** // // lwipopts.h - Configuration file for lwIP // //***************************************************************************** // // NOTE: This file has been derived from the lwIP/src/include/lwip/opt.h // header file. // // For additional details, refer to the original "opt.h" file, and lwIP // documentation. // //***************************************************************************** #ifndef __LWIPOPTS_H__ #define __LWIPOPTS_H__ //***************************************************************************** // // ---------- Stellaris / lwIP Port Options ---------- // //***************************************************************************** #define HOST_TMR_INTERVAL 100 // default is 0 //#define DHCP_EXPIRE_TIMER_MSECS (60 * 1000) //#define INCLUDE_HTTPD_SSI //#define INCLUDE_HTTPD_CGI //#define DYNAMIC_HTTP_HEADERS //#define INCLUDE_HTTPD_DEBUG //***************************************************************************** // // ---------- Platform specific locking ---------- // //***************************************************************************** #define SYS_LIGHTWEIGHT_PROT 1 // default is 0 #define NO_SYS 1 // default is 0 //#define MEMCPY(dst,src,len) memcpy(dst,src,len) //#define SMEMCPY(dst,src,len) memcpy(dst,src,len) //***************************************************************************** // // ---------- Memory options ---------- // //***************************************************************************** //#define MEM_LIBC_MALLOC 0 #define MEM_ALIGNMENT 4 // default is 1 #define MEM_SIZE (10 * 1024) // default is 1600, was 16K //#define MEMP_OVERFLOW_CHECK 0 //#define MEMP_SANITY_CHECK 0 //#define MEM_USE_POOLS 0 //#define MEMP_USE_CUSTOM_POOLS 0 //***************************************************************************** // // ---------- Internal Memory Pool Sizes ---------- // //***************************************************************************** #define MEMP_NUM_PBUF 10 // Default 16, was 16 //#define MEMP_NUM_RAW_PCB 4 #define MEMP_NUM_UDP_PCB 6 #define MEMP_NUM_TCP_PCB 10 // Default 5, was 12 #define MEMP_NUM_TCP_PCB_LISTEN 6 #define MEMP_NUM_TCP_SEG 12 //#define MEMP_NUM_REASSDATA 5 //#define MEMP_NUM_ARP_QUEUE 30 //#define MEMP_NUM_IGMP_GROUP 8 //#define MEMP_NUM_SYS_TIMEOUT 3 //#define MEMP_NUM_NETBUF 2 //#define MEMP_NUM_NETCONN 4 //#define MEMP_NUM_TCPIP_MSG_API 8 //#define MEMP_NUM_TCPIP_MSG_INPKT 8 #define PBUF_POOL_SIZE 12 // Default 16, was 36 //***************************************************************************** // // ---------- ARP options ---------- // //***************************************************************************** #define LWIP_ARP 1 #define ARP_TABLE_SIZE 10 #define ARP_QUEUEING 1 #define ETHARP_TRUST_IP_MAC 1 //***************************************************************************** // // ---------- IP options ---------- // //***************************************************************************** //#define IP_FORWARD 0 //#define IP_OPTIONS_ALLOWED 1 #define IP_REASSEMBLY 0 // default is 1 #define IP_FRAG 0 // default is 1 //#define IP_REASS_MAXAGE 3 //#define IP_REASS_MAX_PBUFS 10 //#define IP_FRAG_USES_STATIC_BUF 1 //#define IP_FRAG_MAX_MTU 1500 //#define IP_DEFAULT_TTL 255 //***************************************************************************** // // ---------- ICMP options ---------- // //***************************************************************************** #define LWIP_ICMP 1 #define ICMP_TTL (IP_DEFAULT_TTL) //***************************************************************************** // // ---------- RAW options ---------- // //***************************************************************************** //#define LWIP_RAW 1 //#define RAW_TTL (IP_DEFAULT_TTL) //***************************************************************************** // // ---------- DHCP options ---------- // //***************************************************************************** #define LWIP_DHCP 1 // default is 0 //#define DHCP_DOES_ARP_CHECK ((LWIP_DHCP) && (LWIP_ARP)) //***************************************************************************** // // ---------- UPNP options ---------- // //***************************************************************************** //#define LWIP_UPNP 0 //***************************************************************************** // // ---------- PTPD options ---------- // //***************************************************************************** //#define LWIP_PTPD 0 //***************************************************************************** // // ---------- AUTOIP options ---------- // //***************************************************************************** #define LWIP_AUTOIP 1 // default is 0 #define LWIP_DHCP_AUTOIP_COOP ((LWIP_DHCP) && (LWIP_AUTOIP)) // default is 0 #define LWIP_DHCP_AUTOIP_COOP_TRIES 5 // default is 9 //***************************************************************************** // // ---------- SNMP options ---------- // //***************************************************************************** //#define LWIP_SNMP 0 //#define SNMP_CONCURRENT_REQUESTS 1 //#define SNMP_TRAP_DESTINATIONS 1 //#define SNMP_PRIVATE_MIB 0 //#define SNMP_SAFE_REQUESTS 1 //***************************************************************************** // // ---------- IGMP options ---------- // //***************************************************************************** //#define LWIP_IGMP 1 //***************************************************************************** // // ---------- DNS options ----------- // //***************************************************************************** //#define LWIP_DNS 0 //#define DNS_TABLE_SIZE 4 //#define DNS_MAX_NAME_LENGTH 256 //#define DNS_MAX_SERVERS 2 //#define DNS_DOES_NAME_CHECK 1 //#define DNS_USES_STATIC_BUF 1 //#define DNS_MSG_SIZE 512 //***************************************************************************** // // ---------- UDP options ---------- // //***************************************************************************** #define LWIP_UDP 1 //#define LWIP_UDPLITE 0 //#define UDP_TTL (IP_DEFAULT_TTL) //***************************************************************************** // // ---------- TCP options ---------- // //***************************************************************************** #define LWIP_TCP 1 #define TCP_TTL (IP_DEFAULT_TTL) #define TCP_WND (2*TCP_MSS) // default is 2048 //#define TCP_MAXRTX 12 //#define TCP_SYNMAXRTX 6 #define TCP_QUEUE_OOSEQ 0 #define TCP_MSS (1500 - 40) // default is 128 //#define TCP_CALCULATE_EFF_SEND_MSS 1 #define TCP_SND_BUF (4 * TCP_MSS) // default is 256, was 6 * #define TCP_SND_QUEUELEN (2 * (TCP_SND_BUF/TCP_MSS)) //#define TCP_SNDLOWAT (TCP_SND_BUF/2) //#define TCP_LISTEN_BACKLOG 0 //#define TCP_DEFAULT_LISTEN_BACKLOG 0xff //***************************************************************************** // // ---------- API options ---------- // //***************************************************************************** #define LWIP_EVENT_API 0 #define LWIP_CALLBACK_API 1 //***************************************************************************** // // ---------- Pbuf options ---------- // //***************************************************************************** #define PBUF_LINK_HLEN 16 // default is 14 #define PBUF_POOL_BUFSIZE 512 // default is LWIP_MEM_ALIGN_SIZE(TCP_MSS+40+PBUF_LINK_HLEN) #define ETH_PAD_SIZE 0 // default is 0 //***************************************************************************** // // ---------- Network Interfaces options ---------- // //***************************************************************************** //#define LWIP_NETIF_HOSTNAME 0 //#define LWIP_NETIF_API 0 //#define LWIP_NETIF_STATUS_CALLBACK 0 //#define LWIP_NETIF_LINK_CALLBACK 0 //#define LWIP_NETIF_HWADDRHINT 0 //***************************************************************************** // // ---------- LOOPIF options ---------- // //***************************************************************************** //#define LWIP_HAVE_LOOPIF 0 //#define LWIP_LOOPIF_MULTITHREADING 1 //***************************************************************************** // // ---------- Thread options ---------- // //***************************************************************************** //#define TCPIP_THREAD_NAME "tcpip_thread" //#define TCPIP_THREAD_STACKSIZE 0 //#define TCPIP_THREAD_PRIO 1 //#define TCPIP_MBOX_SIZE 0 //#define SLIPIF_THREAD_NAME "slipif_loop" //#define SLIPIF_THREAD_STACKSIZE 0 //#define SLIPIF_THREAD_PRIO 1 //#define PPP_THREAD_NAME "pppMain" //#define PPP_THREAD_STACKSIZE 0 //#define PPP_THREAD_PRIO 1 //#define DEFAULT_THREAD_NAME "lwIP" //#define DEFAULT_THREAD_STACKSIZE 0 //#define DEFAULT_THREAD_PRIO 1 //#define DEFAULT_RAW_RECVMBOX_SIZE 0 //#define DEFAULT_UDP_RECVMBOX_SIZE 0 //#define DEFAULT_TCP_RECVMBOX_SIZE 0 //#define DEFAULT_ACCEPTMBOX_SIZE 0 //***************************************************************************** // // ---------- Sequential layer options ---------- // //***************************************************************************** #define LWIP_TCPIP_CORE_LOCKING 0 #define LWIP_NETCONN 1 // default is 1 //***************************************************************************** // // ---------- Socket Options ---------- // //***************************************************************************** #define LWIP_SOCKET 1 // default is 1 #define LWIP_COMPAT_SOCKETS 0 //#define LWIP_POSIX_SOCKETS_IO_NAMES 1 //#define LWIP_TCP_KEEPALIVE 0 //#define LWIP_SO_RCVTIMEO 0 //#define LWIP_SO_RCVBUF 0 //#define SO_REUSE 0 //***************************************************************************** // // ---------- Statistics options ---------- // //***************************************************************************** #define LWIP_STATS 0 #define LWIP_PROVIDE_ERRNO 1 //#define LWIP_STATS_DISPLAY 0 //#define LINK_STATS 1 //#define ETHARP_STATS (LWIP_ARP) //#define IP_STATS 1 //#define IPFRAG_STATS (IP_REASSEMBLY || IP_FRAG) //#define ICMP_STATS 1 //#define IGMP_STATS (LWIP_IGMP) //#define UDP_STATS (LWIP_UDP) //#define TCP_STATS (LWIP_TCP) //#define MEM_STATS 1 //#define MEMP_STATS 1 //#define SYS_STATS 1 //***************************************************************************** // // ---------- PPP options ---------- // //***************************************************************************** //#define PPP_SUPPORT 0 //#define PPPOE_SUPPORT 0 //#define PPPOS_SUPPORT PPP_SUPPORT #if PPP_SUPPORT //#define NUM_PPP 1 //#define PAP_SUPPORT 0 //#define CHAP_SUPPORT 0 //#define MSCHAP_SUPPORT 0 //#define CBCP_SUPPORT 0 //#define CCP_SUPPORT 0 //#define VJ_SUPPORT 0 //#define MD5_SUPPORT 0 //#define FSM_DEFTIMEOUT 6 //#define FSM_DEFMAXTERMREQS 2 //#define FSM_DEFMAXCONFREQS 10 //#define FSM_DEFMAXNAKLOOPS 5 //#define UPAP_DEFTIMEOUT 6 //#define UPAP_DEFREQTIME 30 //#define CHAP_DEFTIMEOUT 6 //#define CHAP_DEFTRANSMITS 10 //#define LCP_ECHOINTERVAL 0 //#define LCP_MAXECHOFAILS 3 //#define PPP_MAXIDLEFLAG 100 //#define PPP_MAXMTU 1500 //#define PPP_DEFMRU 296 #endif //***************************************************************************** // // ---------- checksum options ---------- // //***************************************************************************** #define CHECKSUM_GEN_IP 0 //#define CHECKSUM_GEN_UDP 1 #define CHECKSUM_GEN_TCP 0 #define CHECKSUM_CHECK_IP 0 //#define CHECKSUM_CHECK_UDP 1 #define CHECKSUM_CHECK_TCP 0 //***************************************************************************** // // ---------- Debugging options ---------- // //***************************************************************************** #if 0 #define U8_F "c" #define S8_F "c" #define X8_F "x" #define U16_F "u" #define S16_F "d" #define X16_F "x" #define U32_F "u" #define S32_F "d" #define X32_F "x" extern void UARTprintf(const char *pcString, ...); #define LWIP_DEBUG #endif //#define LWIP_DBG_MIN_LEVEL LWIP_DBG_LEVEL_OFF #define LWIP_DBG_MIN_LEVEL LWIP_DBG_LEVEL_OFF //#define LWIP_DBG_MIN_LEVEL LWIP_DBG_LEVEL_WARNING //#define LWIP_DBG_MIN_LEVEL LWIP_DBG_LEVEL_SERIOUS //#define LWIP_DBG_MIN_LEVEL LWIP_DBG_LEVEL_SEVERE //#define LWIP_DBG_TYPES_ON LWIP_DBG_ON #define LWIP_DBG_TYPES_ON (LWIP_DBG_ON|LWIP_DBG_TRACE|LWIP_DBG_STATE|LWIP_DBG_FRESH) //#define ETHARP_DEBUG LWIP_DBG_ON // default is OFF //#define NETIF_DEBUG LWIP_DBG_ON // default is OFF //#define PBUF_DEBUG LWIP_DBG_OFF //#define API_LIB_DEBUG LWIP_DBG_OFF //#define API_MSG_DEBUG LWIP_DBG_OFF //#define SOCKETS_DEBUG LWIP_DBG_OFF //#define ICMP_DEBUG LWIP_DBG_OFF //#define IGMP_DEBUG LWIP_DBG_OFF //#define INET_DEBUG LWIP_DBG_OFF //#define IP_DEBUG LWIP_DBG_ON // default is OFF //#define IP_REASS_DEBUG LWIP_DBG_OFF //#define RAW_DEBUG LWIP_DBG_OFF //#define MEM_DEBUG LWIP_DBG_OFF //#define MEMP_DEBUG LWIP_DBG_OFF //#define SYS_DEBUG LWIP_DBG_OFF //#define TCP_DEBUG LWIP_DBG_OFF //#define TCP_INPUT_DEBUG LWIP_DBG_OFF //#define TCP_FR_DEBUG LWIP_DBG_OFF //#define TCP_RTO_DEBUG LWIP_DBG_OFF //#define TCP_CWND_DEBUG LWIP_DBG_OFF //#define TCP_WND_DEBUG LWIP_DBG_OFF //#define TCP_OUTPUT_DEBUG LWIP_DBG_OFF //#define TCP_RST_DEBUG LWIP_DBG_OFF //#define TCP_QLEN_DEBUG LWIP_DBG_OFF //#define UDP_DEBUG LWIP_DBG_ON // default is OFF //#define TCPIP_DEBUG LWIP_DBG_OFF //#define PPP_DEBUG LWIP_DBG_OFF //#define SLIP_DEBUG LWIP_DBG_OFF //#define DHCP_DEBUG LWIP_DBG_ON // default is OFF //#define AUTOIP_DEBUG LWIP_DBG_OFF //#define SNMP_MSG_DEBUG LWIP_DBG_OFF //#define SNMP_MIB_DEBUG LWIP_DBG_OFF //#define DNS_DEBUG LWIP_DBG_OFF #endif /* __LWIPOPTS_H__ */
这是我的 lwipopts.h 文件
**** Build of configuration Flash for project enet_lwip **** "C:\\ti\\ccs1011\\ccs\\utils\\bin\\gmake" -k all Building file: "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/examples/enet_lwip/cm/enet_lwip.c" Invoking: ARM Compiler "C:/ti/ti-cgt-arm_18.12.2.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=none -me -O0 --opt_for_speed=0 --include_path="C:/ti/ti-cgt-arm_18.12.2.LTS/include" --include_path="C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/apps/http" --include_path="C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip" --include_path="C:/Users/Sahan Sanjaya/workspace_v10/enet_lwip" --include_path="C:/ti/C2000Ware_3_04_00_00_Software/driverlib/f2838x" --include_path="C:/ti/C2000Ware_3_04_00_00_Software/driverlib/f2838x/driverlib_cm" --include_path="C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/examples/enet_lwip/cm" --include_path="C:/ti/C2000Ware_3_04_00_00_Software/driverlib/f2838x" --include_path="C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2" --include_path="C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/include" --include_path="C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/apps" --include_path="C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/ports/C2000/include" --define=_FLASH --define=ccs -g --diag_warning=225 --gen_func_subsections=on --abi=eabi --ual --preproc_with_compile --preproc_dependency="enet_lwip.d_raw" "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/examples/enet_lwip/cm/enet_lwip.c" "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/examples/enet_lwip/cm/enet_lwip.c", line 261: warning: variable "txChan" was declared but never referenced Finished building: "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/examples/enet_lwip/cm/enet_lwip.c" Building file: "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/ports/C2000/netif/f2838xif.c" Invoking: ARM Compiler "C:/ti/ti-cgt-arm_18.12.2.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=none -me -O0 --opt_for_speed=0 --include_path="C:/ti/ti-cgt-arm_18.12.2.LTS/include" --include_path="C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/apps/http" --include_path="C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip" --include_path="C:/Users/Sahan Sanjaya/workspace_v10/enet_lwip" --include_path="C:/ti/C2000Ware_3_04_00_00_Software/driverlib/f2838x" --include_path="C:/ti/C2000Ware_3_04_00_00_Software/driverlib/f2838x/driverlib_cm" --include_path="C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/examples/enet_lwip/cm" --include_path="C:/ti/C2000Ware_3_04_00_00_Software/driverlib/f2838x" --include_path="C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2" --include_path="C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/include" --include_path="C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/apps" --include_path="C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/ports/C2000/include" --define=_FLASH --define=ccs -g --diag_warning=225 --gen_func_subsections=on --abi=eabi --ual --preproc_with_compile --preproc_dependency="f2838xif.d_raw" "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/ports/C2000/netif/f2838xif.c" Finished building: "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/ports/C2000/netif/f2838xif.c" Building file: "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/apps/http/fs.c" Invoking: ARM Compiler "C:/ti/ti-cgt-arm_18.12.2.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=none -me -O0 --opt_for_speed=0 --include_path="C:/ti/ti-cgt-arm_18.12.2.LTS/include" --include_path="C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/apps/http" --include_path="C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip" --include_path="C:/Users/Sahan Sanjaya/workspace_v10/enet_lwip" --include_path="C:/ti/C2000Ware_3_04_00_00_Software/driverlib/f2838x" --include_path="C:/ti/C2000Ware_3_04_00_00_Software/driverlib/f2838x/driverlib_cm" --include_path="C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/examples/enet_lwip/cm" --include_path="C:/ti/C2000Ware_3_04_00_00_Software/driverlib/f2838x" --include_path="C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2" --include_path="C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/include" --include_path="C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/apps" --include_path="C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/ports/C2000/include" --define=_FLASH --define=ccs -g --diag_warning=225 --gen_func_subsections=on --abi=eabi --ual --preproc_with_compile --preproc_dependency="fs.d_raw" "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/apps/http/fs.c" Finished building: "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/apps/http/fs.c" Building file: "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/apps/http/httpd.c" Invoking: ARM Compiler "C:/ti/ti-cgt-arm_18.12.2.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=none -me -O0 --opt_for_speed=0 --include_path="C:/ti/ti-cgt-arm_18.12.2.LTS/include" --include_path="C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/apps/http" --include_path="C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip" --include_path="C:/Users/Sahan Sanjaya/workspace_v10/enet_lwip" --include_path="C:/ti/C2000Ware_3_04_00_00_Software/driverlib/f2838x" --include_path="C:/ti/C2000Ware_3_04_00_00_Software/driverlib/f2838x/driverlib_cm" --include_path="C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/examples/enet_lwip/cm" --include_path="C:/ti/C2000Ware_3_04_00_00_Software/driverlib/f2838x" --include_path="C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2" --include_path="C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/include" --include_path="C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/apps" --include_path="C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/ports/C2000/include" --define=_FLASH --define=ccs -g --diag_warning=225 --gen_func_subsections=on --abi=eabi --ual --preproc_with_compile --preproc_dependency="httpd.d_raw" "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/apps/http/httpd.c" Finished building: "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/apps/http/httpd.c" Building file: "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/utils/lwiplib.c" Invoking: ARM Compiler "C:/ti/ti-cgt-arm_18.12.2.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=none -me -O0 --opt_for_speed=0 --include_path="C:/ti/ti-cgt-arm_18.12.2.LTS/include" --include_path="C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/apps/http" --include_path="C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip" --include_path="C:/Users/Sahan Sanjaya/workspace_v10/enet_lwip" --include_path="C:/ti/C2000Ware_3_04_00_00_Software/driverlib/f2838x" --include_path="C:/ti/C2000Ware_3_04_00_00_Software/driverlib/f2838x/driverlib_cm" --include_path="C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/examples/enet_lwip/cm" --include_path="C:/ti/C2000Ware_3_04_00_00_Software/driverlib/f2838x" --include_path="C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2" --include_path="C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/include" --include_path="C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/apps" --include_path="C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/ports/C2000/include" --define=_FLASH --define=ccs -g --diag_warning=225 --gen_func_subsections=on --abi=eabi --ual --preproc_with_compile --preproc_dependency="lwiplib.d_raw" "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/utils/lwiplib.c" >> Compilation failure subdir_rules.mk:37: recipe for target 'lwiplib.obj' failed "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/include/lwip/priv/api_msg.h", line 95: error: identifier "ipaddr" is undefined "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/include/lwip/priv/api_msg.h", line 95: warning: this declaration has no storage class or type specifier "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/include/lwip/priv/api_msg.h", line 95: error: a function type is not allowed here "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/include/lwip/priv/api_msg.h", line 101: error: a function type is not allowed here "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/include/lwip/priv/api_msg.h", line 102: error: a function type is not allowed here "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/include/lwip/priv/api_msg.h", line 102: error: "API_MSG_M_DEF" has already been declared in the current scope "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 118: error: identifier "tcpip_callback_fn" is undefined "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 131: warning: function "tcpip_send_msg_wait_sem" declared implicitly "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 152: warning: function "API_VAR_DECLARE" declared implicitly "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 152: error: expected an expression "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 152: error: identifier "msg" is undefined "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 153: warning: function "API_VAR_ALLOC" declared implicitly "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 153: error: expected an expression "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 153: error: identifier "MEMP_API_MSG" is undefined "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 159: warning: function "API_VAR_REF" declared implicitly "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 159: error: expression must have struct or union type "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 160: error: expression must have struct or union type "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 161: error: expression must be an lvalue or a function designator "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 164: error: expected an expression "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 166: error: expected an expression "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 174: warning: function "API_VAR_FREE" declared implicitly "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 178: warning: function "API_VAR_FREE" declared implicitly "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 195: warning: function "API_VAR_DECLARE" declared implicitly "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 195: error: expected an expression "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 195: error: identifier "msg" is undefined "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 202: warning: function "API_VAR_ALLOC" declared implicitly "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 202: error: expected an expression "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 202: error: identifier "MEMP_API_MSG" is undefined "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 203: warning: function "API_VAR_REF" declared implicitly "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 203: error: expression must have struct or union type "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 210: error: expression must have struct or union type "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 214: error: expression must be an lvalue or a function designator "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 215: warning: function "API_VAR_FREE" declared implicitly "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 271: warning: function "API_VAR_DECLARE" declared implicitly "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 271: error: expected an expression "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 271: error: identifier "msg" is undefined "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 278: warning: function "API_VAR_ALLOC" declared implicitly "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 278: error: expected an expression "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 278: error: identifier "MEMP_API_MSG" is undefined "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 279: warning: function "API_VAR_REF" declared implicitly "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 279: error: expression must have struct or union type "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 280: error: expression must have struct or union type "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 290: warning: function "API_VAR_FREE" declared implicitly "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 309: warning: function "API_VAR_DECLARE" declared implicitly "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 309: error: expected an expression "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 309: error: identifier "msg" is undefined "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 331: warning: function "API_VAR_ALLOC" declared implicitly "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 331: error: expected an expression "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 331: error: identifier "MEMP_API_MSG" is undefined "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 332: warning: function "API_VAR_REF" declared implicitly "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 332: error: expression must have struct or union type "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 333: error: expression must have struct or union type "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 334: error: expression must have struct or union type "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 335: error: expression must be an lvalue or a function designator "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 336: warning: function "API_VAR_FREE" declared implicitly "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 353: warning: function "API_VAR_DECLARE" declared implicitly "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 353: error: expected an expression "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 353: error: identifier "msg" is undefined "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 358: warning: function "API_VAR_ALLOC" declared implicitly "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 358: error: expected an expression "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 358: error: identifier "MEMP_API_MSG" is undefined "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 359: warning: function "API_VAR_REF" declared implicitly "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 359: error: expression must have struct or union type "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 360: error: expression must have struct or union type "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 361: error: expression must be an lvalue or a function designator "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 362: warning: function "API_VAR_FREE" declared implicitly "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 379: warning: function "API_VAR_DECLARE" declared implicitly "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 379: error: expected an expression "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 379: error: identifier "msg" is undefined "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 391: warning: function "API_VAR_ALLOC" declared implicitly "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 391: error: expected an expression "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 391: error: identifier "MEMP_API_MSG" is undefined "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 392: warning: function "API_VAR_REF" declared implicitly "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 392: error: expression must have struct or union type "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 393: error: expression must have struct or union type "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 394: error: expression must have struct or union type "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 395: error: expression must be an lvalue or a function designator "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 396: warning: function "API_VAR_FREE" declared implicitly "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 411: warning: function "API_VAR_DECLARE" declared implicitly "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 411: error: expected an expression "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 411: error: identifier "msg" is undefined "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 416: warning: function "API_VAR_ALLOC" declared implicitly "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 416: error: expected an expression "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 416: error: identifier "MEMP_API_MSG" is undefined "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 417: warning: function "API_VAR_REF" declared implicitly "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 417: error: expression must have struct or union type "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 418: error: expression must be an lvalue or a function designator "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 419: warning: function "API_VAR_FREE" declared implicitly "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 437: warning: function "API_VAR_DECLARE" declared implicitly "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 437: error: expected an expression "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 437: error: identifier "msg" is undefined "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 445: warning: function "API_VAR_ALLOC" declared implicitly "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 445: error: expected an expression "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 445: error: identifier "MEMP_API_MSG" is undefined "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 446: warning: function "API_VAR_REF" declared implicitly "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 446: error: expression must have struct or union type "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 450: error: expression must be an lvalue or a function designator "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 451: warning: function "API_VAR_FREE" declared implicitly "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 493: error: GCC && operator not supported "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 493: error: expected an expression "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 503: warning: function "sys_arch_mbox_tryfetch" declared implicitly "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 503: error: identifier "SYS_ARCH_TIMEOUT" is undefined "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 516: warning: function "sys_arch_mbox_fetch" declared implicitly "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 588: error: expected an expression "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 600: warning: function "sys_arch_mbox_tryfetch" declared implicitly "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 600: error: identifier "SYS_ARCH_TIMEOUT" is undefined "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 620: warning: function "sys_arch_mbox_fetch" declared implicitly "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 692: warning: function "API_VAR_DECLARE" declared implicitly "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 692: error: expected an expression "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 692: error: identifier "msg" is undefined "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 696: warning: function "API_VAR_ALLOC" declared implicitly "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 696: error: expected an expression "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 696: error: identifier "MEMP_API_MSG" is undefined "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 697: warning: function "API_VAR_REF" declared implicitly "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 697: error: expression must be an lvalue or a function designator "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 698: warning: function "API_VAR_FREE" declared implicitly "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 707: warning: function "API_VAR_DECLARE" declared implicitly "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 707: error: expected an expression "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 707: error: identifier "msg" is undefined "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 712: error: expected an expression "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 724: warning: function "API_VAR_ALLOC" declared implicitly "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 724: error: expected an expression "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 724: error: identifier "MEMP_API_MSG" is undefined "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 730: warning: function "API_VAR_FREE" declared implicitly "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 730: error: identifier "MEMP_API_MSG" is undefined "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 740: warning: function "API_VAR_REF" declared implicitly "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 740: error: expression must be an lvalue or a function designator "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 741: warning: function "API_VAR_FREE" declared implicitly "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 741: error: identifier "MEMP_API_MSG" is undefined "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 943: warning: function "API_VAR_DECLARE" declared implicitly "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 943: error: expected an expression "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 943: error: identifier "msg" is undefined "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 950: warning: function "API_VAR_ALLOC" declared implicitly "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 950: error: expected an expression "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 950: error: identifier "MEMP_API_MSG" is undefined "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 951: warning: function "API_VAR_REF" declared implicitly "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 951: error: expression must have struct or union type "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 952: error: expression must have struct or union type "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 953: error: expression must be an lvalue or a function designator "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 954: warning: function "API_VAR_FREE" declared implicitly "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 1000: warning: function "API_VAR_DECLARE" declared implicitly "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 1000: error: expected an expression "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 1000: error: identifier "msg" is undefined "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 1042: warning: function "API_VAR_ALLOC" declared implicitly "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 1042: error: expected an expression "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 1042: error: identifier "MEMP_API_MSG" is undefined "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 1044: warning: function "API_VAR_REF" declared implicitly "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 1044: error: expression must have struct or union type "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 1045: error: expression must have struct or union type "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 1046: error: expression must have struct or union type "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 1047: error: expression must have struct or union type "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 1048: error: expression must have struct or union type "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 1049: error: expression must have struct or union type "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 1050: error: expression must have struct or union type "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/lwip-2.1.2/src/api/api_lib.c", line 1064: error: expression must be an lvalue or a function designator Error limit reached. 100 errors detected in the compilation of "C:/ti/C2000Ware_3_04_00_00_Software/libraries/communications/Ethernet/third_party/lwip/utils/lwiplib.c". Compilation terminated. gmake: *** [lwiplib.obj] Error 1 gmake: Target 'all' not remade because of errors. **** Build Finished ****
然后我得到了这个
是否有人可以为该实现提供一个好的示例? 这是紧急情况。 请帮助。
大多数错误都是"隐式声明"的、这表明需要的 lwip 源文件、如 api_lib.c、不会添加到工程中来创建它们的符号。
[引用 userid="457528" URL"~/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1001069/tms320f28388d-modbus-tcp-ip/3709144 #3709144"]是否有人可以为该实现提供一个好的示例?我们恐怕您在 C2000Ware 中找不到您想要的示例。 您可以尝试一些开源网站或论坛。
-yashwant
大多数错误来自 API_lib.c 您能建议一种纠正该错误的方法
谢谢你
您好!
我看到 sockets .c 和 tcpip_priv.h 中有很多 OS 依赖项、文件 开头处有#if!no_SYS、这是 API_lib.c 所必需的 我们尚未移植 lwIP 协议栈以与操作系统兼容。
我们还有基于 TI NDK 堆栈的 TCP/IP 示例、该示例在 C2000Ware 中的 C2000Ware_3_04_00_00\libraries\communications\ethernet/ti\NDK\examples\tcpEchoF2838X 上展示了很少的 NDK 功能。
即使这样、也没有 Modbus 堆栈。
此致、
Yashwant