TheThingsProducts / gateway

The Things Kickstarter Gateway
https://www.thethingsindustries.com/docs/gateways/models/thethingskickstartergateway
55 stars 20 forks source link

Problems building and uploading firmware using MPLAB #59

Closed frankminfarm closed 5 years ago

frankminfarm commented 5 years ago

This is a question

What do you want to do? What do you expect?

I am trying to build and upload the TTN-Gateway firmware code using MPLAB X IDE v3.45. While the project seems to build fine - see log below - and the firmware is uploaded using my PICkit3 (Chinese copy), none of the TTN-Gateway's LEDs turn on and the board is unresponsive.

What steps did you take? (Give as many details as possible so that we can reproduce it)

  1. I followed the steps documented here.

  2. However, running compile.sh failed with the following output:

make: *** [.build-conf] Error 2

  1. I then opened up the project in MPLAD IDE and ran it from there with the results outlined above - the project seems to build fine and the hex file is uploaded to the TTN-G.

What went wrong? What is missing?

None of the TTN-Gateway's LEDs turn on and the board is unresponsive once the built firmware is uploaded.

What firmware is running on your gateway?

I believe that it's v1.0.5 - at least this is the output of running the generate_version_header.sh command - is this correct?

I have been able to upload the latest stable firmware .hex file using MPLAB IPE and this works fine - i.e. the TTN-G is operational.

What do the logs show?

Here is the output from MPLAB IDE - note that I have shortened this due to the post size limit restriction:

make -f nbproject/Makefile-TTN_Gateway_v1.mk SUBPROJECTS= .build-conf
make[1]: Entering directory '/Users/user/Documents/company/projects/ttn/gateway/gateway/firmware/TTN_Gateway.X'
make  -f nbproject/Makefile-TTN_Gateway_v1.mk dist/TTN_Gateway_v1/debug/TTN_Gateway.X.debug.elf
make[2]: Entering directory '/Users/user/Documents/company/projects/ttn/gateway/gateway/firmware/TTN_Gateway.X'
"/Applications/microchip/xc32/v1.42/bin/xc32-gcc" -g -D__DEBUG -D__MPLAB_DEBUGGER_PK3=1 -fframe-base-loclist -x c -c -mprocessor=32MZ2048EFM144 -ffunction-sections -O1 -D_FULL_SIGNAL_IMPLEMENTATION -I../src -I../vendor/harmony/framework -I../vendor/jsmn -I../vendor/json-builder -I../vendor/GenericRecorderLibSrc/Include -I../vendor/ttn-gateway-connector/src -I../vendor/protobuf-c -I../vendor/ttn-gateway-connector/src/github.com/TheThingsNetwork -I../vendor/ttn-gateway-connector/src/github.com/gogo/protobuf/protobuf -I../vendor/paho.mqtt.embedded-c/MQTTPacket/src -I../vendor/paho.mqtt.embedded-c/MQTTClient-C/src -I../vendor/mbedtls/include -I../vendor/harmony/framework -I../src/system_config/TTN_Gateway_v1 -I../src/TTN_Gateway_v1 -I../vendor/harmony/framework -I../src/system_config/TTN_Gateway_v1/framework -I../vendor/harmony/framework/driver/wifi/mrf24wn/include -I../vendor/harmony/framework/driver/wifi/mrf24wn/wireless_driver/include -I../vendor/harmony/framework/driver/wifi/mrf24wn/wireless_driver_extension -I../vendor/harmony/third_party/rtos/FreeRTOS/Source/portable/MPLAB/PIC32MZ -I../vendor/harmony/third_party/rtos/FreeRTOS/Source/include -I../vendor/gateway-module-interface/lib -MMD -MF build/TTN_Gateway_v1/debug/_ext/2082537404/MQTTConnectServer.o.d -o build/TTN_Gateway_v1/debug/_ext/2082537404/MQTTConnectServer.o ../vendor/paho.mqtt.embedded-c/MQTTPacket/src/MQTTConnectServer.c -DXPRJ_TTN_Gateway_v1=TTN_Gateway_v1 -no-legacy-libc -DMQTT_TASK -G 0 
"/Applications/microchip/xc32/v1.42/bin/xc32-gcc" -g -D__DEBUG -D__MPLAB_DEBUGGER_PK3=1 -fframe-base-loclist -x c -c -mprocessor=32MZ2048EFM144 -ffunction-sections -O1 -D_FULL_SIGNAL_IMPLEMENTATION -I../src -I../vendor/harmony/framework -I../vendor/jsmn -I../vendor/json-builder -I../vendor/GenericRecorderLibSrc/Include -I../vendor/ttn-gateway-connector/src -I../vendor/protobuf-c -I../vendor/ttn-gateway-connector/src/github.com/TheThingsNetwork -I../vendor/ttn-gateway-connector/src/github.com/gogo/protobuf/protobuf -I../vendor/paho.mqtt.embedded-c/MQTTPacket/src -I../vendor/paho.mqtt.embedded-c/MQTTClient-C/src -I../vendor/mbedtls/include -I../vendor/harmony/framework -I../src/system_config/TTN_Gateway_v1 -I../src/TTN_Gateway_v1 -I../vendor/harmony/framework -I../src/system_config/TTN_Gateway_v1/framework -I../vendor/harmony/framework/driver/wifi/mrf24wn/include -I../vendor/harmony/framework/driver/wifi/mrf24wn/wireless_driver/include -I../vendor/harmony/framework/driver/wifi/mrf24wn/wireless_driver_extension -I../vendor/harmony/third_party/rtos/FreeRTOS/Source/portable/MPLAB/PIC32MZ -I../vendor/harmony/third_party/rtos/FreeRTOS/Source/include -I../vendor/gateway-module-interface/lib -MMD -MF build/TTN_Gateway_v1/debug/_ext/2082537404/MQTTDeserializePublish.o.d -o build/TTN_Gateway_v1/debug/_ext/2082537404/MQTTDeserializePublish.o ../vendor/paho.mqtt.embedded-c/MQTTPacket/src/MQTTDeserializePublish.c -DXPRJ_TTN_Gateway_v1=TTN_Gateway_v1 -no-legacy-libc -DMQTT_TASK -G 0 
"/Applications/microchip/xc32/v1.42/bin/xc32-gcc" -g -D__DEBUG -D__MPLAB_DEBUGGER_PK3=1 -fframe-base-loclist -x c -c -mprocessor=32MZ2048EFM144 -ffunction-sections -O1 -D_FULL_SIGNAL_IMPLEMENTATION -I../src -I../vendor/harmony/framework -I../vendor/jsmn -I../vendor/json-builder -I../vendor/GenericRecorderLibSrc/Include -I../vendor/ttn-gateway-connector/src -I../vendor/protobuf-c -I../vendor/ttn-gateway-connector/src/github.com/TheThingsNetwork -I../vendor/ttn-gateway-connector/src/github.com/gogo/protobuf/protobuf -I../vendor/paho.mqtt.embedded-c/MQTTPacket/src -I../vendor/paho.mqtt.embedded-c/MQTTClient-C/src -I../vendor/mbedtls/include -I../vendor/harmony/framework -I../src/system_config/TTN_Gateway_v1 -I../src/TTN_Gateway_v1 -I../vendor/harmony/framework -I../src/system_config/TTN_Gateway_v1/framework -I../vendor/harmony/framework/driver/wifi/mrf24wn/include -I../vendor/harmony/framework/driver/wifi/mrf24wn/wireless_driver/include -I../vendor/harmony/framework/driver/wifi/mrf24wn/wireless_driver_extension -I../vendor/harmony/third_party/rtos/FreeRTOS/Source/portable/MPLAB/PIC32MZ -I../vendor/harmony/third_party/rtos/FreeRTOS/Source/include -I../vendor/gateway-module-interface/lib -MMD -MF build/TTN_Gateway_v1/debug/_ext/2082537404/MQTTSerializePublish.o.d -o build/TTN_Gateway_v1/debug/_ext/2082537404/MQTTSerializePublish.o ../vendor/paho.mqtt.embedded-c/MQTTPacket/src/MQTTSerializePublish.c -DXPRJ_TTN_Gateway_v1=TTN_Gateway_v1 -no-legacy-libc -DMQTT_TASK -G 0 
"/Applications/microchip/xc32/v1.42/bin/xc32-gcc" -g -D__DEBUG -D__MPLAB_DEBUGGER_PK3=1 -fframe-base-loclist -x c -c -mprocessor=32MZ2048EFM144 -ffunction-sections -O1 -D_FULL_SIGNAL_IMPLEMENTATION -I../src -I../vendor/harmony/framework -I../vendor/jsmn -I../vendor/json-builder -I../vendor/GenericRecorderLibSrc/Include -I../vendor/ttn-gateway-connector/src -I../vendor/protobuf-c -I../vendor/ttn-gateway-connector/src/github.com/TheThingsNetwork -I../vendor/ttn-gateway-connector/src/github.com/gogo/protobuf/protobuf -I../vendor/paho.mqtt.embedded-c/MQTTPacket/src -I../vendor/paho.mqtt.embedded-c/MQTTClient-C/src -I../vendor/mbedtls/include -I../vendor/harmony/framework -I../src/system_config/TTN_Gateway_v1 -I../src/TTN_Gateway_v1 -I../vendor/harmony/framework -I../src/system_config/TTN_Gateway_v1/framework -I../vendor/harmony/framework/driver/wifi/mrf24wn/include -I../vendor/harmony/framework/driver/wifi/mrf24wn/wireless_driver/include -I../vendor/harmony/framework/driver/wifi/mrf24wn/wireless_driver_extension -I../vendor/harmony/third_party/rtos/FreeRTOS/Source/portable/MPLAB/PIC32MZ -I../vendor/harmony/third_party/rtos/FreeRTOS/Source/include -I../vendor/gateway-module-interface/lib -MMD -MF build/TTN_Gateway_v1/debug/_ext/2082537404/MQTTConnectClient.o.d -o build/TTN_Gateway_v1/debug/_ext/2082537404/MQTTConnectClient.o ../vendor/paho.mqtt.embedded-c/MQTTPacket/src/MQTTConnectClient.c -DXPRJ_TTN_Gateway_v1=TTN_Gateway_v1 -no-legacy-libc -DMQTT_TASK -G 0 

