power consumption goes high after running for 5 minutes

I have a board that uses the nrf 52833, on which I built a program based on the nrf5 sdk 17.1 modification of ble_gls example, after changing SEC_JUST_WORKS to SEC_OPEN and modifying ble_evt_handler:

case BLE_GAP_EVT_SEC_PARAMS_REQUEST.
// Pairing not supported
err_code = sd_ble_gap_sec_params_reply(m_conn_handle, BLE_GAP_SEC_STATUS_PAIRING_NOT_SUPP, NULL, NULL);
APP_ERROR_CHECK(err_code);
break;

After that I burned into the chip and at first it was normal, but after 5 minutes the power consumption would suddenly become high, while the power consumption of the unmodified program would not become high.

This is the power consumption of the changed program, and you can see it goes high at 5:03 and the advertise starts at 0:03 :

program with changes

this is the original program, nothing changed:

the original

Related