BORON keeps resetting randomly with with RESET_REASON_NONE as the reset reason

I have code running on a Boron 2G/3G but after a while, the device starts randomly resetting. Noticed that when the first reset happens, more resets are bound to happen within seconds of each other.

I put in reset reason handling in here and the reason will print within 5 seconds of a reboot. Here is the code

#include "Particle.h"
#include "cn0357_app.h"

SYSTEM_THREAD(ENABLED);

uint32_t reset_reason = RESET_REASON_NONE;

void print_current_reset_reason( void );
void handle_reset( void );

Timer print_reset_reason(5000, print_current_reset_reason, true);

void setup()
{
    handle_reset();
    Serial.begin(19200);
    init_clo2_sensor();
    print_reset_reason.start();
}

void loop() 
{
    cn0357_churn();
}

void handle_reset( void )
{
    System.enableFeature(FEATURE_RESET_INFO);
    reset_reason = System.resetReason();
    if ( reset_reason == RESET_REASON_PANIC) 
    {
        System.enterSafeMode();
    }
}

void print_current_reset_reason( void )
{
    Serial.print("RESET REASON: "); Serial.println( reset_reason );
}

and here is the trace after the resets start coming in.

1/31/2021 12:11:03.667  DOCKLIGHT reports: General I/O error on COM4
General error while accessing the communication port
 

1/31/2021 12:11:04.402  DOCKLIGHT reports: General I/O error on COM4
General error while accessing the communication port

1/31/2021 12:11:10.308 [RX] - RESET REASON: 0
 

1/31/2021 12:11:12.376  DOCKLIGHT reports: General I/O error on COM4
General error while accessing the communication port

1/31/2021 12:11:19.013 [RX] - RESET REASON: 0
 

1/31/2021 12:11:22.487  DOCKLIGHT reports: General I/O error on COM4
General error while accessing the communication port
 

1/31/2021 12:11:23.021  DOCKLIGHT reports: General I/O error on COM4
General error while accessing the communication port

1/31/2021 12:11:29.136 [RX] - RESET REASON: 0
 

1/31/2021 12:11:33.040  DOCKLIGHT reports: General I/O error on COM4
General error while accessing the communication port

1/31/2021 12:11:39.681 [RX] - RESET REASON: 0
 

1/31/2021 12:11:41.934  DOCKLIGHT reports: General I/O error on COM4
General error while accessing the communication port
 

1/31/2021 12:11:42.276  DOCKLIGHT reports: General I/O error on COM4
General error while accessing the communication port

1/31/2021 12:11:48.580 [RX] - RESET REASON: 0

I can’t find a pattern on when the resets happen.
Any insight on this?

I am very interested in learning more what you find out. I was and occasionally still experience this. Here was a lengthy thread of me going down a rabbit hole or two trying to figure it out.

To me, it seems to always happen with a brand new out of the box Boron and it happens in the first day or two. It also always reset just as it is establishing the cloud connection (i.e. rapid blinking). Keep us in the loop on what you find out.