MicrochipTech / PIC32MZW1_Workshop

"IoT Made Easy!" - Guided System Development to learn PIC32MZ W1 Family Device
Other
9 stars 4 forks source link

Lab 2 - Configure the Wi-Fi network using MHC - Unable to compile #1

Closed CaptainMJx closed 3 years ago

CaptainMJx commented 3 years ago

Hi, I been trying to build this lab in MPLAB X 5.45 with Harmony . However i get around 255 error on very general programming issues.

I copied the sample as per the instruction using Harmony 3 Content Manager, updated the compiler in Project Properties as instructed. I haven't received the curiosity board yet so I selected the simulator as tool. When i try to build in MPLAB X I get these kind of errors, any thought what might be the issue?:

CLEAN SUCCESSFUL (total time: 18ms) make -f nbproject/Makefile-pic32mz_w1_curiosity_freertos.mk SUBPROJECTS= .build-conf make[1]: Entering directory 'C:/Users/Marcus/HarmonyProjects/wireless/apps/tcp_client/firmware/pic32mz_w1_curiosity_freertos.X' make -f nbproject/Makefile-pic32mz_w1_curiosity_freertos.mk dist/pic32mz_w1_curiosity_freertos/production/pic32mz_w1_curiosity_freertos.X.production.hex make[2]: Entering directory 'C:/Users/Marcus/HarmonyProjects/wireless/apps/tcp_client/firmware/pic32mz_w1_curiosity_freertos.X' "C:\Program Files\Microchip\xc32\v2.41\bin\xc32-gcc.exe" -g -x c -c -mprocessor=32MZ1025W104132 -ffunction-sections -O1 -DWOLFSSL_IGNORE_FILE_WARN -DHAVE_CONFIG_H -I"../src/third_party/rtos/FreeRTOS/Source/portable/MPLAB/PIC32MZ" -I"../src/third_party/rtos/FreeRTOS/Source/include" -I"../src/config/pic32mz_w1_curiosity_freertos/driver/wifi/pic32mzw1/include/" -I"../src/third_party/wolfssl/wolfssl" -I"../src/third_party/wolfssl" -I"../src" -I"../src/config/pic32mz_w1_curiosity_freertos" -I"../src/packs/PIC32MZ1025W104132_DFP" -I"../src/config/pic32mz_w1_curiosity_freertos/library" -I"../src/config/pic32mz_w1_curiosity_freertos/library/tcpip/src" -I"../src/config/pic32mz_w1_curiosity_freertos/library/tcpip/src/common" -Werror -Wall -MP -MMD -MF "build/pic32mz_w1_curiosity_freertos/production/_ext/801842892/crypto.o.d" -o build/pic32mz_w1_curiosity_freertos/production/_ext/801842892/crypto.o ../src/config/pic32mz_w1_curiosity_freertos/crypto/src/crypto.c -DXPRJ_pic32mz_w1_curiosity_freertos=pic32mz_w1_curiosity_freertos -no-legacy-libc -mdfp="C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC32MZ-W_DFP/1.3.177" "C:\Program Files\Microchip\xc32\v2.41\bin\xc32-gcc.exe" -g -x c -c -mprocessor=32MZ1025W104132 -ffunction-sections -O1 -DWOLFSSL_IGNORE_FILE_WARN -DHAVE_CONFIG_H -I"../src/third_party/rtos/FreeRTOS/Source/portable/MPLAB/PIC32MZ" -I"../src/third_party/rtos/FreeRTOS/Source/include" -I"../src/config/pic32mz_w1_curiosity_freertos/driver/wifi/pic32mzw1/include/" -I"../src/third_party/wolfssl/wolfssl" -I"../src/third_party/wolfssl" -I"../src" -I"../src/config/pic32mz_w1_curiosity_freertos" -I"../src/packs/PIC32MZ1025W104132_DFP" -I"../src/config/pic32mz_w1_curiosity_freertos/library" -I"../src/config/pic32mz_w1_curiosity_freertos/library/tcpip/src" -I"../src/config/pic32mz_w1_curiosity_freertos/library/tcpip/src/common" -Werror -Wall -MP -MMD -MF "build/pic32mz_w1_curiosity_freertos/production/_ext/808187859/drv_ba414e.o.d" -o build/pic32mz_w1_curiosity_freertos/production/_ext/808187859/drv_ba414e.o ../src/config/pic32mz_w1_curiosity_freertos/driver/ba414e/src/drv_ba414e.c -DXPRJ_pic32mz_w1_curiosity_freertos=pic32mz_w1_curiosity_freertos -no-legacy-libc -mdfp="C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC32MZ-W_DFP/1.3.177" "C:\Program Files\Microchip\xc32\v2.41\bin\xc32-gcc.exe" -g -x c -c -mprocessor=32MZ1025W104132 -ffunction-sections -O1 -DWOLFSSL_IGNORE_FILE_WARN -DHAVE_CONFIG_H -I"../src/third_party/rtos/FreeRTOS/Source/portable/MPLAB/PIC32MZ" -I"../src/third_party/rtos/FreeRTOS/Source/include" -I"../src/config/pic32mz_w1_curiosity_freertos/driver/wifi/pic32mzw1/include/" -I"../src/third_party/wolfssl/wolfssl" -I"../src/third_party/wolfssl" -I"../src" -I"../src/config/pic32mz_w1_curiosity_freertos" -I"../src/packs/PIC32MZ1025W104132_DFP" -I"../src/config/pic32mz_w1_curiosity_freertos/library" -I"../src/config/pic32mz_w1_curiosity_freertos/library/tcpip/src" -I"../src/config/pic32mz_w1_curiosity_freertos/library/tcpip/src/common" -Werror -Wall -MP -MMD -MF "build/pic32mz_w1_curiosity_freertos/production/_ext/991598407/drv_pic32mzw1_crypto.o.d" -o build/pic32mz_w1_curiosity_freertos/production/_ext/991598407/drv_pic32mzw1_crypto.o ../src/config/pic32mz_w1_curiosity_freertos/driver/wifi/pic32mzw1/drv_pic32mzw1_crypto.c -DXPRJ_pic32mz_w1_curiosity_freertos=pic32mz_w1_curiosity_freertos -no-legacy-libc -mdfp="C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC32MZ-W_DFP/1.3.177" "C:\Program Files\Microchip\xc32\v2.41\bin\xc32-gcc.exe" -g -x c -c -mprocessor=32MZ1025W104132 -ffunction-sections -O1 -DWOLFSSL_IGNORE_FILE_WARN -DHAVE_CONFIG_H -I"../src/third_party/rtos/FreeRTOS/Source/portable/MPLAB/PIC32MZ" -I"../src/third_party/rtos/FreeRTOS/Source/include" -I"../src/config/pic32mz_w1_curiosity_freertos/driver/wifi/pic32mzw1/include/" -I"../src/third_party/wolfssl/wolfssl" -I"../src/third_party/wolfssl" -I"../src" -I"../src/config/pic32mz_w1_curiosity_freertos" -I"../src/packs/PIC32MZ1025W104132_DFP" -I"../src/config/pic32mz_w1_curiosity_freertos/library" -I"../src/config/pic32mz_w1_curiosity_freertos/library/tcpip/src" -I"../src/config/pic32mz_w1_curiosity_freertos/library/tcpip/src/common" -Werror -Wall -MP -MMD -MF "build/pic32mz_w1_curiosity_freertos/production/_ext/991598407/wdrv_pic32mzw.o.d" -o build/pic32mz_w1_curiosity_freertos/production/_ext/991598407/wdrv_pic32mzw.o ../src/config/pic32mz_w1_curiosity_freertos/driver/wifi/pic32mzw1/wdrv_pic32mzw.c -DXPRJ_pic32mz_w1_curiosity_freertos=pic32mz_w1_curiosity_freertos -no-legacy-libc -mdfp="C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC32MZ-W_DFP/1.3.177" "C:\Program Files\Microchip\xc32\v2.41\bin\xc32-gcc.exe" -g -x c -c -mprocessor=32MZ1025W104132 -ffunction-sections -O1 -DWOLFSSL_IGNORE_FILE_WARN -DHAVE_CONFIG_H -I"../src/third_party/rtos/FreeRTOS/Source/portable/MPLAB/PIC32MZ" -I"../src/third_party/rtos/FreeRTOS/Source/include" -I"../src/config/pic32mz_w1_curiosity_freertos/driver/wifi/pic32mzw1/include/" -I"../src/third_party/wolfssl/wolfssl" -I"../src/third_party/wolfssl" -I"../src" -I"../src/config/pic32mz_w1_curiosity_freertos" -I"../src/packs/PIC32MZ1025W104132_DFP" -I"../src/config/pic32mz_w1_curiosity_freertos/library" -I"../src/config/pic32mz_w1_curiosity_freertos/library/tcpip/src" -I"../src/config/pic32mz_w1_curiosity_freertos/library/tcpip/src/common" -Werror -Wall -MP -MMD -MF "build/pic32mz_w1_curiosity_freertos/production/_ext/991598407/wdrv_pic32mzw_assoc.o.d" -o build/pic32mz_w1_curiosity_freertos/production/_ext/991598407/wdrv_pic32mzw_assoc.o ../src/config/pic32mz_w1_curiosity_freertos/driver/wifi/pic32mzw1/wdrv_pic32mzw_assoc.c -DXPRJ_pic32mz_w1_curiosity_freertos=pic32mz_w1_curiosity_freertos -no-legacy-libc -mdfp="C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC32MZ-W_DFP/1.3.177" "C:\Program Files\Microchip\xc32\v2.41\bin\xc32-gcc.exe" -g -x c -c -mprocessor=32MZ1025W104132 -ffunction-sections -O1 -DWOLFSSL_IGNORE_FILE_WARN -DHAVE_CONFIG_H -I"../src/third_party/rtos/FreeRTOS/Source/portable/MPLAB/PIC32MZ" -I"../src/third_party/rtos/FreeRTOS/Source/include" -I"../src/config/pic32mz_w1_curiosity_freertos/driver/wifi/pic32mzw1/include/" -I"../src/third_party/wolfssl/wolfssl" -I"../src/third_party/wolfssl" -I"../src" -I"../src/config/pic32mz_w1_curiosity_freertos" -I"../src/packs/PIC32MZ1025W104132_DFP" -I"../src/config/pic32mz_w1_curiosity_freertos/library" -I"../src/config/pic32mz_w1_curiosity_freertos/library/tcpip/src" -I"../src/config/pic32mz_w1_curiosity_freertos/library/tcpip/src/common" -Werror -Wall -MP -MMD -MF "build/pic32mz_w1_curiosity_freertos/production/_ext/991598407/wdrv_pic32mzw_authctx.o.d" -o build/pic32mz_w1_curiosity_freertos/production/_ext/991598407/wdrv_pic32mzw_authctx.o ../src/config/pic32mz_w1_curiosity_freertos/driver/wifi/pic32mzw1/wdrv_pic32mzw_authctx.c -DXPRJ_pic32mz_w1_curiosity_freertos=pic32mz_w1_curiosity_freertos -no-legacy-libc -mdfp="C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC32MZ-W_DFP/1.3.177" "C:\Program Files\Microchip\xc32\v2.41\bin\xc32-gcc.exe" -g -x c -c -mprocessor=32MZ1025W104132 -ffunction-sections -O1 -DWOLFSSL_IGNORE_FILE_WARN -DHAVE_CONFIG_H -I"../src/third_party/rtos/FreeRTOS/Source/portable/MPLAB/PIC32MZ" -I"../src/third_party/rtos/FreeRTOS/Source/include" -I"../src/config/pic32mz_w1_curiosity_freertos/driver/wifi/pic32mzw1/include/" -I"../src/third_party/wolfssl/wolfssl" -I"../src/third_party/wolfssl" -I"../src" -I"../src/config/pic32mz_w1_curiosity_freertos" -I"../src/packs/PIC32MZ1025W104132_DFP" -I"../src/config/pic32mz_w1_curiosity_freertos/library" -I"../src/config/pic32mz_w1_curiosity_freertos/library/tcpip/src" -I"../src/config/pic32mz_w1_curiosity_freertos/library/tcpip/src/common" -Werror -Wall -MP -MMD -MF "build/pic32mz_w1_curiosity_freertos/production/_ext/991598407/wdrv_pic32mzw_bssctx.o.d" -o build/pic32mz_w1_curiosity_freertos/production/_ext/991598407/wdrv_pic32mzw_bssctx.o ../src/config/pic32mz_w1_curiosity_freertos/driver/wifi/pic32mzw1/wdrv_pic32mzw_bssctx.c -DXPRJ_pic32mz_w1_curiosity_freertos=pic32mz_w1_curiosity_freertos -no-legacy-libc -mdfp="C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC32MZ-W_DFP/1.3.177" "C:\Program Files\Microchip\xc32\v2.41\bin\xc32-gcc.exe" -g -x c -c -mprocessor=32MZ1025W104132 -ffunction-sections -O1 -DWOLFSSL_IGNORE_FILE_WARN -DHAVE_CONFIG_H -I"../src/third_party/rtos/FreeRTOS/Source/portable/MPLAB/PIC32MZ" -I"../src/third_party/rtos/FreeRTOS/Source/include" -I"../src/config/pic32mz_w1_curiosity_freertos/driver/wifi/pic32mzw1/include/" -I"../src/third_party/wolfssl/wolfssl" -I"../src/third_party/wolfssl" -I"../src" -I"../src/config/pic32mz_w1_curiosity_freertos" -I"../src/packs/PIC32MZ1025W104132_DFP" -I"../src/config/pic32mz_w1_curiosity_freertos/library" -I"../src/config/pic32mz_w1_curiosity_freertos/library/tcpip/src" -I"../src/config/pic32mz_w1_curiosity_freertos/library/tcpip/src/common" -Werror -Wall -MP -MMD -MF "build/pic32mz_w1_curiosity_freertos/production/_ext/991598407/wdrv_pic32mzw_bssfind.o.d" -o build/pic32mz_w1_curiosity_freertos/production/_ext/991598407/wdrv_pic32mzw_bssfind.o ../src/config/pic32mz_w1_curiosity_freertos/driver/wifi/pic32mzw1/wdrv_pic32mzw_bssfind.c -DXPRJ_pic32mz_w1_curiosity_freertos=pic32mz_w1_curiosity_freertos -no-legacy-libc -mdfp="C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC32MZ-W_DFP/1.3.177" "C:\Program Files\Microchip\xc32\v2.41\bin\xc32-gcc.exe" -g -x c -c -mprocessor=32MZ1025W104132 -ffunction-sections -O1 -DWOLFSSL_IGNORE_FILE_WARN -DHAVE_CONFIG_H -I"../src/third_party/rtos/FreeRTOS/Source/portable/MPLAB/PIC32MZ" -I"../src/third_party/rtos/FreeRTOS/Source/include" -I"../src/config/pic32mz_w1_curiosity_freertos/driver/wifi/pic32mzw1/include/" -I"../src/third_party/wolfssl/wolfssl" -I"../src/third_party/wolfssl" -I"../src" -I"../src/config/pic32mz_w1_curiosity_freertos" -I"../src/packs/PIC32MZ1025W104132_DFP" -I"../src/config/pic32mz_w1_curiosity_freertos/library" -I"../src/config/pic32mz_w1_curiosity_freertos/library/tcpip/src" -I"../src/config/pic32mz_w1_curiosity_freertos/library/tcpip/src/common" -Werror -Wall -MP -MMD -MF "build/pic32mz_w1_curiosity_freertos/production/_ext/991598407/wdrv_pic32mzw_cfg.o.d" -o build/pic32mz_w1_curiosity_freertos/production/_ext/991598407/wdrv_pic32mzw_cfg.o ../src/config/pic32mz_w1_curiosity_freertos/driver/wifi/pic32mzw1/wdrv_pic32mzw_cfg.c -DXPRJ_pic32mz_w1_curiosity_freertos=pic32mz_w1_curiosity_freertos -no-legacy-libc -mdfp="C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC32MZ-W_DFP/1.3.177" "C:\Program Files\Microchip\xc32\v2.41\bin\xc32-gcc.exe" -g -x c -c -mprocessor=32MZ1025W104132 -ffunction-sections -O1 -DWOLFSSL_IGNORE_FILE_WARN -DHAVE_CONFIG_H -I"../src/third_party/rtos/FreeRTOS/Source/portable/MPLAB/PIC32MZ" -I"../src/third_party/rtos/FreeRTOS/Source/include" -I"../src/config/pic32mz_w1_curiosity_freertos/driver/wifi/pic32mzw1/include/" -I"../src/third_party/wolfssl/wolfssl" -I"../src/third_party/wolfssl" -I"../src" -I"../src/config/pic32mz_w1_curiosity_freertos" -I"../src/packs/PIC32MZ1025W104132_DFP" -I"../src/config/pic32mz_w1_curiosity_freertos/library" -I"../src/config/pic32mz_w1_curiosity_freertos/library/tcpip/src" -I"../src/config/pic32mz_w1_curiosity_freertos/library/tcpip/src/common" -Werror -Wall -MP -MMD -MF "build/pic32mz_w1_curiosity_freertos/production/_ext/991598407/wdrv_pic32mzw_int.o.d" -o build/pic32mz_w1_curiosity_freertos/production/_ext/991598407/wdrv_pic32mzw_int.o ../src/config/pic32mz_w1_curiosity_freertos/driver/wifi/pic32mzw1/wdrv_pic32mzw_int.c -DXPRJ_pic32mz_w1_curiosity_freertos=pic32mz_w1_curiosity_freertos -no-legacy-libc -mdfp="C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC32MZ-W_DFP/1.3.177" "C:\Program Files\Microchip\xc32\v2.41\bin\xc32-gcc.exe" -g -x c -c -mprocessor=32MZ1025W104132 -ffunction-sections -O1 -DWOLFSSL_IGNORE_FILE_WARN -DHAVE_CONFIG_H -I"../src/third_party/rtos/FreeRTOS/Source/portable/MPLAB/PIC32MZ" -I"../src/third_party/rtos/FreeRTOS/Source/include" -I"../src/config/pic32mz_w1_curiosity_freertos/driver/wifi/pic32mzw1/include/" -I"../src/third_party/wolfssl/wolfssl" -I"../src/third_party/wolfssl" -I"../src" -I"../src/config/pic32mz_w1_curiosity_freertos" -I"../src/packs/PIC32MZ1025W104132_DFP" -I"../src/config/pic32mz_w1_curiosity_freertos/library" -I"../src/config/pic32mz_w1_curiosity_freertos/library/tcpip/src" -I"../src/config/pic32mz_w1_curiosity_freertos/library/tcpip/src/common" -Werror -Wall -MP -MMD -MF "build/pic32mz_w1_curiosity_freertos/production/_ext/991598407/wdrv_pic32mzw_regdomain.o.d" -o build/pic32mz_w1_curiosity_freertos/production/_ext/991598407/wdrv_pic32mzw_regdomain.o ../src/config/pic32mz_w1_curiosity_freertos/driver/wifi/pic32mzw1/wdrv_pic32mzw_regdomain.c -DXPRJ_pic32mz_w1_curiosity_freertos=pic32mz_w1_curiosity_freertos -no-legacy-libc -mdfp="C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC32MZ-W_DFP/1.3.177" "C:\Program Files\Microchip\xc32\v2.41\bin\xc32-gcc.exe" -g -x c -c -mprocessor=32MZ1025W104132 -ffunction-sections -O1 -DWOLFSSL_IGNORE_FILE_WARN -DHAVE_CONFIG_H -I"../src/third_party/rtos/FreeRTOS/Source/portable/MPLAB/PIC32MZ" -I"../src/third_party/rtos/FreeRTOS/Source/include" -I"../src/config/pic32mz_w1_curiosity_freertos/driver/wifi/pic32mzw1/include/" -I"../src/third_party/wolfssl/wolfssl" -I"../src/third_party/wolfssl" -I"../src" -I"../src/config/pic32mz_w1_curiosity_freertos" -I"../src/packs/PIC32MZ1025W104132_DFP" -I"../src/config/pic32mz_w1_curiosity_freertos/library" -I"../src/config/pic32mz_w1_curiosity_freertos/library/tcpip/src" -I"../src/config/pic32mz_w1_curiosity_freertos/library/tcpip/src/common" -Werror -Wall -MP -MMD -MF "build/pic32mz_w1_curiosity_freertos/production/_ext/991598407/wdrv_pic32mzw_softap.o.d" -o build/pic32mz_w1_curiosity_freertos/production/_ext/991598407/wdrv_pic32mzw_softap.o ../src/config/pic32mz_w1_curiosity_freertos/driver/wifi/pic32mzw1/wdrv_pic32mzw_softap.c -DXPRJ_pic32mz_w1_curiosity_freertos=pic32mz_w1_curiosity_freertos -no-legacy-libc -mdfp="C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC32MZ-W_DFP/1.3.177" "C:\Program Files\Microchip\xc32\v2.41\bin\xc32-gcc.exe" -g -x c -c -mprocessor=32MZ1025W104132 -ffunction-sections -O1 -DWOLFSSL_IGNORE_FILE_WARN -DHAVE_CONFIG_H -I"../src/third_party/rtos/FreeRTOS/Source/portable/MPLAB/PIC32MZ" -I"../src/third_party/rtos/FreeRTOS/Source/include" -I"../src/config/pic32mz_w1_curiosity_freertos/driver/wifi/pic32mzw1/include/" -I"../src/third_party/wolfssl/wolfssl" -I"../src/third_party/wolfssl" -I"../src" -I"../src/config/pic32mz_w1_curiosity_freertos" -I"../src/packs/PIC32MZ1025W104132_DFP" -I"../src/config/pic32mz_w1_curiosity_freertos/library" -I"../src/config/pic32mz_w1_curiosity_freertos/library/tcpip/src" -I"../src/config/pic32mz_w1_curiosity_freertos/library/tcpip/src/common" -Werror -Wall -MP -MMD -MF "build/pic32mz_w1_curiosity_freertos/production/_ext/991598407/wdrv_pic32mzw_sta.o.d" -o build/pic32mz_w1_curiosity_freertos/production/_ext/991598407/wdrv_pic32mzw_sta.o ../src/config/pic32mz_w1_curiosity_freertos/driver/wifi/pic32mzw1/wdrv_pic32mzw_sta.c -DXPRJ_pic32mz_w1_curiosity_freertos=pic32mz_w1_curiosity_freertos -no-legacy-libc -mdfp="C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC32MZ-W_DFP/1.3.177" "C:\Program Files\Microchip\xc32\v2.41\bin\xc32-gcc.exe" -g -x c -c -mprocessor=32MZ1025W104132 -ffunction-sections -O1 -DWOLFSSL_IGNORE_FILE_WARN -DHAVE_CONFIG_H -I"../src/third_party/rtos/FreeRTOS/Source/portable/MPLAB/PIC32MZ" -I"../src/third_party/rtos/FreeRTOS/Source/include" -I"../src/config/pic32mz_w1_curiosity_freertos/driver/wifi/pic32mzw1/include/" -I"../src/third_party/wolfssl/wolfssl" -I"../src/third_party/wolfssl" -I"../src" -I"../src/config/pic32mz_w1_curiosity_freertos" -I"../src/packs/PIC32MZ1025W104132_DFP" -I"../src/config/pic32mz_w1_curiosity_freertos/library" -I"../src/config/pic32mz_w1_curiosity_freertos/library/tcpip/src" -I"../src/config/pic32mz_w1_curiosity_freertos/library/tcpip/src/common" -Werror -Wall -MP -MMD -MF "build/pic32mz_w1_curiosity_freertos/production/_ext/991598407/wdrv_pic32mzw_ps.o.d" -o build/pic32mz_w1_curiosity_freertos/production/_ext/991598407/wdrv_pic32mzw_ps.o ../src/config/pic32mz_w1_curiosity_freertos/driver/wifi/pic32mzw1/wdrv_pic32mzw_ps.c -DXPRJ_pic32mz_w1_curiosity_freertos=pic32mz_w1_curiosity_freertos -no-legacy-libc -mdfp="C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC32MZ-W_DFP/1.3.177" "C:\Program Files\Microchip\xc32\v2.41\bin\xc32-gcc.exe" -g -x c -c -mprocessor=32MZ1025W104132 -ffunction-sections -O1 -DWOLFSSL_IGNORE_FILE_WARN -DHAVE_CONFIG_H -I"../src/third_party/rtos/FreeRTOS/Source/portable/MPLAB/PIC32MZ" -I"../src/third_party/rtos/FreeRTOS/Source/include" -I"../src/config/pic32mz_w1_curiosity_freertos/driver/wifi/pic32mzw1/include/" -I"../src/third_party/wolfssl/wolfssl" -I"../src/third_party/wolfssl" -I"../src" -I"../src/config/pic32mz_w1_curiosity_freertos" -I"../src/packs/PIC32MZ1025W104132_DFP" -I"../src/config/pic32mz_w1_curiosity_freertos/library" -I"../src/config/pic32mz_w1_curiosity_freertos/library/tcpip/src" -I"../src/config/pic32mz_w1_curiosity_freertos/library/tcpip/src/common" -Werror -Wall -MP -MMD -MF "build/pic32mz_w1_curiosity_freertos/production/_ext/479133741/helpers.o.d" -o build/pic32mz_w1_curiosity_freertos/production/_ext/479133741/helpers.o ../src/config/pic32mz_w1_curiosity_freertos/library/tcpip/src/helpers.c -DXPRJ_pic32mz_w1_curiosity_freertos=pic32mz_w1_curiosity_freertos -no-legacy-libc -mdfp="C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC32MZ-W_DFP/1.3.177" ../src/config/pic32mz_w1_curiosity_freertos/driver/wifi/pic32mzw1/wdrv_pic32mzw.c:111:5: error: initialization makes integer from pointer without a cast [-Werror] "PIC32MZW1", ^ ../src/config/pic32mz_w1_curiosity_freertos/driver/wifi/pic32mzw1/wdrv_pic32mzw.c:111:5: error: (near initialization for 'WDRV_PIC32MZW1_MACObject.macType') [-Werror] ../src/config/pic32mz_w1_curiosity_freertos/driver/wifi/pic32mzw1/wdrv_pic32mzw.c:111:5: error: initializer element is not computable at load time ../src/config/pic32mz_w1_curiosity_freertos/driver/wifi/pic32mzw1/wdrv_pic32mzw.c:111:5: error: (near initialization for 'WDRV_PIC32MZW1_MACObject.macType') ../src/config/pic32mz_w1_curiosity_freertos/driver/wifi/pic32mzw1/wdrv_pic32mzw.c:112:5: error: initialization makes integer from pointer without a cast [-Werror] WDRV_PIC32MZW_Initialize, ^ ../src/config/pic32mz_w1_curiosity_freertos/driver/wifi/pic32mzw1/wdrv_pic32mzw.c:112:5: error: (near initialization for 'WDRV_PIC32MZW1_MACObject.reserved') [-Werror] ../src/config/pic32mz_w1_curiosity_freertos/driver/wifi/pic32mzw1/wdrv_pic32mzw.c:112:5: error: initializer element is not computable at load time ../src/config/pic32mz_w1_curiosity_freertos/driver/wifi/pic32mzw1/wdrv_pic32mzw.c:112:5: error: (near initialization for 'WDRV_PIC32MZW1_MACObject.reserved') ../src/config/pic32mz_w1_curiosity_freertos/driver/wifi/pic32mzw1/wdrv_pic32mzw.c:113:5: error: initialization from incompatible pointer type [-Werror] WDRV_PIC32MZW_Deinitialize, ^ ../src/config/pic32mz_w1_curiosity_freertos/driver/wifi/pic32mzw1/wdrv_pic32mzw.c:113:5: error: (near initialization for 'WDRV_PIC32MZW1_MACObject.macName') [-Werror] ../src/config/pic32mz_w1_curiosity_freertos/driver/wifi/pic32mzw1/wdrv_pic32mzw.c:114:5: error: initialization from incompatible pointer type [-Werror] WDRV_PIC32MZW_Reinitialize, ^

