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

Retargeting printf under SEGGER Embedded Studio

Hi all,

I'm currently trying to get the UART example (no SoftDevice) to work under Segger Embedded Studio. What I know is, that retarget.c is used to redefine the neccesary functions for printf (stdio).

app_uart_get and app_uart_put work absolutely fine. However, printf is not working. Compiling the example in Embedded Studio results in the following errors:

storage size of '__stdout' isn't known storage size of '__stdin' isn't known

Commenting the FILE __stdout and FILE __stdin lines out gets compilation running however printf doesn't work.

Does anyone can help me with that?

Thank you!

Martin

Related