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

conflicting types for '_putchar'

Hello,

There's a problem compiling the standard ble_app_uart_pca10040_s132 in Segger Embedded Studio for ARM V3.40.  The UART example is straight out of nRF5_SDK_14.2.0_17b948a.

The exact same example can be compiled OK in SES V3.34.

The error message in V3.40 is 

conflicting types for '__putchar'

retarget.c

previous declaration of '__putchar' was here

That line points to stdio.h declaration of __puchar

Parents Reply
  • Hi,

    I would not go as far as to say that Segger broke anything. SDK 15.0.0 was tested and verified using SES 3.34, and so that is the version supported. We do not (and for obvious reasons can not) guarantee forwards compatibility with development tools, and hence we always recommend the versions listed in the release notes for the particular version of the SDK.

    However, things tend to work with other toolchain versions, and that is great! In the rare occasions when we get toolchain compatibility issues we do our best to provide a workaround, as was done by in this thread. We do know that for some of you being able to run on a different version of the toolchain matters.

    Regards,
    Terje

Children
Related