sdk 16.0 52833 SD s140 standard setup
In the code set the stop nrf_cli_process works as the variable internal.flag.processing shows a value of zero
The problem
The nrf_cli.c variable internal.flag.processing is always set to 1 when the rf_cli_uninit(p_cli); call is run
I do not see where or how it can get set or why
what is the proper way to stop and uninit the CLI
Already noted
https://devzone.nordicsemi.com/f/nordic-q-a/69210/exit-cli-and-start-logging
https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/new-command-line-interface-part-1
seems like the code is stuck in
and will not complete the
call
Code set
// stop nrf_cli_process
cli_uart_set_state (false);
nrf_delay_ms(500);
ret_code_t err_code = nrf_cli_stop(p_cli);
APP_ERROR_CHECK(err_code);
// This is to allow cli_processing to complete before stopping cli
// this doesn't work before or after the nrf_cli_stop
//nrf_delay_ms(500);
//cli_uart_set_state (false);
err_code = nrf_cli_uninit(p_cli);
NRF_LOG_WARNING("c ec %d", err_code);
APP_ERROR_CHECK(err_code);
// This is to delay for the main.c cli_processing to complete before stopping cli