Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/c/71.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/design-patterns/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在MPLab X IDE上设置Harmony Configurator的TCP IP堆栈_C_Rtos - Fatal编程技术网

在MPLab X IDE上设置Harmony Configurator的TCP IP堆栈

在MPLab X IDE上设置Harmony Configurator的TCP IP堆栈,c,rtos,C,Rtos,我已经在我的Harmony配置中添加了TCP/IP堆栈,但是它给出了下面的错误。我的问题是如何使用MPLab®Harmony Integrated Software Framework v1.04.01在MPLab X IDE V3上正确设置TCP/IP堆栈 尝试运行代码时出错: ../../../../microchip/harmony/v1_04_01/framework/tcpip/src/system/drivers/usart.c:81:19: error: 'U3MODE' unde

我已经在我的Harmony配置中添加了TCP/IP堆栈,但是它给出了下面的错误。我的问题是如何使用MPLab®Harmony Integrated Software Framework v1.04.01在MPLab X IDE V3上正确设置TCP/IP堆栈

尝试运行代码时出错:

../../../../microchip/harmony/v1_04_01/framework/tcpip/src/system/drivers/usart.c:81:19: error: 'U3MODE' undeclared here (not in a function)
../../../../microchip/harmony/v1_04_01/framework/tcpip/src/system/drivers/usart.c:81:40: error: 'U3STA' undeclared here (not in a function)
../../../../microchip/harmony/v1_04_01/framework/tcpip/src/system/drivers/usart.c:81:60: error: 'U3TXREG' undeclared here (not in a function)

nbproject/Makefile-tcp_ip.mk:693: recipe for target 'build/tcp_ip/production/_ext/28866467/usart.o' failed
../../../../microchip/harmony/v1_04_01/framework/tcpip/src/system/drivers/usart.c:81:82: error: 'U3RXREG' undeclared here (not in a function)
../../../../microchip/harmony/v1_04_01/framework/tcpip/src/system/drivers/usart.c:81:104: error: 'U3BRG' undeclared here (not in a function)
make[2]: *** [build/tcp_ip/production/_ext/28866467/usart.o] Error 1
make[2]: *** Waiting for unfinished jobs....

"/opt/microchip/xc32/v1.34/bin/xc32-gcc" -g -x c -c -mprocessor=32MX460F512L -ffunction-sections -O1 -D__XC \
    -I../src -I../../../../microchip/harmony/v1_04_01/framework -I../src/system_config/tcp_ip/framework -I../src/system_config/tcp_ip -I../../../../microchip/harmony/v1_04_01/bsp/pic32mx460_pim+e16 -I../../../../microchip/harmony/v1_04_01/third_party/rtos/FreeRTOS/Source/portable/MPLAB/PIC32MXI../../../../microchip/harmony/v1_04_01/third_party/rtos/FreeRTOS/Source/include \
    -MMD -MF build/tcp_ip/production/_ext/682004257/system_debug.o.d -o build/tcp_ip/production/_ext/682004257/system_debug.o ../../../../microchip/harmony/v1_04_01/framework/tcpip/src/system/system_debug.c

"/opt/microchip/xc32/v1.34/bin/xc32-gcc" -g -x c -c -mprocessor=32MX460F512L -ffunction-sections -O1 -D__XC -I../src \
    -I../../../../microchip/harmony/v1_04_01/framework -I../src/system_config/tcp_ip/framework -I../src/system_config/tcp_ip -I../../../../microchip/harmony/v1_04_01/bsp/pic32mx460_pim+e16 -I../../../../microchip/harmony/v1_04_01/third_party/rtos/FreeRTOS/Source/portable/MPLAB/PIC32MXI../../../../microchip/harmony/v1_04_01/third_party/rtos/FreeRTOS/Source/include \
    -MMD -MF build/tcp_ip/production/_ext/1577513309/tcpip_manager.o.d -o build/tcp_ip/production/_ext/1577513309/tcpip_manager.o ../../../../microchip/harmony/v1_04_01/framework/tcpip/src/tcpip_manager.c

"/opt/microchip/xc32/v1.34/bin/xc32-gcc" -g -x c -c -mprocessor=32MX460F512L -ffunction-sections -O1 -D__XC -I../src \
    -I../../../../microchip/harmony/v1_04_01/framework -I../src/system_config/tcp_ip/framework -I../src/system_config/tcp_ip -I../../../../microchip/harmony/v1_04_01/bsp/pic32mx460_pim+e16 -I../../../../microchip/harmony/v1_04_01/third_party/rtos/FreeRTOS/Source/portable/MPLAB/PIC32MXI../../../../microchip/harmony/v1_04_01/third_party/rtos/FreeRTOS/Source/include \
    -MMD -MF build/tcp_ip/production/_ext/682004257/system_command.o.d -o build/tcp_ip/production/_ext/682004257/system_command.o ../../../../microchip/harmony/v1_04_01/framework/tcpip/src/system/system_command.c


