Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nrf52 usbd log problem

Hi,

I'm trying to obtain as much information as possible about my usb connection with Nordic chip. I'm working on DK board with nRF840, sdk14 and usbd_msc example. My problem is: when I set APP_USBD_CONFIG_LOG_ENABLED 1 in sdk_config, linker throws error: undefined reference to `m_nrf_log_app_usbd_logs_data_dynamic'  in _build/nrf52840_xxaa/app_usbd.c.o
I tryied to find m_nrf_log_app_usbd_logs_data_dynamic in sdk files using Eclipse tools, but I get nothing.

  • Hello,

    I tried to enable the APP_USBD_CONFIG_LOG_ENABLED, but I didn't get the same error. I couldn't find anywhere in the projects the m_nrf_log_app_usbd_logs_data_dynamic reference either, but I see that it is found in some binary files. Could you please attach the sdk_config.h file that reproduce this error? Then maybe I could try to reproduce the issue here.

     

    Best regards,

    Edvin

  • Hello,

    I didn't get the exact same message as you, but I got something similar. Do you use the file app_usbd.h?

     

    Did you at some point get the message that app_usbd_sof_timestamp_get was not defined (from main.c)? It is used in NRF_LOG_INIT.

    In my case, when I used your sdk_config.h file, it complained about this. It would not be included unless:

    #if ((APP_USBD_CONFIG_PROVIDE_SOF_TIMESTAMP) && (NRF_LOG_ENABLED))

    was true.

    Did you just remove the #if line, or did you define this? (Or did you not encounter it at all?)

     

    If that was not the case, I was not able to reproduce the issue. Maybe you could send the entire project? If you have changed any files from other parts of the SDK than in the project folder, I would need that as well. A quick way to find out is if you copy the project folder to a fresh unzip of the SDK, and you are able to reproduce it there.

     

    What SDK version do you use? SDK14.0/1/2?

Related