[SOLVED] uart example - nordic bc832 peripheral - complie error on embedded studio

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • [SOLVED] uart example - nordic bc832 peripheral - complie error on embedded studio

    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
  • Hello yoav,

    Thank you for your inquiry.
    The latest Nordic SDK was tested and verified with V3.34b. We suggest using that version that Nordic Semi recommends.
    In 3.40 have been updates to the compiler version and libraries which can cause incompatibilities.

    Best regards,
    Nino
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.