This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

UART

Hi,

is there any Example to use the UART ? I need an monitor while the application is running, is the UART COM Port the right one for this?

Is there an example with the app_uart?

Best regards Nils

Parents
  • @Yalcim , connecting to printf is fairly well explained in the Keil documentation, but I don't know how to do it for GCC.

    Although not a perfect solution, if you have simple_uart_putstring() working, then you can do this:

    [b] uint8_t text_buffer[128];

    sprintf( text_buffer, "Formatted answer  %8d   %8.3f\n\r",
                            intvar,  floatvar);
    
    simple_uart_putstring( text_buffer );[/b]
    
  • @Philip, I tried using sprintf(). I confirmed that no problem about int type. but, the float type of the %f don't be seen on screen. How can I solve this problem?

Reply Children
No Data
Related