Problem with Basic UARTE Usage

Hello,

I have been trying to get the UART working with EasyDMA on the NRF52832 development kit. I did have some success yesterday, but it's not working again today for some reason. I have no idea if I am missing some config parameters, but the code keeps branching to the UART_RX_BUF_REQUEST and the UART_RX_BUF_RELEASED events on my registered UART callback, which is strange because the RX line is not connected to anything. I am currently executing a loop to continuously transmit a few bytes over the UART, but it never gets to the UART_TX_DONE or the UART_TX_ABORTED callback events. Note that I do see a small single 10ms pulse on the TX line, but that is all.

I want to use the UART with a simple TX/RX functionality, the LPUART example will not work with just 2 lines and uses the LPUART driver versus the NRF UART driver. Any help would be great, this has become a blocking item for me in my development.

Thanks for your help.

Pam

Parents Reply Children
  • Hi Sigurd,

    I was really looking for an example of the API usage. I sort of struggled through most of this myself looking at various examples in the SDK code tree. The "peripheral UART" one was helpful, but it was only a polling approach and I think I need more of an interrupt driven design. 

    I managed to get most of it working similar to the "UART Driver Sample", but I still have to figure out usage of the TX interrupt part of the design. Hopefully this is enough to get me what I need, I'll let you know if I have any more questions on this subject.

    Thanks so much for the help.

    Regards,

    Pam

Related