This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

NRF52810 ble_app_uart demo how to close uart,

i use the demo ble_app_uart ,and i want to close the uart when ble is "Disconnected"。

but it when it do app_uart_close(),the nrf52810 is RST。 i use the same code in nrf51822,but it work,and no RST。

how can i close the uart when BLE is  "Disconnected"!!!!!!!!!!

such as:

do{
        WDR();

        if(0 == uart_close_done)
        {
                if(NRF_SUCCESS == app_uart_close())uart_close_done = 1;
        }

        power_manage(); 

        if(GetExtIrqMap()) break;
        if(gTaskEvent.DWord[0]) break;
}while(1);

CloseGpioExInt(); 
WakeupPlatform(); 

if(uart_close_done)
{
        uart_init();
}

Related