deepensolanki commented 3 years ago

I have a PIC32WFI32E Curiosity board with the WFI32E01PC chip and I'm getting the same errors too! The project fails to build. All the errors are in the initialization of the PIC32MZW1 MAC object

const TCPIP_MAC_OBJECT WDRV_PIC32MZW1_MACObject = { TCPIP_MODULE_MAC_PIC32MZW1, "PIC32MZW1", WDRV_PIC32MZW_Initialize, WDRV_PIC32MZW_Deinitialize, WDRV_PIC32MZW_Reinitialize, WDRV_PIC32MZW_Status, WDRV_PIC32MZW_MACTasks, WDRV_PIC32MZW_Open, WDRV_PIC32MZW_Close, WDRV_PIC32MZW_MACLinkCheck, WDRV_PIC32MZW_MACRxFilterHashTableEntrySet, WDRV_PIC32MZW_MACPowerMode, WDRV_PIC32MZW_MACPacketTx, WDRV_PIC32MZW_MACPacketRx, WDRV_PIC32MZW_MACProcess, WDRV_PIC32MZW_MACStatisticsGet, WDRV_PIC32MZW_MACParametersGet, WDRV_PIC32MZW_MACRegisterStatisticsGet, WDRV_PIC32MZW_MACConfigGet, WDRV_PIC32MZW_MACEventMaskSet, WDRV_PIC32MZW_MACEventAcknowledge, WDRV_PIC32MZW_MACEventPendingGet, };

