hi all!
when i tried to compile the uart nordic example in embedded studio,
i get "conflicting types for '__putchar' ".
i check this example on IAR and it's work fine.
for my understanding the problem is that in <stdio.h> the decleration of this function is:
int __putchar(int, __printf_tag_ptr);
and in "retarget.c" the definition is:
int __putchar(int ch, FILE * p_file)
and this definition is only for embedded studio.
can anyone can help me?
what i need to do to solve this?
(i forgot to mention that function use for printf)
good day!
yoav
when i tried to compile the uart nordic example in embedded studio,
i get "conflicting types for '__putchar' ".
i check this example on IAR and it's work fine.
for my understanding the problem is that in <stdio.h> the decleration of this function is:
int __putchar(int, __printf_tag_ptr);
and in "retarget.c" the definition is:
int __putchar(int ch, FILE * p_file)
and this definition is only for embedded studio.
can anyone can help me?
what i need to do to solve this?
(i forgot to mention that function use for printf)
good day!
yoav