nbproject/Makefile-tcp_ip.mk:699: recipe for target 'build/tcp_ip/production/_ext/682004257/system_command.o' failed
make[2]: Leaving directory '/home/myworkarea/HttpTester/firmware/HttpTester.X'
nbproject/Makefile-tcp_ip.mk:78: recipe for target '.build-conf' failed
make[1]: Leaving directory '/home/myworkarea/HttpTester/firmware/HttpTester.X'
nbproject/Makefile-impl.mk:39: recipe for target '.build-impl' failed
In file included from ../../../../microchip/harmony/v1_04_01/framework/tcpip/src/system/system_command.c:46:0:

../../../../microchip/harmony/v1_04_01/framework/tcpip/src/system/system_command.h:49:21: error: redefinition of typedef 'SYS_CMD_HANDLE'
../../../../microchip/harmony/v1_04_01/framework/system/command/sys_command.h:251:21: note: previous declaration of 'SYS_CMD_HANDLE' was here
../../../../microchip/harmony/v1_04_01/framework/tcpip/src/system/system_command.h:83:2: error: conflicting types for 'SYS_CMD_API'
../../../../microchip/harmony/v1_04_01/framework/system/command/sys_command.h:370:2: note: previous declaration of 'SYS_CMD_API' was here
../../../../microchip/harmony/v1_04_01/framework/tcpip/src/system/system_command.h:95:2: error: conflicting types for 'SYS_CMD_DEVICE_NODE'
../../../../microchip/harmony/v1_04_01/framework/system/command/sys_command.h:489:2: note: previous declaration of 'SYS_CMD_DEVICE_NODE' was here
../../../../microchip/harmony/v1_04_01/framework/tcpip/src/system/system_command.h:103:2: error: conflicting types for 'SYS_CMD_DEVICE_LIST'
../../../../microchip/harmony/v1_04_01/framework/system/command/sys_command.h:510:2: note: previous declaration of 'SYS_CMD_DEVICE_LIST' was here
../../../../microchip/harmony/v1_04_01/framework/tcpip/src/system/system_command.h:109:15: error: conflicting types for 'SYS_CMD_FNC'
../../../../microchip/harmony/v1_04_01/framework/system/command/sys_command.h:559:15: note: previous declaration of 'SYS_CMD_FNC' was here
../../../../microchip/harmony/v1_04_01/framework/tcpip/src/system/system_command.h:116:2: error: conflicting types for 'SYS_CMD_DESCRIPTOR'
../../../../microchip/harmony/v1_04_01/framework/system/command/sys_command.h:580:3: note: previous declaration of 'SYS_CMD_DESCRIPTOR' was here
../../../../microchip/harmony/v1_04_01/framework/tcpip/src/system/system_command.h:124:2: error: conflicting types for 'SYS_CMD_DESCRIPTOR_TABLE'
../../../../microchip/harmony/v1_04_01/framework/system/command/sys_command.h:602:3: note: previous declaration of 'SYS_CMD_DESCRIPTOR_TABLE' was here

看起来有两个不同位置的头文件都包含在内

每个头文件中的多个保护代码应该阻止这种情况发生

此外,在UART 3中定义寄存器的头文件似乎丢失。

发生“重新定义”错误是因为包含两个定义相同类型定义的头文件。 冲突文件包括:

...\v1_04_02\framework\system\command\sys_command.h

文件中包含了哪些内容

...\v1_04_02\framework\tcpip\src\system\system_command.c
仅当包含和谐组件“TCPIP Stack->Use TCP/IP Commands”且不包含“Services->command->Use command Processor system Service”时,才会包含文件系统命令.c


要删除冲突(和错误),请禁用“TCPIP Stack->Use TCP/IP Commands”,或启用“Services->Command->Use Command Processor System Service”(我不知道这个组件的用途,但如果启用它,代码将增长约30 KB)。

谢谢,我收到了。实际上,我想使用带有以太网PICTail和PIC32的Explorer 16开发板创建一个TCP/IP客户端应用程序。因此,我首先要做的是正确设置TCP/IP、SPI和ENCX24J600驱动程序,以使以太网PICTail正常工作,并使我们的路由器能够识别其IP地址。你能帮帮我吗?谢谢由于您将使用Explorer 16开发板,我想您将使用“应用程序的微芯片库”。在库的TCPIP\DemoApp文件夹中,有许多针对各种开发板和各种以太网硬件的现成配置。其中一个必须适合您的需要。要定义IP地址,您必须编辑文件“TCPIPConfig.h”并更改常量“MY_DEFAULT_IP_ADDR_BYTEX”(以及其他相关常量)。这些演示默认启用了“自动IP”标志,因此当您运行演示时,您的板将从DHCP服务器获取IP地址。之后,您可以使用Microchip“TCPIP Discoverer.jar”实用程序向您显示板的IP地址(此实用程序与应用程序库一起安装)。很抱歉,我应该告诉您我使用的是PIC32MX460F512L。“应用程序微芯片库(MLA)”仅与PIC8和16兼容。我已经使用了“tcpip\u tcp\u客户端”,但我想从头开始。我在我的项目中添加了TCP/IP堆栈,没有任何问题,但是在添加ENCX24J600和SPI驱动程序时出现了很多错误。感谢George Vassilakis的帮助。我真的很感激。:)
...\v1_04_02\framework\tcpip\src\system\system_command.c