All of these members are being initialized from incompatible pointer types according to the error. Here is the complete error message

UBPROJECTS= .build-conf make[1]: Entering directory 'C:/Users/dsolanki/HarmonyProjects/wireless/apps/tcp_client/firmware/pic32mz_w1_curiosity_freertos.X' make -f nbproject/Makefile-pic32mz_w1_curiosity_freertos.mk dist/pic32mz_w1_curiosity_freertos/production/pic32mz_w1_curiosity_freertos.X.production.hex make[2]: Entering directory 'C:/Users/dsolanki/HarmonyProjects/wireless/apps/tcp_client/firmware/pic32mz_w1_curiosity_freertos.X' "C:\Program Files\Microchip\xc32\v2.50\bin\xc32-gcc.exe" -g -x c -c -mprocessor=32MZ1025W104132 -ffunction-sections -O1 -DWOLFSSL_IGNORE_FILE_WARN -DHAVE_CONFIG_H -I"../src/third_party/rtos/FreeRTOS/Source/portable/MPLAB/PIC32MZ" -I"../src/third_party/rtos/FreeRTOS/Source/include" -I"../src/config/pic32mz_w1_curiosity_freertos/driver/wifi/pic32mzw1/include/" -I"../src/third_party/wolfssl/wolfssl" -I"../src/third_party/wolfssl" -I"../src" -I"../src/config/pic32mz_w1_curiosity_freertos" -I"../src/packs/PIC32MZ1025W104132_DFP" -I"../src/config/pic32mz_w1_curiosity_freertos/library" -I"../src/config/pic32mz_w1_curiosity_freertos/library/tcpip/src" -I"../src/config/pic32mz_w1_curiosity_freertos/library/tcpip/src/common" -Wall -MP -MMD -MF "build/pic32mz_w1_curiosity_freertos/production/_ext/801842892/crypto.o.d" -o build/pic32mz_w1_curiosity_freertos/production/_ext/801842892/crypto.o ../src/config/pic32mz_w1_curiosity_freertos/crypto/src/crypto.c -DXPRJ_pic32mz_w1_curiosity_freertos=pic32mz_w1_curiosity_freertos -no-legacy-libc -mdfp="C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC32MZ-W_DFP/1.3.177"
"C:\Program Files\Microchip\xc32\v2.50\bin\xc32-gcc.exe" -g -x c -c -mprocessor=32MZ1025W104132 -ffunction-sections -O1 -DWOLFSSL_IGNORE_FILE_WARN -DHAVE_CONFIG_H -I"../src/third_party/rtos/FreeRTOS/Source/portable/MPLAB/PIC32MZ" -I"../src/third_party/rtos/FreeRTOS/Source/include" -I"../src/config/pic32mz_w1_curiosity_freertos/driver/wifi/pic32mzw1/include/" -I"../src/third_party/wolfssl/wolfssl" -I"../src/third_party/wolfssl" -I"../src" -I"../src/config/pic32mz_w1_curiosity_freertos" -I"../src/packs/PIC32MZ1025W104132_DFP" -I"../src/config/pic32mz_w1_curiosity_freertos/library" -I"../src/config/pic32mz_w1_curiosity_freertos/library/tcpip/src" -I"../src/config/pic32mz_w1_curiosity_freertos/library/tcpip/src/common" -Wall -MP -MMD -MF "build/pic32mz_w1_curiosity_freertos/production/_ext/808187859/drv_ba414e.o.d" -o build/pic32mz_w1_curiosity_freertos/production/_ext/808187859/drv_ba414e.o ../src/config/pic32mz_w1_curiosity_freertos/driver/ba414e/src/drv_ba414e.c -DXPRJ_pic32mz_w1_curiosity_freertos=pic32mz_w1_curiosity_freertos -no-legacy-libc -mdfp="C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC32MZ-W_DFP/1.3.177"
"C:\Program Files\Microchip\xc32\v2.50\bin\xc32-gcc.exe" -g -x c -c -mprocessor=32MZ1025W104132 -ffunction-sections -O1 -DWOLFSSL_IGNORE_FILE_WARN -DHAVE_CONFIG_H -I"../src/third_party/rtos/FreeRTOS/Source/portable/MPLAB/PIC32MZ" -I"../src/third_party/rtos/FreeRTOS/Source/include" -I"../src/config/pic32mz_w1_curiosity_freertos/driver/wifi/pic32mzw1/include/" -I"../src/third_party/wolfssl/wolfssl" -I"../src/third_party/wolfssl" -I"../src" -I"../src/config/pic32mz_w1_curiosity_freertos" -I"../src/packs/PIC32MZ1025W104132_DFP" -I"../src/config/pic32mz_w1_curiosity_freertos/library" -I"../src/config/pic32mz_w1_curiosity_freertos/library/tcpip/src" -I"../src/config/pic32mz_w1_curiosity_freertos/library/tcpip/src/common" -Wall -MP -MMD -MF "build/pic32mz_w1_curiosity_freertos/production/_ext/991598407/drv_pic32mzw1_crypto.o.d" -o build/pic32mz_w1_curiosity_freertos/production/_ext/991598407/drv_pic32mzw1_crypto.o ../src/config/pic32mz_w1_curiosity_freertos/driver/wifi/pic32mzw1/drv_pic32mzw1_crypto.c -DXPRJ_pic32mz_w1_curiosity_freertos=pic32mz_w1_curiosity_freertos -no-legacy-libc -mdfp="C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC32MZ-W_DFP/1.3.177"
"C:\Program Files\Microchip\xc32\v2.50\bin\xc32-gcc.exe" -g -x c -c -mprocessor=32MZ1025W104132 -ffunction-sections -O1 -DWOLFSSL_IGNORE_FILE_WARN -DHAVE_CONFIG_H -I"../src/third_party/rtos/FreeRTOS/Source/portable/MPLAB/PIC32MZ" -I"../src/third_party/rtos/FreeRTOS/Source/include" -I"../src/config/pic32mz_w1_curiosity_freertos/driver/wifi/pic32mzw1/include/" -I"../src/third_party/wolfssl/wolfssl" -I"../src/third_party/wolfssl" -I"../src" -I"../src/config/pic32mz_w1_curiosity_freertos" -I"../src/packs/PIC32MZ1025W104132_DFP" -I"../src/config/pic32mz_w1_curiosity_freertos/library" -I"../src/config/pic32mz_w1_curiosity_freertos/library/tcpip/src" -I"../src/config/pic32mz_w1_curiosity_freertos/library/tcpip/src/common" -Wall -MP -MMD -MF "build/pic32mz_w1_curiosity_freertos/production/_ext/991598407/wdrv_pic32mzw.o.d" -o build/pic32mz_w1_curiosity_freertos/production/_ext/991598407/wdrv_pic32mzw.o ../src/config/pic32mz_w1_curiosity_freertos/driver/wifi/pic32mzw1/wdrv_pic32mzw.c -DXPRJ_pic32mz_w1_curiosity_freertos=pic32mz_w1_curiosity_freertos -no-legacy-libc -mdfp="C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC32MZ-W_DFP/1.3.177"
"C:\Program Files\Microchip\xc32\v2.50\bin\xc32-gcc.exe" -g -x c -c -mprocessor=32MZ1025W104132 -ffunction-sections -O1 -DWOLFSSL_IGNORE_FILE_WARN -DHAVE_CONFIG_H -I"../src/third_party/rtos/FreeRTOS/Source/portable/MPLAB/PIC32MZ" -I"../src/third_party/rtos/FreeRTOS/Source/include" -I"../src/config/pic32mz_w1_curiosity_freertos/driver/wifi/pic32mzw1/include/" -I"../src/third_party/wolfssl/wolfssl" -I"../src/third_party/wolfssl" -I"../src" -I"../src/config/pic32mz_w1_curiosity_freertos" -I"../src/packs/PIC32MZ1025W104132_DFP" -I"../src/config/pic32mz_w1_curiosity_freertos/library" -I"../src/config/pic32mz_w1_curiosity_freertos/library/tcpip/src" -I"../src/config/pic32mz_w1_curiosity_freertos/library/tcpip/src/common" -Wall -MP -MMD -MF "build/pic32mz_w1_curiosity_freertos/production/_ext/991598407/wdrv_pic32mzw_assoc.o.d" -o build/pic32mz_w1_curiosity_freertos/production/_ext/991598407/wdrv_pic32mzw_assoc.o ../src/config/pic32mz_w1_curiosity_freertos/driver/wifi/pic32mzw1/wdrv_pic32mzw_assoc.c -DXPRJ_pic32mz_w1_curiosity_freertos=pic32mz_w1_curiosity_freertos -no-legacy-libc -mdfp="C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC32MZ-W_DFP/1.3.177"
../src/config/pic32mz_w1_curiosity_freertos/driver/wifi/pic32mzw1/wdrv_pic32mzw.c:111:5: warning: initialization makes integer from pointer without a cast [enabled by default] "PIC32MZW1", ^ ../src/config/pic32mz_w1_curiosity_freertos/driver/wifi/pic32mzw1/wdrv_pic32mzw.c:111:5: warning: (near initialization for 'WDRV_PIC32MZW1_MACObject.macType') [enabled by default] ../src/config/pic32mz_w1_curiosity_freertos/driver/wifi/pic32mzw1/wdrv_pic32mzw.c:111:5: error: initializer element is not computable at load time ../src/config/pic32mz_w1_curiosity_freertos/driver/wifi/pic32mzw1/wdrv_pic32mzw.c:111:5: error: (near initialization for 'WDRV_PIC32MZW1_MACObject.macType') ../src/config/pic32mz_w1_curiosity_freertos/driver/wifi/pic32mzw1/wdrv_pic32mzw.c:112:5: warning: initialization makes integer from pointer without a cast [enabled by default] WDRV_PIC32MZW_Initialize, ^ ../src/config/pic32mz_w1_curiosity_freertos/driver/wifi/pic32mzw1/wdrv_pic32mzw.c:112:5: warning: (near initialization for 'WDRV_PIC32MZW1_MACObject.reserved') [enabled by default] ../src/config/pic32mz_w1_curiosity_freertos/driver/wifi/pic32mzw1/wdrv_pic32mzw.c:112:5: error: initializer element is not computable at load time ../src/config/pic32mz_w1_curiosity_freertos/driver/wifi/pic32mzw1/wdrv_pic32mzw.c:112:5: error: (near initialization for 'WDRV_PIC32MZW1_MACObject.reserved') ../src/config/pic32mz_w1_curiosity_freertos/driver/wifi/pic32mzw1/wdrv_pic32mzw.c:113:5: warning: initialization from incompatible pointer type [enabled by default] WDRV_PIC32MZW_Deinitialize, ^ ../src/config/pic32mz_w1_curiosity_freertos/driver/wifi/pic32mzw1/wdrv_pic32mzw.c:113:5: warning: (near initialization for 'WDRV_PIC32MZW1_MACObject.macName') [enabled by default] ../src/config/pic32mz_w1_curiosity_freertos/driver/wifi/pic32mzw1/wdrv_pic32mzw.c:114:5: warning: initialization from incompatible pointer type [enabled by default] WDRV_PIC32MZW_Reinitialize, ^ ../src/config/pic32mz_w1_curiosity_freertos/driver/wifi/pic32mzw1/wdrv_pic32mzw.c:114:5: warning: (near initialization for 'WDRV_PIC32MZW1_MACObject.TCPIP_MAC_Initialize') [enabled by default] ../src/config/pic32mz_w1_curiosity_freertos/driver/wifi/pic32mzw1/wdrv_pic32mzw.c:115:5: warning: initialization from incompatible pointer type [enabled by default] WDRV_PIC32MZW_Status, ^ ../src/config/pic32mz_w1_curiosity_freertos/driver/wifi/pic32mzw1/wdrv_pic32mzw.c:115:5: warning: (near initialization for 'WDRV_PIC32MZW1_MACObject.TCPIP_MAC_Deinitialize') [enabled by default] ../src/config/pic32mz_w1_curiosity_freertos/driver/wifi/pic32mzw1/wdrv_pic32mzw.c:116:5: warning: initialization from incompatible pointer type [enabled by default] WDRV_PIC32MZW_MACTasks, ^ ../src/config/pic32mz_w1_curiosity_freertos/driver/wifi/pic32mzw1/wdrv_pic32mzw.c:116:5: warning: (near initialization for 'WDRV_PIC32MZW1_MACObject.TCPIP_MAC_Reinitialize') [enabled by default] ../src/config/pic32mz_w1_curiosity_freertos/driver/wifi/pic32mzw1/wdrv_pic32mzw.c:117:5: warning: initialization from incompatible pointer type [enabled by default] WDRV_PIC32MZW_Open, ^ ../src/config/pic32mz_w1_curiosity_freertos/driver/wifi/pic32mzw1/wdrv_pic32mzw.c:117:5: warning: (near initialization for 'WDRV_PIC32MZW1_MACObject.TCPIP_MAC_Status') [enabled by default] ../src/config/pic32mz_w1_curiosity_freertos/driver/wifi/pic32mzw1/wdrv_pic32mzw.c:119:5: warning: initialization from incompatible pointer type [enabled by default] WDRV_PIC32MZW_MACLinkCheck, ^ ../src/config/pic32mz_w1_curiosity_freertos/driver/wifi/pic32mzw1/wdrv_pic32mzw.c:119:5: warning: (near initialization for 'WDRV_PIC32MZW1_MACObject.TCPIP_MAC_Open') [enabled by default] ../src/config/pic32mz_w1_curiosity_freertos/driver/wifi/pic32mzw1/wdrv_pic32mzw.c:120:5: warning: initialization from incompatible pointer type [enabled by default] WDRV_PIC32MZW_MACRxFilterHashTableEntrySet, ^ ../src/config/pic32mz_w1_curiosity_freertos/driver/wifi/pic32mzw1/wdrv_pic32mzw.c:120:5: warning: (near initialization for 'WDRV_PIC32MZW1_MACObject.TCPIP_MAC_Close') [enabled by default] ../src/config/pic32mz_w1_curiosity_freertos/driver/wifi/pic32mzw1/wdrv_pic32mzw.c:121:5: warning: initialization from incompatible pointer type [enabled by default] WDRV_PIC32MZW_MACPowerMode, ^ ../src/config/pic32mz_w1_curiosity_freertos/driver/wifi/pic32mzw1/wdrv_pic32mzw.c:121:5: warning: (near initialization for 'WDRV_PIC32MZW1_MACObject.TCPIP_MAC_LinkCheck') [enabled by default] ../src/config/pic32mz_w1_curiosity_freertos/driver/wifi/pic32mzw1/wdrv_pic32mzw.c:122:5: warning: initialization from incompatible pointer type [enabled by default] WDRV_PIC32MZW_MACPacketTx, ^ ../src/config/pic32mz_w1_curiosity_freertos/driver/wifi/pic32mzw1/wdrv_pic32mzw.c:122:5: warning: (near initialization for 'WDRV_PIC32MZW1_MACObject.TCPIP_MAC_RxFilterHashTableEntrySet') [enabled by default] ../src/config/pic32mz_w1_curiosity_freertos/driver/wifi/pic32mzw1/wdrv_pic32mzw.c:123:5: warning: initialization from incompatible pointer type [enabled by default] WDRV_PIC32MZW_MACPacketRx, ^ ../src/config/pic32mz_w1_curiosity_freertos/driver/wifi/pic32mzw1/wdrv_pic32mzw.c:123:5: warning: (near initialization for 'WDRV_PIC32MZW1_MACObject.TCPIP_MAC_PowerMode') [enabled by default] ../src/config/pic32mz_w1_curiosity_freertos/driver/wifi/pic32mzw1/wdrv_pic32mzw.c:124:5: warning: initialization from incompatible pointer type [enabled by default] WDRV_PIC32MZW_MACProcess, ^ ../src/config/pic32mz_w1_curiosity_freertos/driver/wifi/pic32mzw1/wdrv_pic32mzw.c:124:5: warning: (near initialization for 'WDRV_PIC32MZW1_MACObject.TCPIP_MAC_PacketTx') [enabled by default] ../src/config/pic32mz_w1_curiosity_freertos/driver/wifi/pic32mzw1/wdrv_pic32mzw.c:125:5: warning: initialization from incompatible pointer type [enabled by default] WDRV_PIC32MZW_MACStatisticsGet, ^ ../src/config/pic32mz_w1_curiosity_freertos/driver/wifi/pic32mzw1/wdrv_pic32mzw.c:125:5: warning: (near initialization for 'WDRV_PIC32MZW1_MACObject.TCPIP_MAC_PacketRx') [enabled by default] ../src/config/pic32mz_w1_curiosity_freertos/driver/wifi/pic32mzw1/wdrv_pic32mzw.c:126:5: warning: initialization from incompatible pointer type [enabled by default] WDRV_PIC32MZW_MACParametersGet, ^ ../src/config/pic32mz_w1_curiosity_freertos/driver/wifi/pic32mzw1/wdrv_pic32mzw.c:126:5: warning: (near initialization for 'WDRV_PIC32MZW1_MACObject.TCPIP_MAC_Process') [enabled by default] ../src/config/pic32mz_w1_curiosity_freertos/driver/wifi/pic32mzw1/wdrv_pic32mzw.c:127:5: warning: initialization from incompatible pointer type [enabled by default] WDRV_PIC32MZW_MACRegisterStatisticsGet, ^ ../src/config/pic32mz_w1_curiosity_freertos/driver/wifi/pic32mzw1/wdrv_pic32mzw.c:127:5: warning: (near initialization for 'WDRV_PIC32MZW1_MACObject.TCPIP_MAC_StatisticsGet') [enabled by default] ../src/config/pic32mz_w1_curiosity_freertos/driver/wifi/pic32mzw1/wdrv_pic32mzw.c:128:5: warning: initialization from incompatible pointer type [enabled by default] WDRV_PIC32MZW_MACConfigGet, ^ ../src/config/pic32mz_w1_curiosity_freertos/driver/wifi/pic32mzw1/wdrv_pic32mzw.c:128:5: warning: (near initialization for 'WDRV_PIC32MZW1_MACObject.TCPIP_MAC_ParametersGet') [enabled by default] ../src/config/pic32mz_w1_curiosity_freertos/driver/wifi/pic32mzw1/wdrv_pic32mzw.c:129:5: warning: initialization from incompatible pointer type [enabled by default] WDRV_PIC32MZW_MACEventMaskSet, ^ ../src/config/pic32mz_w1_curiosity_freertos/driver/wifi/pic32mzw1/wdrv_pic32mzw.c:129:5: warning: (near initialization for 'WDRV_PIC32MZW1_MACObject.TCPIP_MAC_RegisterStatisticsGet') [enabled by default] ../src/config/pic32mz_w1_curiosity_freertos/driver/wifi/pic32mzw1/wdrv_pic32mzw.c:130:5: warning: initialization from incompatible pointer type [enabled by default] WDRV_PIC32MZW_MACEventAcknowledge, ^ ../src/config/pic32mz_w1_curiosity_freertos/driver/wifi/pic32mzw1/wdrv_pic32mzw.c:130:5: warning: (near initialization for 'WDRV_PIC32MZW1_MACObject.TCPIP_MAC_ConfigGet') [enabled by default] ../src/config/pic32mz_w1_curiosity_freertos/driver/wifi/pic32mzw1/wdrv_pic32mzw.c:131:5: warning: initialization from incompatible pointer type [enabled by default] WDRV_PIC32MZW_MACEventPendingGet, ^ ../src/config/pic32mz_w1_curiosity_freertos/driver/wifi/pic32mzw1/wdrv_pic32mzw.c:131:5: warning: (near initialization for 'WDRV_PIC32MZW1_MACObject.TCPIP_MAC_EventMaskSet') [enabled by default] nbproject/Makefile-pic32mz_w1_curiosity_freertos.mk:1228: recipe for target 'build/pic32mz_w1_curiosity_freertos/production/_ext/991598407/wdrv_pic32mzw.o' failed "C:\Program Files\Microchip\xc32\v2.50\bin\xc32-gcc.exe" -g -x c -c -mprocessor=32MZ1025W104132 -ffunction-sections -O1 -DWOLFSSL_IGNORE_FILE_WARN -DHAVE_CONFIG_H -I"../src/third_party/rtos/FreeRTOS/Source/portable/MPLAB/PIC32MZ" -I"../src/third_party/rtos/FreeRTOS/Source/include" -I"../src/config/pic32mz_w1_curiosity_freertos/driver/wifi/pic32mzw1/include/" -I"../src/third_party/wolfssl/wolfssl" -I"../src/third_party/wolfssl" -I"../src" -I"../src/config/pic32mz_w1_curiosity_freertos" -I"../src/packs/PIC32MZ1025W104132_DFP" -I"../src/config/pic32mz_w1_curiosity_freertos/library" -I"../src/config/pic32mz_w1_curiosity_freertos/library/tcpip/src" -I"../src/config/pic32mz_w1_curiosity_freertos/library/tcpip/src/common" -Wall -MP -MMD -MF "build/pic32mz_w1_curiosity_freertos/production/_ext/991598407/wdrv_pic32mzw_authctx.o.d" -o build/pic32mz_w1_curiosity_freertos/production/_ext/991598407/wdrv_pic32mzw_authctx.o ../src/config/pic32mz_w1_curiosity_freertos/driver/wifi/pic32mzw1/wdrv_pic32mzw_authctx.c -DXPRJ_pic32mz_w1_curiosity_freertos=pic32mz_w1_curiosity_freertos -no-legacy-libc -mdfp="C:/Program Files/Microchip/MPLABX/v5.45/packs/Microchip/PIC32MZ-W_DFP/1.3.177"
make[2]: [build/pic32mz_w1_curiosity_freertos/production/_ext/991598407/wdrv_pic32mzw.o] Error 255 make[2]: Waiting for unfinished jobs.... make[2]: Leaving directory 'C:/Users/dsolanki/HarmonyProjects/wireless/apps/tcp_client/firmware/pic32mz_w1_curiosity_freertos.X' nbproject/Makefile-pic32mz_w1_curiosity_freertos.mk:91: recipe for target '.build-conf' failed make[1]: Leaving directory 'C:/Users/dsolanki/HarmonyProjects/wireless/apps/tcp_client/firmware/pic32mz_w1_curiosity_freertos.X' nbproject/Makefile-impl.mk:39: recipe for target '.build-impl' failed make[1]: [.build-conf] Error 2 make: [.build-impl] Error 2

