@Jeff-UK - many thanks for the detailed answer.
Before I go ahead w/ the firmware update I wanted to ensure that I have the full picture and a baseline thus read the serial logs.
The gateway is in a boot loop at the moment, but it’s unclear to me why - these line look suspicious though.
LGMD:Timeout on cmd: 0x31
LORA: Configuration failed, retry
Would a reflash cure this?
Full log below.
SNTP: State change from 0 to 0
SNTP: State change from 0 to 0
**************************
* The Things Network *
* G A T E W A Y *
**************************
Firmware name: AmazingAckermann, type: 0, version: 1.0.8, commit: 846da98b, timestamp: 1574945235
Bootloader revision: 1, commit: 7167873a, timestamp: 1496411298
Build time: Nov 28 2019 12:48:18
Reboot reason: 0x03
BOOT: (persisted info) 6F 72 72 65 01 03 D5 CE 86 EF 50 EE B1 06 4D 42
WIFI: Entering state 0
WIFI: Entering SCAN state 0
MAIN: Initialisation complete
LORA: Changing state from 0 to 0
MAIN: Leaving state 0
MAIN: Entering state 1
FLASH: Magic bytes found: wifi config present
FLASH: Magic bytes found: activation data present
FLASH: Magic bytes not found: no stored FOTA data present
FLASH: Loading Firmware Data
CNFG: (Firmware HASH (sha256)) FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
FLASH: Loading WiFi Data
CNFG: WiFi SSID: Things-Gateway-001EC03AEF0C
CNFG: WiFi key: ***
CNFG: WiFi conn_type: 4
CNFG: WiFi sec_type: 4
FLASH: Loading Activation Data
CNFG: Gateway ID: surviot-gw-01
CNFG: Gateway Key: ***
CNFG: Account Server URL: https://eu1.cloud.thethings.network/
CNFG: Locked: true
CNFG: Locked first time: false
MAIN: Leaving state 1
MAIN: Entering state 2
INET: State change to 0
LORA: Initialisation complete
LORA: Changing state from 0 to 1
WIFI: Entering state 1
ETH: IP Address: 0.0.0.0
WIFI: Entering state 2
WIFI: Disabling modules
Head magic match void: trying to free an already freed block, ignore
WIFI: Entering state 3
WIFI: Enabling modules for server
WIFI: Entering state 6
>WIFI: IP Address: 192.168.84.1
SNTP: State change from 0 to 1
INET: Gateway has Ethernet
INET: State change to 2
INET: Connected to a network, waiting for DHCP lease, checking validity with ping
CB: ETH: IP Address: 192.168.50.154
SNTP: State change from 1 to 2
SNTP: State change from 2 to 3
SNTP: State change from 3 to 4
INET: State change to 3
INET: Ping probe
INET: Error sending probe on WiFi
INET: Ping response from PIC32INT, set as default
INET: State change to 4
SNTP: State change from 4 to 5
SNTP: State change from 5 to 6
SNTP: State change from 6 to 7
INET: State change to 5
MAIN: Leaving state 2
MAIN: Entering state 3
CNFG: Load online user config state change to 4
HTTP: Close active socket 0
HTTP: Starting connection
HTTPS: Connection Opened: Starting TLS Negotiation
HTTP: Wait for TLS Connect
LORA: Wait init complete, waiting for application.
LORA: Changing state from 1 to 2
HTTP: TLS Connection Opened: Starting Clear Text Communication
HTTP: Got 1055 bytes
MON: SYS Stack size: 2795
MON: TCPIP Stack size: 3773
MON: APP Stack size: 4155
MON: LoRa Stack size: 3911
MON: heap usage: 269KB (277KB), free: 69KB
HTTP: Connection Closed
HTTP: Close active socket 1
CONF: Parsing response token: HTTP/1.1 200 OK
CONF: ROUTER URL: mqtts://eu1.cloud.thethings.network:8881
CNFG: Load online user config state change to 6
FREQ: APP_URL_Buffer: https://eu1.cloud.thethings.network/api/v2/frequency-plans/EU_868_1
HTTP: Starting connection
HTTPS: Connection Opened: Starting TLS Negotiation
HTTP: Wait for TLS Connect
HTTP: TLS Connection Opened: Starting Clear Text Communication
HTTP: Got 1556 bytes
HTTP: Connection Closed
HTTP: Close active socket 1
CNFG: Load online user config state change to 7
CNFG: Configuring LoRa module
LORA: Changing state from 2 to 3
LORA: Starting reconfiguration
LGMD:Command, cmd: 0x31, size: 0
MON: SYS Stack size: 2795
MON: TCPIP Stack size: 3773
MON: APP Stack size: 3292
MON: LoRa Stack size: 3887
MON: heap usage: 189KB (277KB), free: 150KB
LGMD:Timeout on cmd: 0x31
LORA: Configuration failed, retry
LORA: Starting reconfiguration
LGMD:Command, cmd: 0x31, size: 0
LGMD:Timeout on cmd: 0x31
LORA: Configuration failed, retry
LORA: Starting reconfiguration
LGMD:Command, cmd: 0x31, size: 0
LGMD:Timeout on cmd: 0x31
LORA: Configuration failed, retry
LORA: RESET MODULE
LORA: Changing state from 3 to 0
LORA: Initialisation complete
LORA: Changing state from 0 to 1
MON: SYS Stack size: 2795
MON: TCPIP Stack size: 3773
MON: APP Stack size: 3292
MON: LoRa Stack size: 3887
MON: heap usage: 205KB (277KB), free: 134KB
LORA: Wait init complete, waiting for application.
LORA: Changing state from 1 to 2
LORA: Changing state from 2 to 3
LORA: Starting reconfiguration
LGMD:Command, cmd: 0x31, size: 0
LGMD:Timeout on cmd: 0x31
LORA: Configuration failed, retry
LORA: Starting reconfiguration
LGMD:Command, cmd: 0x31, size: 0
LGMD:Timeout on cmd: 0x31
LORA: Configuration failed, retry
LORA: Starting reconfiguration
LGMD:Command, cmd: 0x31, size: 0
LGMD:Timeout on cmd: 0x31
LORA: Configuration failed, retry
LORA: RESET MODULE
LORA: Changing state from 3 to 0
LORA: Initialisation complete
LORA: Changing state from 0 to 1
MON: SYS Stack size: 2795
MON: TCPIP Stack size: 3773
MON: APP Stack size: 3292
MON: LoRa Stack size: 3879
MON: heap usage: 221KB (277KB), free: 117KB
LORA: Wait init complete, waiting for application.
LORA: Changing state from 1 to 2
LORA: Changing state from 2 to 3
LORA: Starting reconfiguration
LGMD:Command, cmd: 0x31, size: 0
LGMD:Timeout on cmd: 0x31
LORA: Configuration failed, retry
LORA: Starting reconfiguration
LGMD:Command, cmd: 0x31, size: 0
LGMD:Timeout on cmd: 0x31
LORA: Configuration failed, retry
LORA: Starting reconfiguration
LGMD:Command, cmd: 0x31, size: 0
LGMD:Timeout on cmd: 0x31
LORA: Configuration failed, retry
LORA: RESET MODULE
LORA: Changing state from 3 to 0
LORA: Initialisation complete
LORA: Changing state from 0 to 1
MON: SYS Stack size: 2795
MON: TCPIP Stack size: 3773
MON: APP Stack size: 3292
MON: LoRa Stack size: 3879
MON: heap usage: 237KB (277KB), free: 101KB
LORA: Wait init complete, waiting for application.
LORA: Changing state from 1 to 2
LORA: Changing state from 2 to 3
LORA: Starting reconfiguration
LGMD:Command, cmd: 0x31, size: 0
LGMD:Timeout on cmd: 0x31
LORA: Configuration failed, retry
LORA: Starting reconfiguration
LGMD:Command, cmd: 0x31, size: 0
LGMD:Timeout on cmd: 0x31
LORA: Configuration failed, retry
LORA: Starting reconfiguration
LGMD:Command, cmd: 0x31, size: 0
LGMD:Timeout on cmd: 0x31
LORA: Configuration failed, retry
LORA: RESET MODULE
LORA: Changing state from 3 to 0
MON: SYS Stack size: 2795
MON: TCPIP Stack size: 3773
MON: APP Stack size: 3292
MON: LoRa Stack size: 3871
MON: heap usage: 253KB (277KB), free: 85KB
LORA: Initialisation complete
LORA: Changing state from 0 to 1
LORA: Wait init complete, waiting for application.
LORA: Changing state from 1 to 2
LORA: Changing state from 2 to 3
LORA: Starting reconfiguration
LGMD:Command, cmd: 0x31, size: 0
LGMD:Timeout on cmd: 0x31
LORA: Configuration failed, retry
LORA: Starting reconfiguration
LGMD:Command, cmd: 0x31, size: 0
LGMD:Timeout on cmd: 0x31
LORA: Configuration failed, retry
LORA: Starting reconfiguration
LGMD:Command, cmd: 0x31, size: 0
MON: SYS Stack size: 2795
MON: TCPIP Stack size: 3773
MON: APP Stack size: 3292
MON: LoRa Stack size: 3871
MON: heap usage: 253KB (277KB), free: 85KB
LGMD:Timeout on cmd: 0x31
LORA: Configuration failed, retry
LORA: RESET MODULE
LORA: Changing state from 3 to 0
LORA: Initialisation complete
LORA: Changing state from 0 to 1
LORA: Wait init complete, waiting for application.
LORA: Changing state from 1 to 2
LORA: Changing state from 2 to 3
LORA: Starting reconfiguration
LGMD:Command, cmd: 0x31, size: 0
MON: SYS Stack size: 2795
MON: TCPIP Stack size: 3773
MON: APP Stack size: 3292
MON: LoRa Stack size: 3871
MON: heap usage: 270KB (277KB), free: 69KB
LGMD:Timeout on cmd: 0x31
LORA: Configuration failed, retry
LORA: Starting reconfiguration
LGMD:Command, cmd: 0x31, size: 0
LGMD:Timeout on cmd: 0x31
LORA: Configuration failed, retry
LORA: Starting reconfiguration
LGMD:Command, cmd: 0x31, size: 0
LGMD:Timeout on cmd: 0x31
LORA: Configuration failed, retry
LORA: RESET MODULE
LORA: Changing state from 3 to 0
LORA: Initialisation complete
LORA: Changing state from 0 to 1
MON: SYS Stack size: 2795
MON: TCPIP Stack size: 3773
MON: APP Stack size: 3292
MON: LoRa Stack size: 3871
MON: heap usage: 286KB (286KB), free: 53KB
LORA: Wait init complete, waiting for application.
LORA: Changing state from 1 to 2
LORA: Changing state from 2 to 3
LORA: Starting reconfiguration
LGMD:Command, cmd: 0x31, size: 0
LGMD:Timeout on cmd: 0x31
LORA: Configuration failed, retry
LORA: Starting reconfiguration
LGMD:Command, cmd: 0x31, size: 0
LGMD:Timeout on cmd: 0x31
LORA: Configuration failed, retry
LORA: Starting reconfiguration
LGMD:Command, cmd: 0x31, size: 0
LGMD:Timeout on cmd: 0x31
LORA: Configuration failed, retry
LORA: RESET MODULE
LORA: Changing sta
*** assert ../src/system_config/TTN_Gateway_v1/rtos_hooks.c:112:fatal:vApplicationMallocFailedHook
SNTP: State change from 0 to 0
SNTP: State change from 0 to 0
**************************
* The Things Network *
* G A T E W A Y *
**************************
Firmware name: AmazingAckermann, type: 0, version: 1.0.8, commit: 846da98b, timestamp: 1574945235
Bootloader revision: 1, commit: 7167873a, timestamp: 1496411298
Build time: Nov 28 2019 12:48:18
Reboot reason: 0x40
BOOT: (persisted info) 6F 72 72 65 01 03 D5 CE 86 EF 50 EE B1 06 4D 42
WIFI: Entering state 0
WIFI: Entering SCAN state 0
MAIN: Initialisation complete
LORA: Changing state from 0 to 0
MAIN: Leaving state 0
MAIN: Entering state 1
FLASH: Magic bytes found: wifi config present
FLASH: Magic bytes found: activation data present
FLASH: Magic bytes not found: no stored FOTA data present
FLASH: Loading Firmware Data
CNFG: (Firmware HASH (sha256)) FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
FLASH: Loading WiFi Data
CNFG: WiFi SSID: Things-Gateway-001EC03AEF0C
CNFG: WiFi key: ***
CNFG: WiFi conn_type: 4
CNFG: WiFi sec_type: 4
FLASH: Loading Activation Data
CNFG: Gateway ID: surviot-gw-01
CNFG: Gateway Key: ***
CNFG: Account Server URL: https://eu1.cloud.thethings.network/
CNFG: Locked: true
CNFG: Locked first time: false
MAIN: Leaving state 1
MAIN: Entering state 2
INET: State change to 0
LORA: Initialisation complete
LORA: Changing state from 0 to 1
WIFI: Entering state 1
ETH: IP Address: 0.0.0.0
WIFI: Entering state 2
WIFI: Disabling modules
Head magic match void: trying to free an already freed block, ignore
WIFI: Entering state 3
WIFI: Enabling modules for server
WIFI: Entering state 6
>WIFI: IP Address: 192.168.84.1
SNTP: State change from 0 to 1
INET: Gateway has Ethernet
INET: State change to 2
INET: Connected to a network, waiting for DHCP lease, checking validity with ping
ETH: IP Address: 192.168.50.154
SNTP: State change from 1 to 2
CB: SNTP: State change from 2 to 3
SNTP: State change from 3 to 4
INET: State change to 3
INET: Ping probe
INET: Error sending probe on WiFi
INET: Ping response from PIC32INT, set as default
INET: State change to 4
SNTP: State change from 4 to 5
SNTP: State change from 5 to 6
SNTP: State change from 6 to 7
INET: State change to 5
MAIN: Leaving state 2
MAIN: Entering state 3
CNFG: Load online user config state change to 4
HTTP: Close active socket 0
HTTP: Starting connection
HTTPS: Connection Opened: Starting TLS Negotiation
HTTP: Wait for TLS Connect
LORA: Wait init complete, waiting for application.
LORA: Changing state from 1 to 2
HTTP: TLS Connection Opened: Starting Clear Text Communication
HTTP: Got 1055 bytes
MON: SYS Stack size: 2817
MON: TCPIP Stack size: 3815
MON: APP Stack size: 4228
MON: LoRa Stack size: 3909
MON: heap usage: 269KB (277KB), free: 69KB
HTTP: Connection Closed
HTTP: Close active socket 1
CONF: Parsing response token: HTTP/1.1 200 OK
CONF: ROUTER URL: mqtts://eu1.cloud.thethings.network:8881
CNFG: Load online user config state change to 6
FREQ: APP_URL_Buffer: https://eu1.cloud.thethings.network/api/v2/frequency-plans/EU_868_1
HTTP: Starting connection
HTTPS: Connection Opened: Starting TLS Negotiation
HTTP: Wait for TLS Connect
HTTP: TLS Connection Opened: Starting Clear Text Communication
HTTP: Got 1556 bytes
HTTP: Connection Closed
HTTP: Close active socket 1
CNFG: Load online user config state change to 7
CNFG: Configuring LoRa module
LORA: Changing state from 2 to 3
LORA: Starting reconfiguration
LGMD:Command, cmd: 0x31, size: 0
MON: SYS Stack size: 2817
MON: TCPIP Stack size: 3815
MON: APP Stack size: 3292
MON: LoRa Stack size: 3887
MON: heap usage: 189KB (277KB), free: 150KB
LGMD:Timeout on cmd: 0x31
LORA: Configuration failed, retry
LORA: Starting reconfiguration
LGMD:Command, cmd: 0x31, size: 0
LGMD:Timeout on cmd: 0x31
LORA: Configuration failed, retry
LORA: Starting reconfiguration
LGMD:Command, cmd: 0x31, size: 0
LGMD:Timeout on cmd: 0x31
LORA: Configuration failed, retry
LORA: RESET MODULE
LORA: Changing state from 3 to 0
LORA: Initialisation complete
LORA: Changing state from 0 to 1
MON: SYS Stack size: 2817
MON: TCPIP Stack size: 3815
MON: APP Stack size: 3292
MON: LoRa Stack size: 3887
MON: heap usage: 205KB (277KB), free: 134KB
LORA: Wait init complete, waiting for application.
LORA: Changing state from 1 to 2
LORA: Changing state from 2 to 3
LORA: Starting reconfiguration
LGMD:Command, cmd: 0x31, size: 0
LGMD:Timeout on cmd: 0x31
LORA: Configuration failed, retry
LORA: Starting reconfiguration
LGMD:Command, cmd: 0x31, size: 0
LGMD:Timeout on cmd: 0x31
LORA: Configuration failed, retry
LORA: Starting reconfiguration
LGMD:Command, cmd: 0x31, size: 0
LGMD:Timeout on cmd: 0x31
LORA: Configuration failed, retry
LORA: RESET MODULE
LORA: Changing state from 3 to 0
LORA: Initialisation complete
LORA: Changing state from 0 to 1
MON: SYS Stack size: 2817
MON: TCPIP Stack size: 3815
MON: APP Stack size: 3292
MON: LoRa Stack size: 3887
MON: heap usage: 221KB (277KB), free: 117KB
LORA: Wait init complete, waiting for application.
LORA: Changing state from 1 to 2
LORA: Changing state from 2 to 3
LORA: Starting reconfiguration
LGMD:Command, cmd: 0x31, size: 0
LGMD:Timeout on cmd: 0x31
LORA: Configuration failed, retry
LORA: Starting reconfiguration
LGMD:Command, cmd: 0x31, size: 0
LGMD:Timeout on cmd: 0x31
LORA: Configuration failed, retry
LORA: Starting reconfiguration
LGMD:Command, cmd: 0x31, size: 0
LGMD:Timeout on cmd: 0x31
LORA: Configuration failed, retry
LORA: RESET MODULE
LORA: Changing state from 3 to 0
LORA: Initialisation complete
LORA: Changing state from 0 to 1
MON: SYS Stack size: 2817
MON: TCPIP Stack size: 3815
MON: APP Stack size: 3292
MON: LoRa Stack size: 3887
MON: heap usage: 237KB (277KB), free: 101KB
LORA: Wait init complete, waiting for application.
LORA: Changing state from 1 to 2
LORA: Changing state from 2 to 3
LORA: Starting reconfiguration
LGMD:Command, cmd: 0x31, size: 0
LGMD:Timeout on cmd: 0x31
LORA: Configuration failed, retry
LORA: Starting reconfiguration
LGMD:Command, cmd: 0x31, size: 0
LGMD:Timeout on cmd: 0x31
LORA: Configuration failed, retry
LORA: Starting reconfiguration
LGMD:Command, cmd: 0x31, size: 0
LGMD:Timeout on cmd: 0x31
LORA: Configuration failed, retry
LORA: RESET MODULE
LORA: Changing state from 3 to 0
MON: SYS Stack size: 2817
MON: TCPIP Stack size: 3815
MON: APP Stack size: 3292
MON: LoRa Stack size: 3887
MON: heap usage: 253KB (277KB), free: 85KB
LORA: Initialisation complete
LORA: Changing state from 0 to 1
LORA: Wait init complete, waiting for application.
LORA: Changing state from 1 to 2
LORA: Changing state from 2 to 3
LORA: Starting reconfiguration
LGMD:Command, cmd: 0x31, size: 0
LGMD:Timeout on cmd: 0x31
LORA: Configuration failed, retry
LORA: Starting reconfiguration
LGMD:Command, cmd: 0x31, size: 0
LGMD:Timeout on cmd: 0x31
MON: SYS Stack size: 2817
MON: TCPIP Stack size: 3815
MON: APP Stack size: 3292
MON: LoRa Stack size: 3871
MON: heap usage: 253KB (277KB), free: 85KB
LORA: Configuration failed, retry
LORA: Starting reconfiguration
LGMD:Command, cmd: 0x31, size: 0
LGMD:Timeout on cmd: 0x31
LORA: Configuration failed, retry
LORA: RESET MODULE
LORA: Changing state from 3 to 0
LORA: Initialisation complete
LORA: Changing state from 0 to 1
LORA: Wait init complete, waiting for application.
LORA: Changing state from 1 to 2
LORA: Changing state from 2 to 3
LORA: Starting reconfiguration
LGMD:Command, cmd: 0x31, size: 0
MON: SYS Stack size: 2817
MON: TCPIP Stack size: 3815
MON: APP Stack size: 3292
MON: LoRa Stack size: 3871
MON: heap usage: 270KB (277KB), free: 69KB
LGMD:Timeout on cmd: 0x31
LORA: Configuration failed, retry
LORA: Starting reconfiguration
LGMD:Command, cmd: 0x31, size: 0
LGMD:Timeout on cmd: 0x31
LORA: Configuration failed, retry
LORA: Starting reconfiguration
LGMD:Command, cmd: 0x31, size: 0
LGMD:Timeout on cmd: 0x31
LORA: Configuration failed, retry
LORA: RESET MODULE
LORA: Changing state from 3 to 0
LORA: Initialisation complete
LORA: Changing state from 0 to 1
MON: SYS Stack size: 2817
MON: TCPIP Stack size: 3815
MON: APP Stack size: 3292
MON: LoRa Stack size: 3871
MON: heap usage: 286KB (286KB), free: 53KB
LORA: Wait init complete, waiting for application.
LORA: Changing state from 1 to 2
LORA: Changing state from 2 to 3
LORA: Starting reconfiguration
LGMD:Command, cmd: 0x31, size: 0
LGMD:Timeout on cmd: 0x31
LORA: Configuration failed, retry
LORA: Starting reconfiguration
LGMD:Command, cmd: 0x31, size: 0
LGMD:Timeout on cmd: 0x31
LORA: Configuration failed, retry
LORA: Starting reconfiguration
LGMD:Command, cmd: 0x31, size: 0
LGMD:Timeout on cmd: 0x31
LORA: Configuration failed, retry
LORA: RESET MODULE
LORA: Changing sta
*** assert ../src/system_config/TTN_Gateway_v1/rtos_hooks.c:112:fatal:vApplicationMallocFailedHook
...