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

unable to go into UART interrupt after 6 minutes running

Hello,

I am using nrf51822 doing projects. I met an issuse which is that at the first 6 minutes, it can normaly go into UART interrupt and run subroutine successfully. But after 6 minutes running, it can not go into UART interrupt again. I use Keil uVersion 5 to compile and debug. I would like to know some information as below:

  1. How can I check the parameters about UART configuration when the issue happened.
  2. what approaches I can employ to find the root cause?

Regards Alex

Parents
  • Which functions did you mask out? You are sure that the application is not hitting an error condition and freezes, see here?

    How do you check that the interrupt is not entered? Blinking a LED?

    System parameters do you mean the UART registers? You can see those if you are running the debugger and stops the code. The NRF_UART0->EVENTS_RXDRDY will be set when data is received on the UART, and if interrupt is enabled for this event (should be if you are to enter the interrupt when something is received) then when this is set you should enter the interrupt. You can use PPI to toggle a LED when this event happens.

Reply
  • Which functions did you mask out? You are sure that the application is not hitting an error condition and freezes, see here?

    How do you check that the interrupt is not entered? Blinking a LED?

    System parameters do you mean the UART registers? You can see those if you are running the debugger and stops the code. The NRF_UART0->EVENTS_RXDRDY will be set when data is received on the UART, and if interrupt is enabled for this event (should be if you are to enter the interrupt when something is received) then when this is set you should enter the interrupt. You can use PPI to toggle a LED when this event happens.

Children
No Data
Related