Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs

nRF5 SDK 17.1.0 examples is not compiling in latest SES (6.20a)

e.g, when compiling ble_app_hrs I get:

7> Compiling ‘cc310_backend_eddsa.c’
4> C:\nRF\nRF5SDK\external\segger_rtt\SEGGER_RTT_Syscalls_SES.c:76:10: fatal error: __vfprintf.h: No such file or directory
4> 76 | #include "__vfprintf.h"

Should I downgrade SES or is there any better solution to get a quick start?

  • Same problem here and I have downgraded back to v5.68

  • Hi,

    There has been a change in recent Segger Embedded Studio versions that require you to remove the SEGGER_RTT_Syscalls_SES.c file from the project. With that, it should build as expected. For reference, this is mentioned in the Embedded Studio Library IO documentation:

    Note: Older projects might include SEGGER_RTT_Syscalls_SES.c or a similar file to override printf(). When using the SEGGER Runtime Library, this file should be removed from the project, or its content should be encapsulated with #if !defined(__SEGGER_RTL_VERSION) ... #endif

  • Thx for explanation

  • Hi Einar,

    I am also having the same issue while i builf "ble_app_blinky"

    __vfprintf.h: No such file or directory in segger v6.20

    when i delete SEGGER_RTT_Syscalls_SES.c file from the project it build successful.

    I can't understand the purpose of this SEGGER_RTT_Syscalls_SES.c 

    where it will use while debugging ? 

    if i build the same project without SEGGER_RTT_Syscalls_SES.c  in segger v5.68 . it build successful 

    where i want to use #if !defined(__SEGGER_RTL_VERSION) ... #endif

  • also while build ble_app_uart example

    Building ‘ble_app_uart_pca10040_s132’ from solution ‘ble_app_uart_pca10040_s132’ in configuration ‘Debug’[0m
    8> Compiling ‘retarget.c’[0m
    8> D:\nRF5x\SDK_17.1.0\components\libraries\uart\retarget.c:101:23: error: unknown type name '__printf_tag_ptr'[0m
    8> 101 | int __putchar(int ch, __printf_tag_ptr tag_ptr)[0m
    8> | ^~~~~~~~~~~~~~~~[0m
    Build failed[0m

1 2 3