i'm have 2 device communicate byte UART protocol, one of them is NRF51822 and the other is some kind of MCU that i don't know clearly
NRF will send request to MCU then MCU reply to NRF, all thing through UART.i creat a infinity loop for 2 device communicate UART .all work seem be ok , but after few minutes, MCU dont' reply anything although NRF51822 send request sucessfully. i try reset NRF and everything work agian., i checked and realized nothing byte was response from MCU. so event UART DATA READY in UART handle event dont' be run.now my program is on sd_event_wait to wait interrupt.
so what have i do when this happen?. i try soft reset by NVIC_RESTSYSTEM, but i dont' know when and where to use this function,