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

Undefined reference to SEGGER_RTT_printf, why?

HEllo I am having an error saying

Undefined reference to SEGGER_RTT_printf

I have looked into this post and tried it, however I am not able to fix it,I have defined GLOBAL_DEBUG on my preprocessor settings but the linker seems to complain.

what can I do to solve it?

image description

  • Hi,

    Try to define NRF_LOG_USES_RTT = 1 instead of GLOBAL_DEBUG. Also try to set NRF_LOG_BACKEND_SERIAL_USES_RTT to 1 in sdk_config.h. See this post here for more information.


    Since you are using Segger embedded studio, you should also replace the RTT_Syscalls_KEIL.c file with SEGGER_RTT_Syscalls_SES.c. You can find the file in your SES folder, e.g. C:\Program Files\SEGGER\SEGGER Embedded Studio 3.10f\samples

Related