[Solved] Create an Ethernet project with Harmony that works
Posted: Mon Sep 03, 2018 9:45 am
Hello,
I have a PIC32 Ethernet Starter Kit with PIC32MX795F512L, and I would like to use Ethernet to be able to make a server client with a PC, for example: send a byte frame with TCP from the PC to the PIC32 ESK, and answer it by, yes j received your rocket.
To do this, I would like to use MPLAB Harmony, but every time I try I always get tons of errors (I use MPLAB X IDE v4.20 with MPLAB Harmony v2_06).
I have tried various tutorials, but none have worked for me (http://microchipdeveloper.com/wifi:wh, https://www.youtube.com/watch?v=EyclfQkgLnM ) Nothing worked for me, I always hang on mistakes, like this one for example (in first example):
Someone would have examples of projects that could be useful to me, or could I run on my mistakes?
Thank you
I have a PIC32 Ethernet Starter Kit with PIC32MX795F512L, and I would like to use Ethernet to be able to make a server client with a PC, for example: send a byte frame with TCP from the PC to the PIC32 ESK, and answer it by, yes j received your rocket.
To do this, I would like to use MPLAB Harmony, but every time I try I always get tons of errors (I use MPLAB X IDE v4.20 with MPLAB Harmony v2_06).
I have tried various tutorials, but none have worked for me (http://microchipdeveloper.com/wifi:wh, https://www.youtube.com/watch?v=EyclfQkgLnM ) Nothing worked for me, I always hang on mistakes, like this one for example (in first example):
- Code: Select all
make -f nbproject/Makefile-default.mk SUBPROJECTS= .build-conf
make[1]: Entering directory 'C:/microchip/harmony/v2_06/apps/Ethernet_Project/firmware/Ethernet_Project.X'
make -f nbproject/Makefile-default.mk dist/default/production/Ethernet_Project.X.production.hex
make[2]: Entering directory 'C:/microchip/harmony/v2_06/apps/Ethernet_Project/firmware/Ethernet_Project.X'
../../../../framework/tcpip/src/dnss.c: In function 'TCPIP_DNSS_Initialize':
../../../../framework/tcpip/src/dnss.c:233:16: error: 'TCPIP_DNS_CLIENT_MAX_HOSTNAME_LEN' undeclared (first use in this function)
if(TCPIP_DNS_CLIENT_MAX_HOSTNAME_LEN != 0)
^
../../../../framework/tcpip/src/dnss.c:233:16: note: each undeclared identifier is reported only once for each function it appears in
../../../../framework/tcpip/src/dnss.c: In function 'TCPIP_OAHASH_DNSS_KeyCopy':
../../../../framework/tcpip/src/dnss.c:1417:37: error: 'TCPIP_DNS_CLIENT_MAX_HOSTNAME_LEN' undeclared (first use in this function)
memset(pDnssHE->pHostName,0,TCPIP_DNS_CLIENT_MAX_HOSTNAME_LEN);
^
make[2]: *** [build/default/production/_ext/1408260596/dnss.o] Error 1
make[1]: *** [.build-conf] Error 2
make: *** [.build-impl] Error 2
"C:\Program Files\Microchip\xc32\v2.10\bin\xc32-gcc.exe" -g -x c -c -mprocessor=32MX795F512L -ffunction-sections -O1 -D__XC -I../src -I../src/system_config/default -I../src/default -I../../../../framework -I../src/system_config/default/framework -I../../../../framework/driver/wifi/winc1500/include -I../../../../framework/driver/wifi/winc1500/wireless_driver/include -I../../../../framework/driver/wifi/winc1500/wireless_driver_extension -I../../../../framework/driver/wifi/winc1500/wireless_driver_extension/bsp/include -I../../../../framework/driver/wifi/winc1500/wireless_driver_extension/bus_wrapper/include -I../../../../framework/driver/wifi/winc1500/wireless_driver_extension/common/include -I../../../../framework/driver/wifi/winc1500/wireless_driver_extension/driver/include -I../../../../framework/driver/wifi/winc1500/wireless_driver_extension/driver/source -I../../../../framework/driver/wifi/winc1500/wireless_driver_extension/spi_flash/include -I../src/system_config/default/bsp -I../../../../third_party/rtos/FreeRTOS/Source/include -I../../../../third_party/rtos/FreeRTOS/Source/portable/MPLAB/PIC32MX -MMD -MF build/default/production/_ext/1408260596/dnss.o.d -o build/default/production/_ext/1408260596/dnss.o ../../../../framework/tcpip/src/dnss.c -DXPRJ_default=default -no-legacy-libc
nbproject/Makefile-default.mk:1053: recipe for target 'build/default/production/_ext/1408260596/dnss.o' failed
make[2]: Leaving directory 'C:/microchip/harmony/v2_06/apps/Ethernet_Project/firmware/Ethernet_Project.X'
nbproject/Makefile-default.mk:90: recipe for target '.build-conf' failed
make[1]: Leaving directory 'C:/microchip/harmony/v2_06/apps/Ethernet_Project/firmware/Ethernet_Project.X'
nbproject/Makefile-impl.mk:39: recipe for target '.build-impl' failed
BUILD FAILED (exit value 2, total time: 10s)
Someone would have examples of projects that could be useful to me, or could I run on my mistakes?
Thank you