This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

nRF51 Stop/Start UART function to save energy

Hi. I'm using PCA10028, SDK10.0.0, S130.

Q1. I want UART to start or stop whenever I want. It's to save current consumption. There is "uart_init()" for reference, but I don't know how to stop it.

Q2. As I've tested, uart_init() function time is almost 340mSec right after system power on. I want faster UART start time after UART stop.

I need your help.

Parents
  • Hi,

    I am using APP_UART_FIFO_INIT function (SDK 11) for initilizing the UART. For un-initializing it I tried both app_uart_close and nrf_drv_uart_uninit but still after calling the initialization function the err_code is so that it restarts the device. Currently I am using NVIC_SystemReset to reset the device after disconnecting from UART and to be able to initialize it again. Is there any better solution?

Reply
  • Hi,

    I am using APP_UART_FIFO_INIT function (SDK 11) for initilizing the UART. For un-initializing it I tried both app_uart_close and nrf_drv_uart_uninit but still after calling the initialization function the err_code is so that it restarts the device. Currently I am using NVIC_SystemReset to reset the device after disconnecting from UART and to be able to initialize it again. Is there any better solution?

Children
No Data
Related