HI:
My IC: nRF51822QFAA My SDK Project: ...\nRF51_SDK_9.0.0_2e23562\examples\ble_peripheral\ble_app_template\pca10028\s110\arm5_no_packs
Appearance:
When I Powerup or reset the device, I can control the P0.01 , It's perfect.. But 30 minutes After Powerup, The Pin P0.01 is out of my control.
I try to reinitial the IO, But it is invalid, I don't know why?
And every time when I restart the device, it is very punctual Atfer 30 minutes, then the P0.01 is out of my control.
Problem: I can't Find out the problem.
My Program:
nrf_gpio_cfg_output(1);
NRF_GPIO->OUTSET = (1<<1);
NRF_GPIO->OUTCLR = (1<<1);
int main(void)
{
uint32_t err_code;
// Initialize.
timers_init();
IO_Initial();
ble_stack_init();
PStorage_Initial();
gap_params_init();
advertising_init();
services_init();
conn_params_init();
application_timers_start();
err_code = ble_advertising_start(BLE_ADV_MODE_FAST);
APP_ERROR_CHECK(err_code);
Initial_SPI_Master();
Initial_nRF24L01();
Start_LED_Timer(3);
// Enter main loop.
for (;;)
{
Battery_Sample_Function();
if(BLE_Rx_OK)
{
BLE_Rx_OK = false;
BLE_Rx_Function();
}
Multi_LED_Ctr_Function();
NFC_Coil_Active_Function();
RF_Order_Function();
power_manage();
}
}