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

how to set NRF_LOG_STR_FORMATTER_TIMESTAMP_FORMAT_ENABLED active ?

Hi there

I met an error down below.

nrf_log_str_formatter.c(86): error:  #29: expected an expression

if (RF_LOG_STR_FORMATTER_TIMESTAMP_FORMAT_ENABLED)

nrf_log_str_formatter.c: 0 warnings, 1 error

What is the meaning of expected an expression? It is about the sdk_config.h?

Here is the Nordic r eference.

infocenter.nordicsemi.com/index.jsp

Parents Reply Children
  • Hi sir

    Another question.

    I replace the Nordic example from ble_app_uart sdk_config.h to  direct_test_mode.

    Of course, I also add the header file and enable DTM, but the error occur.

    What is the meaning of the undefined symbol? 

    linking...
    .\_build\nrf52832_xxaa.axf: Error: L6218E: Undefined symbol SEGGER_RTT_Init (referred from nrf_log_backend_rtt.o).
    .\_build\nrf52832_xxaa.axf: Error: L6218E: Undefined symbol SEGGER_RTT_WriteNoLock (referred from nrf_log_backend_rtt.o).
    .\_build\nrf52832_xxaa.axf: Error: L6218E: Undefined symbol nrf_memobj_get (referred from nrf_log_backend_serial.o).
    .\_build\nrf52832_xxaa.axf: Error: L6218E: Undefined symbol nrf_memobj_put (referred from nrf_log_backend_serial.o).
    .\_build\nrf52832_xxaa.axf: Error: L6218E: Undefined symbol nrf_memobj_read (referred from nrf_log_backend_serial.o).
    .\_build\nrf52832_xxaa.axf: Error: L6218E: Undefined symbol nrf_atomic_flag_clear_fetch (referred from nrf_log_frontend.o).
    .\_build\nrf52832_xxaa.axf: Error: L6218E: Undefined symbol nrf_atomic_flag_set (referred from nrf_log_frontend.o).
    .\_build\nrf52832_xxaa.axf: Error: L6218E: Undefined symbol nrf_atomic_u32_add (referred from nrf_log_frontend.o).
    .\_build\nrf52832_xxaa.axf: Error: L6218E: Undefined symbol nrf_atomic_u32_fetch_store (referred from nrf_log_frontend.o).
    .\_build\nrf52832_xxaa.axf: Error: L6218E: Undefined symbol nrf_memobj_alloc (referred from nrf_log_frontend.o).
    .\_build\nrf52832_xxaa.axf: Error: L6218E: Undefined symbol nrf_memobj_pool_init (referred from nrf_log_frontend.o).
    .\_build\nrf52832_xxaa.axf: Error: L6218E: Undefined symbol nrf_memobj_write (referred from nrf_log_frontend.o).
    .\_build\nrf52832_xxaa.axf: Error: L6218E: Undefined symbol nrf_fprintf (referred from nrf_log_str_formatter.o).
    .\_build\nrf52832_xxaa.axf: Error: L6218E: Undefined symbol nrf_fprintf_buffer_flush (referred from nrf_log_str_formatter.o).
    Not enough information to list image symbols.
    Not enough information to list load addresses in the image map.

    Many thanks

  • Hi,

     

    You should add the corresponding .c files to your project. You are lacking the SEGGER_RTT files, memobj, atomic, and fprintf libraries. If you look at one of our ble-examples, they shall have all these already added to their project. I'd recommend that you use that one to see which files you'll need to add to your own project. Note that these libraries needs to be enabled in your sdk_config.h.

     

    Best regards,

    Håkon

Related