Boron breathes red three times and restarts continuously after flashing firmware

I have a particle boron that has been in service since 2021. It had been running the firmware (a weather station program) successfully on OS 2.0.1 without any problem until a few weeks ago. The device stopped transmitting and went into listening mode (blinking dark blue). This has happened a few times in the past, and I was always able to resolve the issue by resetting the boron by holding down the MODE button and tapping RESET. However, this time I could not get it out of listening mode. I brought the boron home and hooked it up to my computer and executed a device restore over USB (using Chrome web interface) to OS 2.0.1 and flashed tinker. My boron liked this and was happily connected via LTE and breathing cyan. However, when I go to the web IDE and flash my weatherstation firmware, my boron was not happy. Web IDE successfully compiled the code (which makes sense because this is the same code I have been using for 4 years) and reported that the code was successfully flashed to the device. However, after receiving the code, my boron “breathes” red three times, then starts flashing green (connecting to network), then back to “breathing” red three times and the cycle repeats. The only way I can break the cycle is to put the device in DFU mode and then do a device restore over USB (using Chrome web interface) to OS 2.0.1 and flash tinker.

Anybody have any ideas on what is happening and how to fix this issue?

Breathing red isn't a standard color combination. I would enable USB debugging and see if there are any log messages generated:

SerialLogHandler logHandler(LOG_LEVEL_TRACE);

Hi Rick - I added the code you suggested. Please find below the output of the serial monitoring text. As you can see it keeps reapeating each time the boron resets (after it breathes red three times). I have no idea what this means. Can you please tell me what is going on?:

Serial monitor opened successfully:

Serial connection closed. Attempting to reconnect...
Serial monitor opened successfully:
0000004549 [ncp.at] TRACE: > AT
0000004556 [ncp.at] TRACE: < OK
0000004556 [ncp.at] TRACE: > ATD99**1#
0000004565 [ncp.at] TRACE: < CONNECT 150000000
0000004565 [net.ppp.client] TRACE: PPP phase -> 3
0000004565 [net.ppp.client] TRACE: PPP phase -> 6
0000005017 [net.ppp.client] TRACE: PPP phase -> 7
Device RTC NOT at address:0x6f
Device Exp NOT at address:0x20
Device RTC EEPROM NOT at address:0x57
Device ADC NOT at address:0x4d
Device FRAM NOT at address:0x50
Device AM2315 NOT at address:0x5c
Device MPL3115 NOT at address:0x60
Device TSL2591 NOT at address:0x29
Scanning...
No I2C devices found

