At present, the nrf52840, sdk package is components_V15.2.0, it will restart probabilistically when the USB is connected to the computer for charging. The hardware reset register reads the corresponding reset code number is empty, and the hardware error interrupt will not be triggered. Make sure the device is not during charging. Will send data, hope the official can help analyze the problem

