Hi all.
all my examples for the nRF52840 DK 15.0.0 build correctly except for all the UART and serial examples which has 1 error
The error is "Conflicting types for 'put_char'
the function with the error below :
int __putchar(int ch, FILE * p_file) { UNUSED_PARAMETER(p_file); UNUSED_VARIABLE(app_uart_put((uint8_t)ch)); return ch; }
And it mentions that it was previously declared here
// Macro version of putchar. #ifndef __PRINTF_TAG_PTR_DEFINED #define __PRINTF_TAG_PTR_DEFINED typedef struct __printf_tag *__printf_tag_ptr; #endif int __putchar(int, __printf_tag_ptr); #define putchar(x) __putchar(x, 0)
Do I need to remove something?
Thanks in advance