Plug the device into the IoT Node
Resetting in 10 seconds
0000006293 [net.ppp.client] TRACE: PPP phase -> 9
0000008299 [system.nm] INFO: State changed: IFACE_UP -> IFACE_LINK_UP
0000008300 [net.ppp.client] TRACE: PPP thread event UP
0000008300 [net.ppp.client] TRACE: State CONNECTING -> CONNECTED
0000008301 [net.pppncp] TRACE: Negotiated MTU: 1500
0000008301 [system.nm] INFO: State changed: IFACE_LINK_UP -> IP_CONFIGURED
0000008303 [net.ppp.client] TRACE: PPP phase -> 10
0000008303 [system] INFO: Cloud: connecting
0000008305 [system] INFO: Cloud socket connected
0000008306 [comm.protocol.handshake] INFO: Establish secure connection
0000008506 [ncp.at] TRACE: > AT+CCID
0000008514 [ncp.at] TRACE: < +CCID: 89883070000010813366
0000008514 [ncp.at] TRACE: < OK
0000008515 [ncp.at] TRACE: > AT+CGSN
0000008524 [ncp.at] TRACE: < 354724647342887
0000008524 [ncp.at] TRACE: < OK
0000008524 [ncp.at] TRACE: > ATI9
0000008533 [ncp.at] TRACE: < L0.0.00.00.05.08,A.02.04
0000008533 [ncp.at] TRACE: < OK
0000008534 [comm.protocol.handshake] INFO: Sending HELLO message
0000009211 [comm.protocol.handshake] INFO: Handshake completed
0000009211 [comm.protocol.handshake] TRACE: Updating protocol flags
0000009402 [ncp.at] TRACE: > AT+CCID
0000009408 [ncp.at] TRACE: < +CCID: 89883070000010813366
0000009408 [ncp.at] TRACE: < OK
0000009409 [ncp.at] TRACE: > AT+CGSN
0000009415 [ncp.at] TRACE: < 354724647342887
0000009415 [ncp.at] TRACE: < OK
0000009415 [ncp.at] TRACE: > ATI9
0000009421 [ncp.at] TRACE: < L0.0.00.00.05.08,A.02.04
0000009421 [ncp.at] TRACE: < OK
0000009422 [comm.protocol] INFO: Posting 'S' describe message
0000009879 [comm.protocol] TRACE: Reply recieved: type=2, code=0
0000009884 [comm.protocol] TRACE: message id 42 complete with code 0.00
0000009884 [comm.protocol] TRACE: Updating system DESCRIBE checksum
0000010077 [ncp.at] TRACE: > AT+CCID
0000010083 [ncp.at] TRACE: < +CCID: 89883070000010813366
0000010083 [ncp.at] TRACE: < OK
0000010084 [ncp.at] TRACE: > AT+CGSN
0000010089 [ncp.at] TRACE: < 354724647342887
0000010089 [ncp.at] TRACE: < OK
0000010090 [ncp.at] TRACE: > ATI9
0000010095 [ncp.at] TRACE: < L0.0.00.00.05.08,A.02.04
0000010096 [ncp.at] TRACE: < OK
0000010096 [comm.protocol] TRACE: rcv'd message type=13
0000010097 [comm.protocol] TRACE: Reply recieved: type=2, code=0
0000010097 [comm.protocol] TRACE: message id 43 complete with code 0.00
0000010098 [comm.protocol] TRACE: rcv'd message type=13
0000010198 [comm.protocol] TRACE: Reply recieved: type=2, code=0
0000010199 [comm.protocol] TRACE: message id 44 complete with code 0.00
0000010199 [comm.protocol] TRACE: rcv'd message type=13
0000010299 [comm.protocol] TRACE: Reply recieved: type=2, code=0
0000010300 [comm.protocol] TRACE: message id 45 complete with code 0.00
0000010300 [comm.protocol] TRACE: rcv'd message type=13
0000010400 [comm.protocol] TRACE: Reply recieved: type=2, code=0
0000010401 [comm.protocol] TRACE: message id 46 complete with code 0.00
0000010401 [comm.protocol] TRACE: rcv'd message type=13
0000010501 [comm.protocol] TRACE: Reply recieved: type=2, code=69
0000010502 [comm.protocol] TRACE: message id 47 complete with code 2.05
0000010502 [comm.protocol] INFO: Received TIME response: 1755351379
0000010503 [comm.protocol] TRACE: rcv'd message type=12
0000010603 [system] INFO: Cloud connected
0000010961 [comm.protocol] TRACE: rcv'd message type=8

