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

BUG?:UART_INTENSET_RXTO dosen't work

Hi All, I tried to use the nRF51422 device UART RXTO events using nrf51 SDK v6.1. I set the NRF_UART0->INTENSET in app_uart_init() as following:

// Enable UART interrupt
NRF_UART0->INTENCLR = 0xffffffffUL;
NRF_UART0->INTENSET = (UART_INTENSET_RXDRDY_Set << UART_INTENSET_RXDRDY_Pos) |
                      (UART_INTENSET_TXDRDY_Set << UART_INTENSET_TXDRDY_Pos) |
                      (UART_INTENSET_ERROR_Set << UART_INTENSET_ERROR_Pos) |
			          (UART_INTENSET_RXTO_Set << UART_INTENSET_RXTO_Pos) ;

I expected the NRF_UART0->INTENSET should be set as 0x20284, because I found the following defines in nrf51_bitfields.h

#define UART_INTENSET_RXTO_Pos (17UL) /*!< Position of RXTO field. */
#define UART_INTENSET_ERROR_Pos (9UL) /*!< Position of ERROR field. */
#define UART_INTENSET_TXDRDY_Pos (7UL) /*!< Position of TXDRDY field. */
#define UART_INTENSET_RXDRDY_Pos (2UL) /*!< Position of RXDRDY field. */

however, I found the NRF_UART0->INTENSET was set as 0x0284.

Then II tested to set the NRF_UART0->INTENSET = 0xFFFFFFFFUL, the NRF_UART0->INTENSET just became 0x1FFFF; Is this a bug for NRF_UART0->INTENSET ? How can I make the UART RXTO events run?

Parents
  • Dear Sir, Thanks for your answer. The latest nRF51 available is v6.1. I reconfirmed this problem on nRF51 v6.1. It is still no way to set INTENSET to 0x00020000.

    Maybe, I have to wait your nRF51 SDK 7.2 released to resolve this problem.

    I noticed there are different version samples for “uart_example”. The old version included the RXTO, but there is no RXTO in the recent versions. Would you like to tell me if there is any problem with RXTO?

    Best Regards, Tei.

Reply
  • Dear Sir, Thanks for your answer. The latest nRF51 available is v6.1. I reconfirmed this problem on nRF51 v6.1. It is still no way to set INTENSET to 0x00020000.

    Maybe, I have to wait your nRF51 SDK 7.2 released to resolve this problem.

    I noticed there are different version samples for “uart_example”. The old version included the RXTO, but there is no RXTO in the recent versions. Would you like to tell me if there is any problem with RXTO?

    Best Regards, Tei.

Children
No Data
Related