...

"/Applications/microchip/xc32/v1.42/bin/xc32-gcc" -g -D__DEBUG -D__MPLAB_DEBUGGER_PK3=1 -fframe-base-loclist -x c -c -mprocessor=32MZ2048EFM144 -ffunction-sections -O1 -D_FULL_SIGNAL_IMPLEMENTATION -I../src -I../vendor/harmony/framework -I../vendor/jsmn -I../vendor/json-builder -I../vendor/GenericRecorderLibSrc/Include -I../vendor/ttn-gateway-connector/src -I../vendor/protobuf-c -I../vendor/ttn-gateway-connector/src/github.com/TheThingsNetwork -I../vendor/ttn-gateway-connector/src/github.com/gogo/protobuf/protobuf -I../vendor/paho.mqtt.embedded-c/MQTTPacket/src -I../vendor/paho.mqtt.embedded-c/MQTTClient-C/src -I../vendor/mbedtls/include -I../vendor/harmony/framework -I../src/system_config/TTN_Gateway_v1 -I../src/TTN_Gateway_v1 -I../vendor/harmony/framework -I../src/system_config/TTN_Gateway_v1/framework -I../vendor/harmony/framework/driver/wifi/mrf24wn/include -I../vendor/harmony/framework/driver/wifi/mrf24wn/wireless_driver/include -I../vendor/harmony/framework/driver/wifi/mrf24wn/wireless_driver_extension -I../vendor/harmony/third_party/rtos/FreeRTOS/Source/portable/MPLAB/PIC32MZ -I../vendor/harmony/third_party/rtos/FreeRTOS/Source/include -I../vendor/gateway-module-interface/lib -MMD -MF build/TTN_Gateway_v1/debug/_ext/584516763/threading.o.d -o build/TTN_Gateway_v1/debug/_ext/584516763/threading.o ../vendor/mbedtls/library/threading.c -DXPRJ_TTN_Gateway_v1=TTN_Gateway_v1 -no-legacy-libc -DMQTT_TASK -G 0 
"/Applications/microchip/xc32/v1.42/bin/xc32-gcc" -g -D__DEBUG -D__MPLAB_DEBUGGER_PK3=1 -fframe-base-loclist -x c -c -mprocessor=32MZ2048EFM144 -ffunction-sections -O1 -D_FULL_SIGNAL_IMPLEMENTATION -I../src -I../vendor/harmony/framework -I../vendor/jsmn -I../vendor/json-builder -I../vendor/GenericRecorderLibSrc/Include -I../vendor/ttn-gateway-connector/src -I../vendor/protobuf-c -I../vendor/ttn-gateway-connector/src/github.com/TheThingsNetwork -I../vendor/ttn-gateway-connector/src/github.com/gogo/protobuf/protobuf -I../vendor/paho.mqtt.embedded-c/MQTTPacket/src -I../vendor/paho.mqtt.embedded-c/MQTTClient-C/src -I../vendor/mbedtls/include -I../vendor/harmony/framework -I../src/system_config/TTN_Gateway_v1 -I../src/TTN_Gateway_v1 -I../vendor/harmony/framework -I../src/system_config/TTN_Gateway_v1/framework -I../vendor/harmony/framework/driver/wifi/mrf24wn/include -I../vendor/harmony/framework/driver/wifi/mrf24wn/wireless_driver/include -I../vendor/harmony/framework/driver/wifi/mrf24wn/wireless_driver_extension -I../vendor/harmony/third_party/rtos/FreeRTOS/Source/portable/MPLAB/PIC32MZ -I../vendor/harmony/third_party/rtos/FreeRTOS/Source/include -I../vendor/gateway-module-interface/lib -MMD -MF build/TTN_Gateway_v1/debug/_ext/584516763/sha1.o.d -o build/TTN_Gateway_v1/debug/_ext/584516763/sha1.o ../vendor/mbedtls/library/sha1.c -DXPRJ_TTN_Gateway_v1=TTN_Gateway_v1 -no-legacy-libc -DMQTT_TASK -G 0 
"/Applications/microchip/xc32/v1.42/bin/xc32-gcc" -g -D__DEBUG -D__MPLAB_DEBUGGER_PK3=1 -fframe-base-loclist -x c -c -mprocessor=32MZ2048EFM144 -ffunction-sections -O1 -D_FULL_SIGNAL_IMPLEMENTATION -I../src -I../vendor/harmony/framework -I../vendor/jsmn -I../vendor/json-builder -I../vendor/GenericRecorderLibSrc/Include -I../vendor/ttn-gateway-connector/src -I../vendor/protobuf-c -I../vendor/ttn-gateway-connector/src/github.com/TheThingsNetwork -I../vendor/ttn-gateway-connector/src/github.com/gogo/protobuf/protobuf -I../vendor/paho.mqtt.embedded-c/MQTTPacket/src -I../vendor/paho.mqtt.embedded-c/MQTTClient-C/src -I../vendor/mbedtls/include -I../vendor/harmony/framework -I../src/system_config/TTN_Gateway_v1 -I../src/TTN_Gateway_v1 -I../vendor/harmony/framework -I../src/system_config/TTN_Gateway_v1/framework -I../vendor/harmony/framework/driver/wifi/mrf24wn/include -I../vendor/harmony/framework/driver/wifi/mrf24wn/wireless_driver/include -I../vendor/harmony/framework/driver/wifi/mrf24wn/wireless_driver_extension -I../vendor/harmony/third_party/rtos/FreeRTOS/Source/portable/MPLAB/PIC32MZ -I../vendor/harmony/third_party/rtos/FreeRTOS/Source/include -I../vendor/gateway-module-interface/lib -MMD -MF build/TTN_Gateway_v1/debug/_ext/584516763/timing.o.d -o build/TTN_Gateway_v1/debug/_ext/584516763/timing.o ../vendor/mbedtls/library/timing.c -DXPRJ_TTN_Gateway_v1=TTN_Gateway_v1 -no-legacy-libc -DMQTT_TASK -G 0 
"/Applications/microchip/xc32/v1.42/bin/xc32-gcc" -g -D__DEBUG -D__MPLAB_DEBUGGER_PK3=1 -fframe-base-loclist -x c -c -mprocessor=32MZ2048EFM144 -ffunction-sections -O1 -D_FULL_SIGNAL_IMPLEMENTATION -I../src -I../vendor/harmony/framework -I../vendor/jsmn -I../vendor/json-builder -I../vendor/GenericRecorderLibSrc/Include -I../vendor/ttn-gateway-connector/src -I../vendor/protobuf-c -I../vendor/ttn-gateway-connector/src/github.com/TheThingsNetwork -I../vendor/ttn-gateway-connector/src/github.com/gogo/protobuf/protobuf -I../vendor/paho.mqtt.embedded-c/MQTTPacket/src -I../vendor/paho.mqtt.embedded-c/MQTTClient-C/src -I../vendor/mbedtls/include -I../vendor/harmony/framework -I../src/system_config/TTN_Gateway_v1 -I../src/TTN_Gateway_v1 -I../vendor/harmony/framework -I../src/system_config/TTN_Gateway_v1/framework -I../vendor/harmony/framework/driver/wifi/mrf24wn/include -I../vendor/harmony/framework/driver/wifi/mrf24wn/wireless_driver/include -I../vendor/harmony/framework/driver/wifi/mrf24wn/wireless_driver_extension -I../vendor/harmony/third_party/rtos/FreeRTOS/Source/portable/MPLAB/PIC32MZ -I../vendor/harmony/third_party/rtos/FreeRTOS/Source/include -I../vendor/gateway-module-interface/lib -MMD -MF build/TTN_Gateway_v1/debug/_ext/584516763/ssl_ticket.o.d -o build/TTN_Gateway_v1/debug/_ext/584516763/ssl_ticket.o ../vendor/mbedtls/library/ssl_ticket.c -DXPRJ_TTN_Gateway_v1=TTN_Gateway_v1 -no-legacy-libc -DMQTT_TASK -G 0 
"/Applications/microchip/xc32/v1.42/bin/xc32-gcc" -g -D__DEBUG -D__MPLAB_DEBUGGER_PK3=1 -fframe-base-loclist -x c -c -mprocessor=32MZ2048EFM144 -ffunction-sections -O1 -D_FULL_SIGNAL_IMPLEMENTATION -I../src -I../vendor/harmony/framework -I../vendor/jsmn -I../vendor/json-builder -I../vendor/GenericRecorderLibSrc/Include -I../vendor/ttn-gateway-connector/src -I../vendor/protobuf-c -I../vendor/ttn-gateway-connector/src/github.com/TheThingsNetwork -I../vendor/ttn-gateway-connector/src/github.com/gogo/protobuf/protobuf -I../vendor/paho.mqtt.embedded-c/MQTTPacket/src -I../vendor/paho.mqtt.embedded-c/MQTTClient-C/src -I../vendor/mbedtls/include -I../vendor/harmony/framework -I../src/system_config/TTN_Gateway_v1 -I../src/TTN_Gateway_v1 -I../vendor/harmony/framework -I../src/system_config/TTN_Gateway_v1/framework -I../vendor/harmony/framework/driver/wifi/mrf24wn/include -I../vendor/harmony/framework/driver/wifi/mrf24wn/wireless_driver/include -I../vendor/harmony/framework/driver/wifi/mrf24wn/wireless_driver_extension -I../vendor/harmony/third_party/rtos/FreeRTOS/Source/portable/MPLAB/PIC32MZ -I../vendor/harmony/third_party/rtos/FreeRTOS/Source/include -I../vendor/gateway-module-interface/lib -MMD -MF build/TTN_Gateway_v1/debug/_ext/584516763/version.o.d -o build/TTN_Gateway_v1/debug/_ext/584516763/version.o ../vendor/mbedtls/library/version.c -DXPRJ_TTN_Gateway_v1=TTN_Gateway_v1 -no-legacy-libc -DMQTT_TASK -G 0 
"/Applications/microchip/xc32/v1.42/bin/xc32-gcc" -g -D__DEBUG -D__MPLAB_DEBUGGER_PK3=1 -fframe-base-loclist -x c -c -mprocessor=32MZ2048EFM144 -ffunction-sections -O1 -D_FULL_SIGNAL_IMPLEMENTATION -I../src -I../vendor/harmony/framework -I../vendor/jsmn -I../vendor/json-builder -I../vendor/GenericRecorderLibSrc/Include -I../vendor/ttn-gateway-connector/src -I../vendor/protobuf-c -I../vendor/ttn-gateway-connector/src/github.com/TheThingsNetwork -I../vendor/ttn-gateway-connector/src/github.com/gogo/protobuf/protobuf -I../vendor/paho.mqtt.embedded-c/MQTTPacket/src -I../vendor/paho.mqtt.embedded-c/MQTTClient-C/src -I../vendor/mbedtls/include -I../vendor/harmony/framework -I../src/system_config/TTN_Gateway_v1 -I../src/TTN_Gateway_v1 -I../vendor/harmony/framework -I../src/system_config/TTN_Gateway_v1/framework -I../vendor/harmony/framework/driver/wifi/mrf24wn/include -I../vendor/harmony/framework/driver/wifi/mrf24wn/wireless_driver/include -I../vendor/harmony/framework/driver/wifi/mrf24wn/wireless_driver_extension -I../vendor/harmony/third_party/rtos/FreeRTOS/Source/portable/MPLAB/PIC32MZ -I../vendor/harmony/third_party/rtos/FreeRTOS/Source/include -I../vendor/gateway-module-interface/lib -MMD -MF build/TTN_Gateway_v1/debug/_ext/584516763/version_features.o.d -o build/TTN_Gateway_v1/debug/_ext/584516763/version_features.o ../vendor/mbedtls/library/version_features.c -DXPRJ_TTN_Gateway_v1=TTN_Gateway_v1 -no-legacy-libc -DMQTT_TASK -G 0 
"/Applications/microchip/xc32/v1.42/bin/xc32-gcc" -g -D__DEBUG -D__MPLAB_DEBUGGER_PK3=1 -fframe-base-loclist -x c -c -mprocessor=32MZ2048EFM144 -ffunction-sections -O1 -D_FULL_SIGNAL_IMPLEMENTATION -I../src -I../vendor/harmony/framework -I../vendor/jsmn -I../vendor/json-builder -I../vendor/GenericRecorderLibSrc/Include -I../vendor/ttn-gateway-connector/src -I../vendor/protobuf-c -I../vendor/ttn-gateway-connector/src/github.com/TheThingsNetwork -I../vendor/ttn-gateway-connector/src/github.com/gogo/protobuf/protobuf -I../vendor/paho.mqtt.embedded-c/MQTTPacket/src -I../vendor/paho.mqtt.embedded-c/MQTTClient-C/src -I../vendor/mbedtls/include -I../vendor/harmony/framework -I../src/system_config/TTN_Gateway_v1 -I../src/TTN_Gateway_v1 -I../vendor/harmony/framework -I../src/system_config/TTN_Gateway_v1/framework -I../vendor/harmony/framework/driver/wifi/mrf24wn/include -I../vendor/harmony/framework/driver/wifi/mrf24wn/wireless_driver/include -I../vendor/harmony/framework/driver/wifi/mrf24wn/wireless_driver_extension -I../vendor/harmony/third_party/rtos/FreeRTOS/Source/portable/MPLAB/PIC32MZ -I../vendor/harmony/third_party/rtos/FreeRTOS/Source/include -I../vendor/gateway-module-interface/lib -MMD -MF build/TTN_Gateway_v1/debug/_ext/584516763/rsa.o.d -o build/TTN_Gateway_v1/debug/_ext/584516763/rsa.o ../vendor/mbedtls/library/rsa.c -DXPRJ_TTN_Gateway_v1=TTN_Gateway_v1 -no-legacy-libc -DMQTT_TASK -G 0 
"/Applications/microchip/xc32/v1.42/bin/xc32-gcc" -g -D__DEBUG -D__MPLAB_DEBUGGER_PK3=1 -fframe-base-loclist -x c -c -mprocessor=32MZ2048EFM144 -ffunction-sections -O1 -D_FULL_SIGNAL_IMPLEMENTATION -I../src -I../vendor/harmony/framework -I../vendor/jsmn -I../vendor/json-builder -I../vendor/GenericRecorderLibSrc/Include -I../vendor/ttn-gateway-connector/src -I../vendor/protobuf-c -I../vendor/ttn-gateway-connector/src/github.com/TheThingsNetwork -I../vendor/ttn-gateway-connector/src/github.com/gogo/protobuf/protobuf -I../vendor/paho.mqtt.embedded-c/MQTTPacket/src -I../vendor/paho.mqtt.embedded-c/MQTTClient-C/src -I../vendor/mbedtls/include -I../vendor/harmony/framework -I../src/system_config/TTN_Gateway_v1 -I../src/TTN_Gateway_v1 -I../vendor/harmony/framework -I../src/system_config/TTN_Gateway_v1/framework -I../vendor/harmony/framework/driver/wifi/mrf24wn/include -I../vendor/harmony/framework/driver/wifi/mrf24wn/wireless_driver/include -I../vendor/harmony/framework/driver/wifi/mrf24wn/wireless_driver_extension -I../vendor/harmony/third_party/rtos/FreeRTOS/Source/portable/MPLAB/PIC32MZ -I../vendor/harmony/third_party/rtos/FreeRTOS/Source/include -I../vendor/gateway-module-interface/lib -MMD -MF build/TTN_Gateway_v1/debug/_ext/584516763/x509_create.o.d -o build/TTN_Gateway_v1/debug/_ext/584516763/x509_create.o ../vendor/mbedtls/library/x509_create.c -DXPRJ_TTN_Gateway_v1=TTN_Gateway_v1 -no-legacy-libc -DMQTT_TASK -G 0 
"/Applications/microchip/xc32/v1.42/bin/xc32-gcc" -g -D__DEBUG -D__MPLAB_DEBUGGER_PK3=1 -fframe-base-loclist -x c -c -mprocessor=32MZ2048EFM144 -ffunction-sections -O1 -D_FULL_SIGNAL_IMPLEMENTATION -I../src -I../vendor/harmony/framework -I../vendor/jsmn -I../vendor/json-builder -I../vendor/GenericRecorderLibSrc/Include -I../vendor/ttn-gateway-connector/src -I../vendor/protobuf-c -I../vendor/ttn-gateway-connector/src/github.com/TheThingsNetwork -I../vendor/ttn-gateway-connector/src/github.com/gogo/protobuf/protobuf -I../vendor/paho.mqtt.embedded-c/MQTTPacket/src -I../vendor/paho.mqtt.embedded-c/MQTTClient-C/src -I../vendor/mbedtls/include -I../vendor/harmony/framework -I../src/system_config/TTN_Gateway_v1 -I../src/TTN_Gateway_v1 -I../vendor/harmony/framework -I../src/system_config/TTN_Gateway_v1/framework -I../vendor/harmony/framework/driver/wifi/mrf24wn/include -I../vendor/harmony/framework/driver/wifi/mrf24wn/wireless_driver/include -I../vendor/harmony/framework/driver/wifi/mrf24wn/wireless_driver_extension -I../vendor/harmony/third_party/rtos/FreeRTOS/Source/portable/MPLAB/PIC32MZ -I../vendor/harmony/third_party/rtos/FreeRTOS/Source/include -I../vendor/gateway-module-interface/lib -MMD -MF build/TTN_Gateway_v1/debug/_ext/584516763/x509_csr.o.d -o build/TTN_Gateway_v1/debug/_ext/584516763/x509_csr.o ../vendor/mbedtls/library/x509_csr.c -DXPRJ_TTN_Gateway_v1=TTN_Gateway_v1 -no-legacy-libc -DMQTT_TASK -G 0 
"/Applications/microchip/xc32/v1.42/bin/xc32-gcc" -g -D__DEBUG -D__MPLAB_DEBUGGER_PK3=1 -fframe-base-loclist -x c -c -mprocessor=32MZ2048EFM144 -ffunction-sections -O1 -D_FULL_SIGNAL_IMPLEMENTATION -I../src -I../vendor/harmony/framework -I../vendor/jsmn -I../vendor/json-builder -I../vendor/GenericRecorderLibSrc/Include -I../vendor/ttn-gateway-connector/src -I../vendor/protobuf-c -I../vendor/ttn-gateway-connector/src/github.com/TheThingsNetwork -I../vendor/ttn-gateway-connector/src/github.com/gogo/protobuf/protobuf -I../vendor/paho.mqtt.embedded-c/MQTTPacket/src -I../vendor/paho.mqtt.embedded-c/MQTTClient-C/src -I../vendor/mbedtls/include -I../vendor/harmony/framework -I../src/system_config/TTN_Gateway_v1 -I../src/TTN_Gateway_v1 -I../vendor/harmony/framework -I../src/system_config/TTN_Gateway_v1/framework -I../vendor/harmony/framework/driver/wifi/mrf24wn/include -I../vendor/harmony/framework/driver/wifi/mrf24wn/wireless_driver/include -I../vendor/harmony/framework/driver/wifi/mrf24wn/wireless_driver_extension -I../vendor/harmony/third_party/rtos/FreeRTOS/Source/portable/MPLAB/PIC32MZ -I../vendor/harmony/third_party/rtos/FreeRTOS/Source/include -I../vendor/gateway-module-interface/lib -MMD -MF build/TTN_Gateway_v1/debug/_ext/584516763/x509_crl.o.d -o build/TTN_Gateway_v1/debug/_ext/584516763/x509_crl.o ../vendor/mbedtls/library/x509_crl.c -DXPRJ_TTN_Gateway_v1=TTN_Gateway_v1 -no-legacy-libc -DMQTT_TASK -G 0 
"/Applications/microchip/xc32/v1.42/bin/xc32-gcc" -g -D__DEBUG -D__MPLAB_DEBUGGER_PK3=1 -fframe-base-loclist -x c -c -mprocessor=32MZ2048EFM144 -ffunction-sections -O1 -D_FULL_SIGNAL_IMPLEMENTATION -I../src -I../vendor/harmony/framework -I../vendor/jsmn -I../vendor/json-builder -I../vendor/GenericRecorderLibSrc/Include -I../vendor/ttn-gateway-connector/src -I../vendor/protobuf-c -I../vendor/ttn-gateway-connector/src/github.com/TheThingsNetwork -I../vendor/ttn-gateway-connector/src/github.com/gogo/protobuf/protobuf -I../vendor/paho.mqtt.embedded-c/MQTTPacket/src -I../vendor/paho.mqtt.embedded-c/MQTTClient-C/src -I../vendor/mbedtls/include -I../vendor/harmony/framework -I../src/system_config/TTN_Gateway_v1 -I../src/TTN_Gateway_v1 -I../vendor/harmony/framework -I../src/system_config/TTN_Gateway_v1/framework -I../vendor/harmony/framework/driver/wifi/mrf24wn/include -I../vendor/harmony/framework/driver/wifi/mrf24wn/wireless_driver/include -I../vendor/harmony/framework/driver/wifi/mrf24wn/wireless_driver_extension -I../vendor/harmony/third_party/rtos/FreeRTOS/Source/portable/MPLAB/PIC32MZ -I../vendor/harmony/third_party/rtos/FreeRTOS/Source/include -I../vendor/gateway-module-interface/lib -MMD -MF build/TTN_Gateway_v1/debug/_ext/584516763/x509.o.d -o build/TTN_Gateway_v1/debug/_ext/584516763/x509.o ../vendor/mbedtls/library/x509.c -DXPRJ_TTN_Gateway_v1=TTN_Gateway_v1 -no-legacy-libc -DMQTT_TASK -G 0 
"/Applications/microchip/xc32/v1.42/bin/xc32-gcc" -g -D__DEBUG -D__MPLAB_DEBUGGER_PK3=1 -fframe-base-loclist -x c -c -mprocessor=32MZ2048EFM144 -ffunction-sections -O1 -D_FULL_SIGNAL_IMPLEMENTATION -I../src -I../vendor/harmony/framework -I../vendor/jsmn -I../vendor/json-builder -I../vendor/GenericRecorderLibSrc/Include -I../vendor/ttn-gateway-connector/src -I../vendor/protobuf-c -I../vendor/ttn-gateway-connector/src/github.com/TheThingsNetwork -I../vendor/ttn-gateway-connector/src/github.com/gogo/protobuf/protobuf -I../vendor/paho.mqtt.embedded-c/MQTTPacket/src -I../vendor/paho.mqtt.embedded-c/MQTTClient-C/src -I../vendor/mbedtls/include -I../vendor/harmony/framework -I../src/system_config/TTN_Gateway_v1 -I../src/TTN_Gateway_v1 -I../vendor/harmony/framework -I../src/system_config/TTN_Gateway_v1/framework -I../vendor/harmony/framework/driver/wifi/mrf24wn/include -I../vendor/harmony/framework/driver/wifi/mrf24wn/wireless_driver/include -I../vendor/harmony/framework/driver/wifi/mrf24wn/wireless_driver_extension -I../vendor/harmony/third_party/rtos/FreeRTOS/Source/portable/MPLAB/PIC32MZ -I../vendor/harmony/third_party/rtos/FreeRTOS/Source/include -I../vendor/gateway-module-interface/lib -MMD -MF build/TTN_Gateway_v1/debug/_ext/584516763/xtea.o.d -o build/TTN_Gateway_v1/debug/_ext/584516763/xtea.o ../vendor/mbedtls/library/xtea.c -DXPRJ_TTN_Gateway_v1=TTN_Gateway_v1 -no-legacy-libc -DMQTT_TASK -G 0 
"/Applications/microchip/xc32/v1.42/bin/xc32-gcc" -g -D__DEBUG -D__MPLAB_DEBUGGER_PK3=1 -fframe-base-loclist -x c -c -mprocessor=32MZ2048EFM144 -ffunction-sections -O1 -D_FULL_SIGNAL_IMPLEMENTATION -I../src -I../vendor/harmony/framework -I../vendor/jsmn -I../vendor/json-builder -I../vendor/GenericRecorderLibSrc/Include -I../vendor/ttn-gateway-connector/src -I../vendor/protobuf-c -I../vendor/ttn-gateway-connector/src/github.com/TheThingsNetwork -I../vendor/ttn-gateway-connector/src/github.com/gogo/protobuf/protobuf -I../vendor/paho.mqtt.embedded-c/MQTTPacket/src -I../vendor/paho.mqtt.embedded-c/MQTTClient-C/src -I../vendor/mbedtls/include -I../vendor/harmony/framework -I../src/system_config/TTN_Gateway_v1 -I../src/TTN_Gateway_v1 -I../vendor/harmony/framework -I../src/system_config/TTN_Gateway_v1/framework -I../vendor/harmony/framework/driver/wifi/mrf24wn/include -I../vendor/harmony/framework/driver/wifi/mrf24wn/wireless_driver/include -I../vendor/harmony/framework/driver/wifi/mrf24wn/wireless_driver_extension -I../vendor/harmony/third_party/rtos/FreeRTOS/Source/portable/MPLAB/PIC32MZ -I../vendor/harmony/third_party/rtos/FreeRTOS/Source/include -I../vendor/gateway-module-interface/lib -MMD -MF build/TTN_Gateway_v1/debug/_ext/584516763/x509write_csr.o.d -o build/TTN_Gateway_v1/debug/_ext/584516763/x509write_csr.o ../vendor/mbedtls/library/x509write_csr.c -DXPRJ_TTN_Gateway_v1=TTN_Gateway_v1 -no-legacy-libc -DMQTT_TASK -G 0 
"/Applications/microchip/xc32/v1.42/bin/xc32-gcc" -g -D__DEBUG -D__MPLAB_DEBUGGER_PK3=1 -fframe-base-loclist -x c -c -mprocessor=32MZ2048EFM144 -ffunction-sections -O1 -D_FULL_SIGNAL_IMPLEMENTATION -I../src -I../vendor/harmony/framework -I../vendor/jsmn -I../vendor/json-builder -I../vendor/GenericRecorderLibSrc/Include -I../vendor/ttn-gateway-connector/src -I../vendor/protobuf-c -I../vendor/ttn-gateway-connector/src/github.com/TheThingsNetwork -I../vendor/ttn-gateway-connector/src/github.com/gogo/protobuf/protobuf -I../vendor/paho.mqtt.embedded-c/MQTTPacket/src -I../vendor/paho.mqtt.embedded-c/MQTTClient-C/src -I../vendor/mbedtls/include -I../vendor/harmony/framework -I../src/system_config/TTN_Gateway_v1 -I../src/TTN_Gateway_v1 -I../vendor/harmony/framework -I../src/system_config/TTN_Gateway_v1/framework -I../vendor/harmony/framework/driver/wifi/mrf24wn/include -I../vendor/harmony/framework/driver/wifi/mrf24wn/wireless_driver/include -I../vendor/harmony/framework/driver/wifi/mrf24wn/wireless_driver_extension -I../vendor/harmony/third_party/rtos/FreeRTOS/Source/portable/MPLAB/PIC32MZ -I../vendor/harmony/third_party/rtos/FreeRTOS/Source/include -I../vendor/gateway-module-interface/lib -MMD -MF build/TTN_Gateway_v1/debug/_ext/584516763/x509write_crt.o.d -o build/TTN_Gateway_v1/debug/_ext/584516763/x509write_crt.o ../vendor/mbedtls/library/x509write_crt.c -DXPRJ_TTN_Gateway_v1=TTN_Gateway_v1 -no-legacy-libc -DMQTT_TASK -G 0 
"/Applications/microchip/xc32/v1.42/bin/xc32-gcc" -g -D__DEBUG -D__MPLAB_DEBUGGER_PK3=1 -fframe-base-loclist -x c -c -mprocessor=32MZ2048EFM144 -ffunction-sections -O1 -D_FULL_SIGNAL_IMPLEMENTATION -I../src -I../vendor/harmony/framework -I../vendor/jsmn -I../vendor/json-builder -I../vendor/GenericRecorderLibSrc/Include -I../vendor/ttn-gateway-connector/src -I../vendor/protobuf-c -I../vendor/ttn-gateway-connector/src/github.com/TheThingsNetwork -I../vendor/ttn-gateway-connector/src/github.com/gogo/protobuf/protobuf -I../vendor/paho.mqtt.embedded-c/MQTTPacket/src -I../vendor/paho.mqtt.embedded-c/MQTTClient-C/src -I../vendor/mbedtls/include -I../vendor/harmony/framework -I../src/system_config/TTN_Gateway_v1 -I../src/TTN_Gateway_v1 -I../vendor/harmony/framework -I../src/system_config/TTN_Gateway_v1/framework -I../vendor/harmony/framework/driver/wifi/mrf24wn/include -I../vendor/harmony/framework/driver/wifi/mrf24wn/wireless_driver/include -I../vendor/harmony/framework/driver/wifi/mrf24wn/wireless_driver_extension -I../vendor/harmony/third_party/rtos/FreeRTOS/Source/portable/MPLAB/PIC32MZ -I../vendor/harmony/third_party/rtos/FreeRTOS/Source/include -I../vendor/gateway-module-interface/lib -MMD -MF build/TTN_Gateway_v1/debug/_ext/584516763/x509_crt.o.d -o build/TTN_Gateway_v1/debug/_ext/584516763/x509_crt.o ../vendor/mbedtls/library/x509_crt.c -DXPRJ_TTN_Gateway_v1=TTN_Gateway_v1 -no-legacy-libc -DMQTT_TASK -G 0 
"/Applications/microchip/xc32/v1.42/bin/xc32-gcc" -g -D__DEBUG -D__MPLAB_DEBUGGER_PK3=1 -fframe-base-loclist -x c -c -mprocessor=32MZ2048EFM144 -ffunction-sections -O1 -D_FULL_SIGNAL_IMPLEMENTATION -I../src -I../vendor/harmony/framework -I../vendor/jsmn -I../vendor/json-builder -I../vendor/GenericRecorderLibSrc/Include -I../vendor/ttn-gateway-connector/src -I../vendor/protobuf-c -I../vendor/ttn-gateway-connector/src/github.com/TheThingsNetwork -I../vendor/ttn-gateway-connector/src/github.com/gogo/protobuf/protobuf -I../vendor/paho.mqtt.embedded-c/MQTTPacket/src -I../vendor/paho.mqtt.embedded-c/MQTTClient-C/src -I../vendor/mbedtls/include -I../vendor/harmony/framework -I../src/system_config/TTN_Gateway_v1 -I../src/TTN_Gateway_v1 -I../vendor/harmony/framework -I../src/system_config/TTN_Gateway_v1/framework -I../vendor/harmony/framework/driver/wifi/mrf24wn/include -I../vendor/harmony/framework/driver/wifi/mrf24wn/wireless_driver/include -I../vendor/harmony/framework/driver/wifi/mrf24wn/wireless_driver_extension -I../vendor/harmony/third_party/rtos/FreeRTOS/Source/portable/MPLAB/PIC32MZ -I../vendor/harmony/third_party/rtos/FreeRTOS/Source/include -I../vendor/gateway-module-interface/lib -MMD -MF build/TTN_Gateway_v1/debug/_ext/584516763/ssl_cli.o.d -o build/TTN_Gateway_v1/debug/_ext/584516763/ssl_cli.o ../vendor/mbedtls/library/ssl_cli.c -DXPRJ_TTN_Gateway_v1=TTN_Gateway_v1 -no-legacy-libc -DMQTT_TASK -G 0 
"/Applications/microchip/xc32/v1.42/bin/xc32-gcc" -g -D__DEBUG -D__MPLAB_DEBUGGER_PK3=1 -fframe-base-loclist -x c -c -mprocessor=32MZ2048EFM144 -ffunction-sections -O1 -D_FULL_SIGNAL_IMPLEMENTATION -I../src -I../vendor/harmony/framework -I../vendor/jsmn -I../vendor/json-builder -I../vendor/GenericRecorderLibSrc/Include -I../vendor/ttn-gateway-connector/src -I../vendor/protobuf-c -I../vendor/ttn-gateway-connector/src/github.com/TheThingsNetwork -I../vendor/ttn-gateway-connector/src/github.com/gogo/protobuf/protobuf -I../vendor/paho.mqtt.embedded-c/MQTTPacket/src -I../vendor/paho.mqtt.embedded-c/MQTTClient-C/src -I../vendor/mbedtls/include -I../vendor/harmony/framework -I../src/system_config/TTN_Gateway_v1 -I../src/TTN_Gateway_v1 -I../vendor/harmony/framework -I../src/system_config/TTN_Gateway_v1/framework -I../vendor/harmony/framework/driver/wifi/mrf24wn/include -I../vendor/harmony/framework/driver/wifi/mrf24wn/wireless_driver/include -I../vendor/harmony/framework/driver/wifi/mrf24wn/wireless_driver_extension -I../vendor/harmony/third_party/rtos/FreeRTOS/Source/portable/MPLAB/PIC32MZ -I../vendor/harmony/third_party/rtos/FreeRTOS/Source/include -I../vendor/gateway-module-interface/lib -MMD -MF build/TTN_Gateway_v1/debug/_ext/584516763/ssl_srv.o.d -o build/TTN_Gateway_v1/debug/_ext/584516763/ssl_srv.o ../vendor/mbedtls/library/ssl_srv.c -DXPRJ_TTN_Gateway_v1=TTN_Gateway_v1 -no-legacy-libc -DMQTT_TASK -G 0 
"/Applications/microchip/xc32/v1.42/bin/xc32-gcc" -g -D__DEBUG -D__MPLAB_DEBUGGER_PK3=1 -fframe-base-loclist -x c -c -mprocessor=32MZ2048EFM144 -ffunction-sections -O1 -D_FULL_SIGNAL_IMPLEMENTATION -I../src -I../vendor/harmony/framework -I../vendor/jsmn -I../vendor/json-builder -I../vendor/GenericRecorderLibSrc/Include -I../vendor/ttn-gateway-connector/src -I../vendor/protobuf-c -I../vendor/ttn-gateway-connector/src/github.com/TheThingsNetwork -I../vendor/ttn-gateway-connector/src/github.com/gogo/protobuf/protobuf -I../vendor/paho.mqtt.embedded-c/MQTTPacket/src -I../vendor/paho.mqtt.embedded-c/MQTTClient-C/src -I../vendor/mbedtls/include -I../vendor/harmony/framework -I../src/system_config/TTN_Gateway_v1 -I../src/TTN_Gateway_v1 -I../vendor/harmony/framework -I../src/system_config/TTN_Gateway_v1/framework -I../vendor/harmony/framework/driver/wifi/mrf24wn/include -I../vendor/harmony/framework/driver/wifi/mrf24wn/wireless_driver/include -I../vendor/harmony/framework/driver/wifi/mrf24wn/wireless_driver_extension -I../vendor/harmony/third_party/rtos/FreeRTOS/Source/portable/MPLAB/PIC32MZ -I../vendor/harmony/third_party/rtos/FreeRTOS/Source/include -I../vendor/gateway-module-interface/lib -MMD -MF build/TTN_Gateway_v1/debug/_ext/584516763/ssl_tls.o.d -o build/TTN_Gateway_v1/debug/_ext/584516763/ssl_tls.o ../vendor/mbedtls/library/ssl_tls.c -DXPRJ_TTN_Gateway_v1=TTN_Gateway_v1 -no-legacy-libc -DMQTT_TASK -G 0 
"/Applications/microchip/xc32/v1.42/bin/xc32-gcc"   -mdebugger -D__MPLAB_DEBUGGER_PK3=1 -mprocessor=32MZ2048EFM144  -o dist/TTN_Gateway_v1/debug/TTN_Gateway.X.debug.elf build/TTN_Gateway_v1/debug/_ext/1263322388/MQTTHarmony.o build/TTN_Gateway_v1/debug/_ext/355818435/MQTTClient.o build/TTN_Gateway_v1/debug/_ext/2082537404/MQTTConnectClient.o build/TTN_Gateway_v1/debug/_ext/2082537404/MQTTConnectServer.o build/TTN_Gateway_v1/debug/_ext/2082537404/MQTTDeserializePublish.o build/TTN_Gateway_v1/debug/_ext/2082537404/MQTTFormat.o build/TTN_Gateway_v1/debug/_ext/2082537404/MQTTPacket.o build/TTN_Gateway_v1/debug/_ext/2082537404/MQTTSerializePublish.o build/TTN_Gateway_v1/debug/_ext/2082537404/MQTTSubscribeClient.o build/TTN_Gateway_v1/debug/_ext/2082537404/MQTTSubscribeServer.o build/TTN_Gateway_v1/debug/_ext/2082537404/MQTTUnsubscribeClient.o build/TTN_Gateway_v1/debug/_ext/2082537404/MQTTUnsubscribeServer.o build/TTN_Gateway_v1/debug/_ext/1210803401/protobuf-c.o build/TTN_Gateway_v1/debug/_ext/1954572553/drv_spi_tasks.o build/TTN_Gateway_v1/debug/_ext/1954572553/drv_spi_api.o build/TTN_Gateway_v1/debug/_ext/1954572553/drv_spi_master_ebm_tasks.o build/TTN_Gateway_v1/debug/_ext/1954572553/drv_spi_master_rm_tasks.o build/TTN_Gateway_v1/debug/_ext/1954572553/drv_spi_master_dma_tasks.o build/TTN_Gateway_v1/debug/_ext/1329361564/net_pres_cert_store.o build/TTN_Gateway_v1/debug/_ext/1329361564/net_pres_enc_glue.o build/TTN_Gateway_v1/debug/_ext/1837233127/sys_clk_static.o build/TTN_Gateway_v1/debug/_ext/1842058615/sys_ports_static.o build/TTN_Gateway_v1/debug/_ext/721697634/system_init.o build/TTN_Gateway_v1/debug/_ext/721697634/system_interrupt.o build/TTN_Gateway_v1/debug/_ext/721697634/system_exceptions.o build/TTN_Gateway_v1/debug/_ext/721697634/system_tasks.o build/TTN_Gateway_v1/debug/_ext/721697634/system_interrupt_a.o build/TTN_Gateway_v1/debug/_ext/721697634/rtos_hooks.o build/TTN_Gateway_v1/debug/_ext/2091941081/gogo.pb-c.o build/TTN_Gateway_v1/debug/_ext/1735550674/descriptor.pb-c.o build/TTN_Gateway_v1/debug/_ext/1735550674/empty.pb-c.o build/TTN_Gateway_v1/debug/_ext/363428391/types.pb-c.o build/TTN_Gateway_v1/debug/_ext/1790130051/gateway.pb-c.o build/TTN_Gateway_v1/debug/_ext/1127088092/lorawan.pb-c.o build/TTN_Gateway_v1/debug/_ext/238011705/protocol.pb-c.o build/TTN_Gateway_v1/debug/_ext/445644246/router.pb-c.o build/TTN_Gateway_v1/debug/_ext/541730372/trace.pb-c.o build/TTN_Gateway_v1/debug/_ext/1513495986/api.pb-c.o build/TTN_Gateway_v1/debug/_ext/1911918814/connector.o build/TTN_Gateway_v1/debug/_ext/1360937237/app.o build/TTN_Gateway_v1/debug/_ext/1360937237/main.o build/TTN_Gateway_v1/debug/_ext/1360937237/app_ble.o build/TTN_Gateway_v1/debug/_ext/1360937237/app_commands.o build/TTN_Gateway_v1/debug/_ext/1360937237/app_lora.o build/TTN_Gateway_v1/debug/_ext/1360937237/app_sdcard.o build/TTN_Gateway_v1/debug/_ext/1360937237/app_wifi.o build/TTN_Gateway_v1/debug/_ext/1360937237/subsystem_controller.o build/TTN_Gateway_v1/debug/_ext/1864481358/json-builder.o build/TTN_Gateway_v1/debug/_ext/1360937237/app_mqtt.o build/TTN_Gateway_v1/debug/_ext/605526206/jsmn.o build/TTN_Gateway_v1/debug/_ext/1360937237/app_http_ttn.o build/TTN_Gateway_v1/debug/_ext/1360937237/app_activation.o build/TTN_Gateway_v1/debug/_ext/1360937237/app_configuration.o build/TTN_Gateway_v1/debug/_ext/1360937237/app_frequencyplan.o build/TTN_Gateway_v1/debug/_ext/1360937237/lora.o build/TTN_Gateway_v1/debug/_ext/1360937237/helper_wdt.o build/TTN_Gateway_v1/debug/_ext/1360937237/app_ota.o build/TTN_Gateway_v1/debug/_ext/1360937237/app_serialflash.o build/TTN_Gateway_v1/debug/_ext/1360937237/utilities.o build/TTN_Gateway_v1/debug/_ext/1360937237/track_heap.o build/TTN_Gateway_v1/debug/_ext/1360937237/ssm_load_config.o build/TTN_Gateway_v1/debug/_ext/1360937237/ssm_wait_for_internet.o build/TTN_Gateway_v1/debug/_ext/1360937237/ssm_load_online_config.o build/TTN_Gateway_v1/debug/_ext/1360937237/ssm_store_user_config.o build/TTN_Gateway_v1/debug/_ext/1360937237/app_http_request.o build/TTN_Gateway_v1/debug/_ext/1360937237/app_eth.o build/TTN_Gateway_v1/debug/_ext/1360937237/app_selftest.o build/TTN_Gateway_v1/debug/_ext/1360937237/ssm_button.o build/TTN_Gateway_v1/debug/_ext/1360937237/error_messages.o build/TTN_Gateway_v1/debug/_ext/1360937237/http_print.o build/TTN_Gateway_v1/debug/_ext/1360937237/custom_http_app.o build/TTN_Gateway_v1/debug/_ext/1360937237/mpfs_img2.o build/TTN_Gateway_v1/debug/_ext/1522796145/gateway-module-interface.o build/TTN_Gateway_v1/debug/_ext/1564631523/adler32.o build/TTN_Gateway_v1/debug/_ext/1564631523/compress.o build/TTN_Gateway_v1/debug/_ext/1564631523/crc32.o build/TTN_Gateway_v1/debug/_ext/1564631523/deflate.o build/TTN_Gateway_v1/debug/_ext/1564631523/infback.o build/TTN_Gateway_v1/debug/_ext/1564631523/inffast.o build/TTN_Gateway_v1/debug/_ext/1564631523/inflate.o build/TTN_Gateway_v1/debug/_ext/1564631523/inftrees.o build/TTN_Gateway_v1/debug/_ext/1564631523/trees.o build/TTN_Gateway_v1/debug/_ext/1564631523/uncompr.o build/TTN_Gateway_v1/debug/_ext/1564631523/zutil.o build/TTN_Gateway_v1/debug/_ext/2117761976/ecc.o build/TTN_Gateway_v1/debug/_ext/2117761976/arc4.o build/TTN_Gateway_v1/debug/_ext/2117761976/pwdbased.o build/TTN_Gateway_v1/debug/_ext/2117761976/tfm.o build/TTN_Gateway_v1/debug/_ext/2117761976/asn.o build/TTN_Gateway_v1/debug/_ext/2117761976/des3.o build/TTN_Gateway_v1/debug/_ext/2117761976/rsa.o build/TTN_Gateway_v1/debug/_ext/2117761976/aes.o build/TTN_Gateway_v1/debug/_ext/2117761976/md5.o build/TTN_Gateway_v1/debug/_ext/2117761976/sha.o build/TTN_Gateway_v1/debug/_ext/2117761976/sha256.o build/TTN_Gateway_v1/debug/_ext/2117761976/sha512.o build/TTN_Gateway_v1/debug/_ext/2117761976/hmac.o build/TTN_Gateway_v1/debug/_ext/2117761976/hash.o build/TTN_Gateway_v1/debug/_ext/2117761976/compress.o build/TTN_Gateway_v1/debug/_ext/2117761976/random.o build/TTN_Gateway_v1/debug/_ext/2117761976/crypto.o build/TTN_Gateway_v1/debug/_ext/2117761976/coding.o build/TTN_Gateway_v1/debug/_ext/2117761976/error.o build/TTN_Gateway_v1/debug/_ext/2117761976/integer.o build/TTN_Gateway_v1/debug/_ext/2117761976/logging.o build/TTN_Gateway_v1/debug/_ext/2117761976/memory.o build/TTN_Gateway_v1/debug/_ext/2117761976/misc.o build/TTN_Gateway_v1/debug/_ext/2117761976/port.o build/TTN_Gateway_v1/debug/_ext/2117761976/pic32mz-hash.o build/TTN_Gateway_v1/debug/_ext/520489456/drv_ethmac.o build/TTN_Gateway_v1/debug/_ext/520489456/drv_ethmac_lib.o build/TTN_Gateway_v1/debug/_ext/655664350/drv_ethphy.o build/TTN_Gateway_v1/debug/_ext/655664350/drv_extphy_ksz8061_rnd.o build/TTN_Gateway_v1/debug/_ext/102709621/drv_nvm.o build/TTN_Gateway_v1/debug/_ext/102709621/drv_nvm_erasewrite.o build/TTN_Gateway_v1/debug/_ext/612213051/drv_sdcard.o build/TTN_Gateway_v1/debug/_ext/1037469444/drv_spi.o build/TTN_Gateway_v1/debug/_ext/1392810036/drv_spi_sys_queue_fifo.o build/TTN_Gateway_v1/debug/_ext/2110200294/drv_sst25vf064c.o build/TTN_Gateway_v1/debug/_ext/653868823/drv_tmr.o build/TTN_Gateway_v1/debug/_ext/387364373/drv_usart.o build/TTN_Gateway_v1/debug/_ext/387364373/drv_usart_buffer_queue.o build/TTN_Gateway_v1/debug/_ext/387364373/drv_usart_read_write.o build/TTN_Gateway_v1/debug/_ext/240997949/wdrv_mrf24wn_gpio.o build/TTN_Gateway_v1/debug/_ext/1116141256/wdrv_mrf24wn_spi.o build/TTN_Gateway_v1/debug/_ext/1501329007/wdrv_mrf24wn_cli.o build/TTN_Gateway_v1/debug/_ext/1501329007/wdrv_mrf24wn_config_data.o build/TTN_Gateway_v1/debug/_ext/1501329007/wdrv_mrf24wn_connmgr.o build/TTN_Gateway_v1/debug/_ext/1501329007/wdrv_mrf24wn_events.o build/TTN_Gateway_v1/debug/_ext/1501329007/wdrv_mrf24wn_iwpriv.o build/TTN_Gateway_v1/debug/_ext/1501329007/wdrv_mrf24wn_main.o build/TTN_Gateway_v1/debug/_ext/1501329007/wdrv_mrf24wn_misc.o build/TTN_Gateway_v1/debug/_ext/1501329007/wdrv_mrf24wn_osal.o build/TTN_Gateway_v1/debug/_ext/1501329007/wdrv_mrf24wn_scan_helper.o build/TTN_Gateway_v1/debug/_ext/606029335/net_pres.o build/TTN_Gateway_v1/debug/_ext/1177711126/osal_freertos.o build/TTN_Gateway_v1/debug/_ext/317737970/sys_command.o build/TTN_Gateway_v1/debug/_ext/686638766/sys_buffer.o build/TTN_Gateway_v1/debug/_ext/686638766/sys_queue.o build/TTN_Gateway_v1/debug/_ext/138974210/sys_console.o build/TTN_Gateway_v1/debug/_ext/138974210/sys_console_uart.o build/TTN_Gateway_v1/debug/_ext/215364742/sys_debug.o build/TTN_Gateway_v1/debug/_ext/394877680/sys_devcon.o build/TTN_Gateway_v1/debug/_ext/394877680/sys_devcon_pic32mz.o build/TTN_Gateway_v1/debug/_ext/394877680/sys_devcon_cache_pic32mz.o build/TTN_Gateway_v1/debug/_ext/1923904481/sys_dma.o build/TTN_Gateway_v1/debug/_ext/1066572992/sys_fs.o build/TTN_Gateway_v1/debug/_ext/1066572992/sys_fs_media_manager.o build/TTN_Gateway_v1/debug/_ext/776792863/ff.o build/TTN_Gateway_v1/debug/_ext/71303704/diskio.o build/TTN_Gateway_v1/debug/_ext/958702887/mpfs.o build/TTN_Gateway_v1/debug/_ext/1735177322/sys_int_pic32.o build/TTN_Gateway_v1/debug/_ext/382216826/sys_random.o build/TTN_Gateway_v1/debug/_ext/2006676598/sys_reset.o build/TTN_Gateway_v1/debug/_ext/593047616/sys_tmr.o build/TTN_Gateway_v1/debug/_ext/56247119/sys_fs_wrapper.o build/TTN_Gateway_v1/debug/_ext/56247119/helpers.o build/TTN_Gateway_v1/debug/_ext/13422293/tcp.o build/TTN_Gateway_v1/debug/_ext/13422293/udp.o build/TTN_Gateway_v1/debug/_ext/13422293/tcpip_heap_alloc.o build/TTN_Gateway_v1/debug/_ext/13422293/tcpip_heap_external.o build/TTN_Gateway_v1/debug/_ext/13422293/arp.o build/TTN_Gateway_v1/debug/_ext/13422293/dhcp.o build/TTN_Gateway_v1/debug/_ext/13422293/dhcps.o build/TTN_Gateway_v1/debug/_ext/13422293/dns.o build/TTN_Gateway_v1/debug/_ext/13422293/http.o build/TTN_Gateway_v1/debug/_ext/13422293/icmp.o build/TTN_Gateway_v1/debug/_ext/13422293/nbns.o build/TTN_Gateway_v1/debug/_ext/13422293/sntp.o build/TTN_Gateway_v1/debug/_ext/13422293/zero_conf_helper.o build/TTN_Gateway_v1/debug/_ext/13422293/zero_conf_link_local.o build/TTN_Gateway_v1/debug/_ext/13422293/zero_conf_multicast_dns.o build/TTN_Gateway_v1/debug/_ext/13422293/tcpip_commands.o build/TTN_Gateway_v1/debug/_ext/13422293/hash_fnv.o build/TTN_Gateway_v1/debug/_ext/13422293/oahash.o build/TTN_Gateway_v1/debug/_ext/13422293/tcpip_helpers.o build/TTN_Gateway_v1/debug/_ext/13422293/tcpip_helper_c32.o build/TTN_Gateway_v1/debug/_ext/13422293/tcpip_manager.o build/TTN_Gateway_v1/debug/_ext/13422293/tcpip_notify.o build/TTN_Gateway_v1/debug/_ext/13422293/tcpip_packet.o build/TTN_Gateway_v1/debug/_ext/13422293/ipv4.o build/TTN_Gateway_v1/debug/_ext/232727796/heap_2.o build/TTN_Gateway_v1/debug/_ext/1041468027/port.o build/TTN_Gateway_v1/debug/_ext/1041468027/port_asm.o build/TTN_Gateway_v1/debug/_ext/660352049/croutine.o build/TTN_Gateway_v1/debug/_ext/660352049/list.o build/TTN_Gateway_v1/debug/_ext/660352049/queue.o build/TTN_Gateway_v1/debug/_ext/660352049/tasks.o build/TTN_Gateway_v1/debug/_ext/660352049/timers.o build/TTN_Gateway_v1/debug/_ext/660352049/event_groups.o build/TTN_Gateway_v1/debug/_ext/1121128828/trcRecorder.o build/TTN_Gateway_v1/debug/_ext/584516763/aes.o build/TTN_Gateway_v1/debug/_ext/584516763/aesni.o build/TTN_Gateway_v1/debug/_ext/584516763/arc4.o build/TTN_Gateway_v1/debug/_ext/584516763/asn1parse.o build/TTN_Gateway_v1/debug/_ext/584516763/asn1write.o build/TTN_Gateway_v1/debug/_ext/584516763/base64.o build/TTN_Gateway_v1/debug/_ext/584516763/bignum.o build/TTN_Gateway_v1/debug/_ext/584516763/blowfish.o build/TTN_Gateway_v1/debug/_ext/584516763/camellia.o build/TTN_Gateway_v1/debug/_ext/584516763/ccm.o build/TTN_Gateway_v1/debug/_ext/584516763/certs.o build/TTN_Gateway_v1/debug/_ext/584516763/cipher.o build/TTN_Gateway_v1/debug/_ext/584516763/cipher_wrap.o build/TTN_Gateway_v1/debug/_ext/584516763/cmac.o build/TTN_Gateway_v1/debug/_ext/584516763/ctr_drbg.o build/TTN_Gateway_v1/debug/_ext/584516763/debug.o build/TTN_Gateway_v1/debug/_ext/584516763/des.o build/TTN_Gateway_v1/debug/_ext/584516763/dhm.o build/TTN_Gateway_v1/debug/_ext/584516763/ecdh.o build/TTN_Gateway_v1/debug/_ext/584516763/ecdsa.o build/TTN_Gateway_v1/debug/_ext/584516763/ecjpake.o build/TTN_Gateway_v1/debug/_ext/584516763/ecp.o build/TTN_Gateway_v1/debug/_ext/584516763/ecp_curves.o build/TTN_Gateway_v1/debug/_ext/584516763/entropy.o build/TTN_Gateway_v1/debug/_ext/584516763/entropy_poll.o build/TTN_Gateway_v1/debug/_ext/584516763/error.o build/TTN_Gateway_v1/debug/_ext/584516763/gcm.o build/TTN_Gateway_v1/debug/_ext/584516763/havege.o build/TTN_Gateway_v1/debug/_ext/584516763/hmac_drbg.o build/TTN_Gateway_v1/debug/_ext/584516763/md.o build/TTN_Gateway_v1/debug/_ext/584516763/md2.o build/TTN_Gateway_v1/debug/_ext/584516763/md4.o build/TTN_Gateway_v1/debug/_ext/584516763/md5.o build/TTN_Gateway_v1/debug/_ext/584516763/md_wrap.o build/TTN_Gateway_v1/debug/_ext/584516763/memory_buffer_alloc.o build/TTN_Gateway_v1/debug/_ext/584516763/oid.o build/TTN_Gateway_v1/debug/_ext/584516763/padlock.o build/TTN_Gateway_v1/debug/_ext/584516763/pem.o build/TTN_Gateway_v1/debug/_ext/584516763/pk.o build/TTN_Gateway_v1/debug/_ext/584516763/pk_wrap.o build/TTN_Gateway_v1/debug/_ext/584516763/pkcs11.o build/TTN_Gateway_v1/debug/_ext/584516763/pkcs12.o build/TTN_Gateway_v1/debug/_ext/584516763/pkcs5.o build/TTN_Gateway_v1/debug/_ext/584516763/pkparse.o build/TTN_Gateway_v1/debug/_ext/584516763/pkwrite.o build/TTN_Gateway_v1/debug/_ext/584516763/platform.o build/TTN_Gateway_v1/debug/_ext/584516763/ripemd160.o build/TTN_Gateway_v1/debug/_ext/584516763/rsa.o build/TTN_Gateway_v1/debug/_ext/584516763/sha1.o build/TTN_Gateway_v1/debug/_ext/584516763/sha256.o build/TTN_Gateway_v1/debug/_ext/584516763/sha512.o build/TTN_Gateway_v1/debug/_ext/584516763/ssl_cache.o build/TTN_Gateway_v1/debug/_ext/584516763/ssl_ciphersuites.o build/TTN_Gateway_v1/debug/_ext/584516763/ssl_cli.o build/TTN_Gateway_v1/debug/_ext/584516763/ssl_cookie.o build/TTN_Gateway_v1/debug/_ext/584516763/ssl_srv.o build/TTN_Gateway_v1/debug/_ext/584516763/ssl_ticket.o build/TTN_Gateway_v1/debug/_ext/584516763/ssl_tls.o build/TTN_Gateway_v1/debug/_ext/584516763/threading.o build/TTN_Gateway_v1/debug/_ext/584516763/timing.o build/TTN_Gateway_v1/debug/_ext/584516763/version.o build/TTN_Gateway_v1/debug/_ext/584516763/version_features.o build/TTN_Gateway_v1/debug/_ext/584516763/x509.o build/TTN_Gateway_v1/debug/_ext/584516763/x509_create.o build/TTN_Gateway_v1/debug/_ext/584516763/x509_crl.o build/TTN_Gateway_v1/debug/_ext/584516763/x509_crt.o build/TTN_Gateway_v1/debug/_ext/584516763/x509_csr.o build/TTN_Gateway_v1/debug/_ext/584516763/x509write_crt.o build/TTN_Gateway_v1/debug/_ext/584516763/x509write_csr.o build/TTN_Gateway_v1/debug/_ext/584516763/xtea.o    ../vendor/harmony/framework/driver/wifi/mrf24wn/wireless_driver_extension/wdrvext_mz_ef.a ../vendor/harmony/bin/framework/peripheral/PIC32MZ2048EFM144_peripherals.a ../vendor/harmony/framework/tcpip/src/crypto/aes_pic32mx.a      -DXPRJ_TTN_Gateway_v1=TTN_Gateway_v1  -no-legacy-libc     -mreserve=data@0x0:0x37F   -Wl,--defsym=__MPLAB_BUILD=1,--script="../src/system_config/TTN_Gateway_v1/app_mz.ld",--defsym=__MPLAB_DEBUG=1,--defsym=__DEBUG=1,--defsym=__MPLAB_DEBUGGER_PK3=1,--gc-sections,--no-code-in-dinit,--no-dinit-in-serial-mem,-Map="dist/TTN_Gateway_v1/debug/TTN_Gateway.X.debug.map",--memorysummary,dist/TTN_Gateway_v1/debug/memoryfile.xml
make[2]: Leaving directory '/Users/user/Documents/company/projects/ttn/gateway/gateway/firmware/TTN_Gateway.X'
--------------------------------------
User defined post-build step: []
--------------------------------------
make[1]: Leaving directory '/Users/user/Documents/company/projects/ttn/gateway/gateway/firmware/TTN_Gateway.X'