Serial connection closed. Attempting to reconnect...
Serial monitor opened successfully:
0000006232 [system.nm] INFO: State changed: IFACE_UP -> IFACE_LINK_UP
0000006234 [net.ppp.client] TRACE: PPP thread event UP
0000006234 [net.ppp.client] TRACE: State CONNECTING -> CONNECTED
0000006235 [net.pppncp] TRACE: Negotiated MTU: 1500
0000006235 [system.nm] INFO: State changed: IFACE_LINK_UP -> IP_CONFIGURED
0000006237 [net.ppp.client] TRACE: PPP phase -> 10
0000006238 [system] INFO: Cloud: connecting
0000006240 [system] INFO: Cloud socket connected
0000006240 [comm.protocol.handshake] INFO: Establish secure connection
0000006441 [ncp.at] TRACE: > AT+CCID
0000006447 [ncp.at] TRACE: < +CCID: 89883070000010813366
0000006447 [ncp.at] TRACE: < OK
0000006448 [ncp.at] TRACE: > AT+CGSN
0000006453 [ncp.at] TRACE: < 354724647342887
0000006453 [ncp.at] TRACE: < OK
0000006454 [ncp.at] TRACE: > ATI9
0000006459 [ncp.at] TRACE: < L0.0.00.00.05.08,A.02.04
0000006460 [ncp.at] TRACE: < OK
0000006460 [comm.protocol.handshake] INFO: Skipping HELLO message
0000006842 [comm.protocol] TRACE: Reply recieved: type=2, code=0
0000006843 [comm.protocol] TRACE: message id 48 complete with code 0.00
0000006843 [comm.protocol] TRACE: rcv'd message type=13
0000006844 [comm.protocol] TRACE: Reply recieved: type=2, code=0
0000006845 [comm.protocol] TRACE: message id 49 complete with code 0.00
0000006845 [comm.protocol] TRACE: rcv'd message type=13
0000007083 [comm.protocol] TRACE: Reply recieved: type=2, code=69
0000007083 [comm.protocol] TRACE: message id 51 complete with code 2.05
0000007084 [comm.protocol] INFO: Received TIME response: 1755351391
0000007084 [comm.protocol] TRACE: rcv'd message type=12
0000007085 [comm.protocol] TRACE: Reply recieved: type=2, code=0
0000007086 [comm.protocol] TRACE: message id 50 complete with code 0.00
0000007086 [comm.protocol] TRACE: rcv'd message type=13
0000007186 [system] INFO: Cloud connected
0000008045 [comm.protocol] TRACE: rcv'd message type=8

Serial connection closed. Attempting to reconnect...
Serial monitor opened successfully:
0000006845 [net.ppp.client] TRACE: PPP phase -> 9
0000008125 [system.nm] INFO: State changed: IFACE_UP -> IFACE_LINK_UP
0000008126 [net.ppp.client] TRACE: PPP thread event UP
0000008127 [net.ppp.client] TRACE: State CONNECTING -> CONNECTED
0000008127 [net.pppncp] TRACE: Negotiated MTU: 1500
0000008128 [system.nm] INFO: State changed: IFACE_LINK_UP -> IP_CONFIGURED
0000008129 [net.ppp.client] TRACE: PPP phase -> 10
0000008130 [system] INFO: Cloud: connecting
0000008132 [system] INFO: Cloud socket connected
0000008132 [comm.protocol.handshake] INFO: Establish secure connection
0000008333 [ncp.at] TRACE: > AT+CCID
0000008340 [ncp.at] TRACE: < +CCID: 89883070000010813366
0000008341 [ncp.at] TRACE: < OK
0000008342 [ncp.at] TRACE: > AT+CGSN
0000008350 [ncp.at] TRACE: < 354724647342887
0000008350 [ncp.at] TRACE: < OK
0000008351 [ncp.at] TRACE: > ATI9
0000008359 [ncp.at] TRACE: < L0.0.00.00.05.08,A.02.04
0000008360 [ncp.at] TRACE: < OK
0000008360 [comm.protocol.handshake] INFO: Skipping HELLO message
0000008904 [comm.protocol] TRACE: Reply recieved: type=2, code=0
0000008905 [comm.protocol] TRACE: message id 52 complete with code 0.00
0000008905 [comm.protocol] TRACE: rcv'd message type=13
0000009133 [comm.protocol] TRACE: Reply recieved: type=2, code=0
0000009135 [comm.protocol] TRACE: message id 53 complete with code 0.00
0000009136 [comm.protocol] TRACE: rcv'd message type=13
0000009137 [comm.protocol] TRACE: Reply recieved: type=2, code=0
0000009137 [comm.protocol] TRACE: message id 54 complete with code 0.00
0000009138 [comm.protocol] TRACE: rcv'd message type=13
0000009239 [comm.protocol] TRACE: Reply recieved: type=2, code=69
0000009239 [comm.protocol] TRACE: message id 55 complete with code 2.05
0000009240 [comm.protocol] INFO: Received TIME response: 1755351409
0000009240 [comm.protocol] TRACE: rcv'd message type=12
0000009340 [system] INFO: Cloud connected
0000010163 [comm.protocol] TRACE: rcv'd message type=8