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

Exit CLI and start Logging

I have a working project that uses the NRF_LOG module to send debug outputs over the UART backend. When just using the logging module everything works correctly.

I added the CLI module for use in a manufacturing mode and I'd like to disable the CLI after manufacturing mode has been exited. I can successful stop and uninit the CLI. After that I call NRF_LOG_DEFAULT_BACKENDS_INIT() so I can use the logging module with the same UART backend. After I print a few logs I get the following error -

<error> app: ERROR 17 [NRF_ERROR_BUSY] at C:\Nordic_Semi\nRF5SDK160098a08e2\components\libraries\log\src\nrf_log_backend_uart.c:83

PC at: 0x00000907

<error> app: End of error report

I modified the CLI example to demonstrate this behavior and have attached it here. I'm using nRF5 SDK v16.0.0. Is there something else that needs to be done to use the logging module after disabling the CLI?

7024.cli-exit.zip

Parents Reply Children
No Data
Related