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 Children
  • Hi,

    Thanks for pointing that out.

    At the time we did not have official SES support in the SDK, and so there was no release note recommendation available. Now that we do have official SES support the recommendation is to use the version for which the SDK release was tested and verified.

    If there is no statement of supported version then using the latest version is usually the best bet, and if that does not work you may find a solution through DevZone.

    Regards,
    Terje

Related