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

NRF_LOG() / CLI problem - NRF_CLI_CMD_BUFF_SIZE is undefined

Hi All,

I am working on  ISP1507 which is based on NRF52832. My IDE is Keil V5.26.2.0.  I have had the following problem in the UART example (pca10040e) from SDK 15.0.0. I am fairly new working with all these. 

I was trying to amend the UART example according to my needs. However at some point, the application started to reset continuously due an error that I could not have defined. After some research I have found that I have to check the error log written to SEGGER RTT by NRF_LOG (please correct me if I am wrong). I have then tried to get the NRF_LOG working according to the instructions I have found here. However I have stuck.

I have included the necessary ".h" files and their paths. I have also added the ".c" files under "nRF_Libraries" (under "Groups" in "Manage Project Items"). The files I have added, includes some other files which were not initially found by the compiler however, I have gradually added every single missing file. However in the last file I have added, nfc_cli.h, there is a missing MACRO, NRF_CLI_CMD_BUFF_SIZE, and I could not have overcome this one. Where is it defined? What else should I include?

Thanks,

D

Parents
  • Define NRF_CLI_CMD_BUFF_SIZE shall be defined in sdk_config.h file. Please check CLI example:

    nrf5\examples\peripheral\cli

  • Hi again,

    I have added it manually. That one solved. Then I had to add NRF_CLI_PRINTF_BUFF_SIZE too, which I have. Now I am having something bigger. Please see below. 

    Is this how I should get NRF_LOG working for the uart example or am I missing something fundamental?

    Thanks,

    D

    .\_build\nrf52810_xxaa.axf: Error: L6218E: Undefined symbol nrf_atomic_flag_clear_fetch (referred from nrf_log_frontend.o).
    .\_build\nrf52810_xxaa.axf: Error: L6218E: Undefined symbol nrf_atomic_flag_set (referred from nrf_log_frontend.o).
    .\_build\nrf52810_xxaa.axf: Error: L6218E: Undefined symbol nrf_atomic_u32_add (referred from nrf_log_frontend.o).
    .\_build\nrf52810_xxaa.axf: Error: L6218E: Undefined symbol nrf_atomic_u32_fetch_store (referred from nrf_log_frontend.o).
    .\_build\nrf52810_xxaa.axf: Error: L6218E: Undefined symbol nrf_cli_fprintf (referred from nrf_log_frontend.o).
    .\_build\nrf52810_xxaa.axf: Error: L6218E: Undefined symbol nrf_cli_help_print (referred from nrf_log_frontend.o).
    .\_build\nrf52810_xxaa.axf: Error: L6218E: Undefined symbol nrf_memobj_alloc (referred from nrf_log_frontend.o).
    .\_build\nrf52810_xxaa.axf: Error: L6218E: Undefined symbol nrf_memobj_get (referred from nrf_log_frontend.o).
    .\_build\nrf52810_xxaa.axf: Error: L6218E: Undefined symbol nrf_memobj_pool_init (referred from nrf_log_frontend.o).
    .\_build\nrf52810_xxaa.axf: Error: L6218E: Undefined symbol nrf_memobj_put (referred from nrf_log_frontend.o).
    .\_build\nrf52810_xxaa.axf: Error: L6218E: Undefined symbol nrf_memobj_write (referred from nrf_log_frontend.o).

Reply
  • Hi again,

    I have added it manually. That one solved. Then I had to add NRF_CLI_PRINTF_BUFF_SIZE too, which I have. Now I am having something bigger. Please see below. 

    Is this how I should get NRF_LOG working for the uart example or am I missing something fundamental?

    Thanks,

    D

    .\_build\nrf52810_xxaa.axf: Error: L6218E: Undefined symbol nrf_atomic_flag_clear_fetch (referred from nrf_log_frontend.o).
    .\_build\nrf52810_xxaa.axf: Error: L6218E: Undefined symbol nrf_atomic_flag_set (referred from nrf_log_frontend.o).
    .\_build\nrf52810_xxaa.axf: Error: L6218E: Undefined symbol nrf_atomic_u32_add (referred from nrf_log_frontend.o).
    .\_build\nrf52810_xxaa.axf: Error: L6218E: Undefined symbol nrf_atomic_u32_fetch_store (referred from nrf_log_frontend.o).
    .\_build\nrf52810_xxaa.axf: Error: L6218E: Undefined symbol nrf_cli_fprintf (referred from nrf_log_frontend.o).
    .\_build\nrf52810_xxaa.axf: Error: L6218E: Undefined symbol nrf_cli_help_print (referred from nrf_log_frontend.o).
    .\_build\nrf52810_xxaa.axf: Error: L6218E: Undefined symbol nrf_memobj_alloc (referred from nrf_log_frontend.o).
    .\_build\nrf52810_xxaa.axf: Error: L6218E: Undefined symbol nrf_memobj_get (referred from nrf_log_frontend.o).
    .\_build\nrf52810_xxaa.axf: Error: L6218E: Undefined symbol nrf_memobj_pool_init (referred from nrf_log_frontend.o).
    .\_build\nrf52810_xxaa.axf: Error: L6218E: Undefined symbol nrf_memobj_put (referred from nrf_log_frontend.o).
    .\_build\nrf52810_xxaa.axf: Error: L6218E: Undefined symbol nrf_memobj_write (referred from nrf_log_frontend.o).

Children
Related