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

'NRF_CLI_CMD_BUFF_SIZE' undeclared here (not in a function); did you mean 'NRF_CLI_RX_BUFF_SIZE'?

Hello.

I take the flash_fds example from nRF5_SDK_15.2.0_9412b96, but I am not going to use the CLI (command line interface) because I take the FLASH written, reading capability and doesn't use the CLI (does it mandatory for the example to work?). I didn't have the CLI part defines in the sdk_config.h so all the functions relate to not active (and I check it). but I still get the error for undefined NRF_CLI_CMD_BUFF_SIZE which not exist in the sdk_config.h but no one need it . What does it mean not in a function

I try to copy all the CLI defines to my sdk_config.h and do this #define NRF_CLI_ENABLED 0 and now I get this message error cannot find run section .cli_sorted_cmd_ptrs_run referenced in cli_sorted_cmd_ptrs which also don't use in an active functions. 

Who still need them and what can I do to get out of those errors?

Thanks

Bar.

Parents
  • Hi,

    It is not enough to disable CLI because other modules may youse it like queue or balloc. Henc you need to disable for instace: NRF_BALLOC_CLI_CMDS 0

    I've just successfully get rid of CLI module from: examples\peripheral\flash_fds\pca10056\blank\ses

    My steps:

    1. I've disabled all CLI related defines in sdk_config 

    2. I've removed cli.c from the example and moved 2 functions from cli.c to the main.c file: record_delete and record_delete_next.

    3. Inside function record_delete  I have replaced nrf_cli_fprintf with NRF_LOG_INFO.

    Errors you see cannot find run section .cli_sorted_cmd_ptrs_run referenced in cli_sorted_cmd_ptrs are related to linker sections reserved for CLI commands. It means that despite CLI is not used some modules are defining CLI commands (like Balloc).

Reply
  • Hi,

    It is not enough to disable CLI because other modules may youse it like queue or balloc. Henc you need to disable for instace: NRF_BALLOC_CLI_CMDS 0

    I've just successfully get rid of CLI module from: examples\peripheral\flash_fds\pca10056\blank\ses

    My steps:

    1. I've disabled all CLI related defines in sdk_config 

    2. I've removed cli.c from the example and moved 2 functions from cli.c to the main.c file: record_delete and record_delete_next.

    3. Inside function record_delete  I have replaced nrf_cli_fprintf with NRF_LOG_INFO.

    Errors you see cannot find run section .cli_sorted_cmd_ptrs_run referenced in cli_sorted_cmd_ptrs are related to linker sections reserved for CLI commands. It means that despite CLI is not used some modules are defining CLI commands (like Balloc).

Children
No Data
Related