BUILD FAILED (exit value 2, total time: 19s)

deepensolanki commented 3 years ago

This is the definition of the TCPIP_MAC_OBJECT struct found in tcpip_mac_object.h and I think the initialization is missing two members (number 2 uint8_t macId and number 3 uint8_t reserved) which is why the initialization is throwing errors

typedef struct TCPIP_MAC_OBJECT_TYPE { uint16_t macId; // one of the TCPIP_MODULE_MAC_ID IDs uint8_t macType; // a TCPIP_MAC_TYPE value uint8_t reserved; // reserved for future use const char macName; // PIC32INT, MRF24WN, etc SYS_MODULE_OBJ (TCPIP_MAC_Initialize)(const SYS_MODULE_INDEX index, const SYS_MODULE_INIT const init); void (TCPIP_MAC_Deinitialize)(SYS_MODULE_OBJ object); void (TCPIP_MAC_Reinitialize)(SYS_MODULE_OBJ object, const SYS_MODULE_INIT const init); SYS_STATUS (TCPIP_MAC_Status)( SYS_MODULE_OBJ object ); void (TCPIP_MAC_Tasks)( SYS_MODULE_OBJ object ); DRV_HANDLE (TCPIP_MAC_Open)(const SYS_MODULE_INDEX drvIndex, const DRV_IO_INTENT intent); void (TCPIP_MAC_Close)(DRV_HANDLE hMac); bool (TCPIP_MAC_LinkCheck)(DRV_HANDLE hMac); TCPIP_MAC_RES (TCPIP_MAC_RxFilterHashTableEntrySet)(DRV_HANDLE hMac, const TCPIP_MAC_ADDR DestMACAddr); bool (TCPIP_MAC_PowerMode)(DRV_HANDLE hMac, TCPIP_MAC_POWER_MODE pwrMode); TCPIP_MAC_RES (TCPIP_MAC_PacketTx)(DRV_HANDLE hMac, TCPIP_MAC_PACKET ptrPacket); TCPIP_MAC_PACKET (TCPIP_MAC_PacketRx)(DRV_HANDLE hMac, TCPIP_MAC_RES* pRes, const TCPIP_MAC_PACKET_RX_STAT* ppPktStat); TCPIP_MAC_RES (TCPIP_MAC_Process)(DRV_HANDLE hMac); TCPIP_MAC_RES (TCPIP_MAC_StatisticsGet)(DRV_HANDLE hMac, TCPIP_MAC_RX_STATISTICS pRxStatistics, TCPIP_MAC_TX_STATISTICS pTxStatistics); TCPIP_MAC_RES (TCPIP_MAC_ParametersGet)(DRV_HANDLE hMac, TCPIP_MAC_PARAMETERS pMacParams); TCPIP_MAC_RES (TCPIP_MAC_RegisterStatisticsGet)(DRV_HANDLE hMac, TCPIP_MAC_STATISTICS_REG_ENTRY pRegEntries, int nEntries, int pHwEntries); size_t (TCPIP_MAC_ConfigGet)(DRV_HANDLE hMac, void configBuff, size_t buffSize, size_t* pConfigSize);

bool                (*TCPIP_MAC_EventMaskSet)(DRV_HANDLE hMac, TCPIP_MAC_EVENT macEvents, bool enable);
bool                (*TCPIP_MAC_EventAcknowledge)(DRV_HANDLE hMac, TCPIP_MAC_EVENT macEvents);
TCPIP_MAC_EVENT     (*TCPIP_MAC_EventPendingGet)(DRV_HANDLE hMac);

}TCPIP_MAC_OBJECT; // TCPIP MAC object descriptor