BUILD SUCCESSFUL (total time: 1m 16s)
Loading symbols from /Users/user/Documents/company/projects/ttn/gateway/gateway/firmware/TTN_Gateway.X/dist/TTN_Gateway_v1/debug/TTN_Gateway.X.debug.elf...
Loading code from /Users/user/Documents/company/projects/ttn/gateway/gateway/firmware/TTN_Gateway.X/dist/TTN_Gateway_v1/debug/TTN_Gateway.X.debug.elf...
Loading completed

*****************************************************

Connecting to MPLAB PICkit 3...

Currently loaded firmware on PICkit 3
Firmware Suite Version.....01.45.41
Firmware type..............PIC32MZ

Target voltage detected
Target device PIC32MZ2048EFM144 found.
Device ID Revision = A3

Device Erased...

Programming...

The following memory area(s) will be programmed:
program memory: start address = 0x0, end address = 0xedfff
boot config memory
configuration memory
Programming/Verify complete

Any Screenshots or Photos?

Do you think you can try to fix this yourself and submit a pull request?

I would hope so.

KrishnaIyer commented 5 years ago

@frankminfarm: This is almost certainly due to uploading a firmware without the bootloader. Once the compilation is done, please run ./merge_bootloader.sh and flash the firmware-with-bootloader.hex using the PICKit.

The firmware.hex does not contain a bootloader and hence is intended only for using with an SD Card.

frankminfarm commented 5 years ago

Yes, right you are. That was the problem. Thanks for the response.

KrishnaIyer commented 5 years ago

👍