# BORON keeps resetting randomly with with RESET\_REASON\_NONE as the reset reason

**URL:** <https://community.particle.io/t/boron-keeps-resetting-randomly-with-with-reset-reason-none-as-the-reset-reason/59234>\
**Category:** Device OS\
**Tags:** boron\
**Created:** [January 31, 2021, 9:20am UTC](https://community.particle.io/t/boron-keeps-resetting-randomly-with-with-reset-reason-none-as-the-reset-reason/59234 "2021-01-31T09:20:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Omgitskillah](https://avatars.discourse-cdn.com/v4/letter/o/90ced4/32.png) [@Omgitskillah](https://community.particle.io/u/Omgitskillah)\
**Post date:** [January 31, 2021, 9:20am UTC](https://community.particle.io/t/boron-keeps-resetting-randomly-with-with-reset-reason-none-as-the-reset-reason/59234/1 "2021-01-31T09:20:35Z")

</div>

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

```auto
#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.

```auto
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?

---

<div class="post-metadata">

**Author:** ![jgskarda](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/jgskarda/32/28848_2.png) [@jgskarda](https://community.particle.io/u/jgskarda)\
**Post date:** [February 1, 2021, 3:00pm UTC](https://community.particle.io/t/boron-keeps-resetting-randomly-with-with-reset-reason-none-as-the-reset-reason/59234/2 "2021-02-01T15:00:58Z")

</div>

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.

> [@Boron - Seemingly random device reset - How to best capture the reason](https://community.particle.io/t/boron-seemingly-random-device-reset-how-to-best-capture-the-reason/58920):
>
> I am experiencing what seems to be a sporadic device reset during I believe the PublishQueue.Publish() call although not sure. It seems similar to [assertion-failure SOS error](https://community.particle.io/t/particle-boron-occasionally-goes-into-flashing-red-sos-10-blinks-assertion-failure-how-to-troubleshoot/58786) I had prior but it does not seem to go into an SOS assertion failure anymore but rather just does a device reset. I believe it is doing a full device reset and not just a disconnect event as the setup() is called again which resets a message counter to 0. The only way this is set to 0 is during setup(). This image is why I …

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.