In your code, change the initialization to this and it should get rid of that error (I am using the PIC32WFI32 Curiosity board with a Wi-Fi setup so these values seem correct to me)

const TCPIP_MAC_OBJECT WDRV_PIC32MZW1_MACObject = { TCPIP_MODULE_MAC_PIC32MZW1, TCPIP_MAC_TYPE_WLAN, // this is the mac id type 0, //this is reserved "PIC32MZW1", WDRV_PIC32MZW_Initialize, WDRV_PIC32MZW_Deinitialize, WDRV_PIC32MZW_Reinitialize, WDRV_PIC32MZW_Status, WDRV_PIC32MZW_MACTasks, WDRV_PIC32MZW_Open, WDRV_PIC32MZW_Close, WDRV_PIC32MZW_MACLinkCheck, WDRV_PIC32MZW_MACRxFilterHashTableEntrySet, WDRV_PIC32MZW_MACPowerMode, WDRV_PIC32MZW_MACPacketTx, WDRV_PIC32MZW_MACPacketRx, WDRV_PIC32MZW_MACProcess, WDRV_PIC32MZW_MACStatisticsGet, WDRV_PIC32MZW_MACParametersGet, WDRV_PIC32MZW_MACRegisterStatisticsGet, WDRV_PIC32MZW_MACConfigGet, WDRV_PIC32MZW_MACEventMaskSet, WDRV_PIC32MZW_MACEventAcknowledge, WDRV_PIC32MZW_MACEventPendingGet, };

gd91 commented 3 years ago

Because Microchip regularly update tools, occasionally, issue(s) could be discovered while combining some components versions of Harmony. If the project doesn't compile and version incompatibility is suspected, it is recommended to double-check and use the same versions that the project was tested with. Easiest is to load the manifest from wireless apps folder and in one click you have a working setup.