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

Why is NRF_LOG_DEFAULT_BACKENDS_INIT causing INVALID_STATE error when calling nrf_cli_init?

I tried to use UART both for NRF_LOG and NRF_CLI. Now it's running but I had a problem that calling to nrf_cli_init caused fatal error 8 - INVALID_STATE.

When I commented out the NRF_LOG_DEFAULT_BACKENDS_INIT, the error disappeared and now both LOG and CLI are working.

Why?

Parents
  • FormerMember
    0 FormerMember

    NRF_CLI_UART_xxx sets the settings for enabling logging in the CLI module. You will also need the following to enable the command line interface and the log module:

     

    Enabling the settings NRF_CLI_LOG_BACKEND and NRF_LOG_CLI_CMDS are important to for the CLI module and the LOG module to co-exist.

Reply
  • FormerMember
    0 FormerMember

    NRF_CLI_UART_xxx sets the settings for enabling logging in the CLI module. You will also need the following to enable the command line interface and the log module:

     

    Enabling the settings NRF_CLI_LOG_BACKEND and NRF_LOG_CLI_CMDS are important to for the CLI module and the LOG module to co-exist.

Children
Related