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

UART close and open(reinit)

Hello, I am using nrf52810 and S112 Softdevice.

After initializing uart, use uart close for uart sleep.

Then the uart close will be checked.

I want to make an uart init and bring it back to life.

What is the method?

Thank you.

Parents Reply
  • I see, What error do you get when you call the uart_init the second time? You should be able to start your application in the debugger and be able to see which function fails the second time.

    I think the app_uart_FIFO helper macros are not designed to aid the re-initialization part, if this is the case then we need to edit the helper macros to make them work with the reinitialization. 

    Can you please provide me exactly where the call for unit_init fails? and what error does app_uart_init gives when it called the second time during the reinit process?

Children
Related