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
  • I need also help to send printf outputs via UART to a serial terminal.

    I am also working on Eclipse + GCC environment and using Evaluation Kit and my BLE application uses S110_SoftDevice.

    questions are:

    • Which uart- support files from Nordic S. SDK are to add to the build?
    • How to connect (printf -- putc)?
    • Which way make more sense? Using either USB (COMx) or other GPIOs as UART output?

    Yalcin

  • You just need to add simple_uart.c to your project and include simple_uart.h headers.

    I generally use:

    simple_uart_putstring("Some text\r\n");

    To send my debugging output.

    If you're using the nRF51822-EK, configure the onboard USB UART with:

    simple_uart_config (0, 9, 0, 11, false):

    And set your baud rate on your terminal program to 38.4K and find the USB CDC serial port that should appear.

    I'm embarrassed to say that I didn't even clue-in to the onboard CDC emulation at first :-/

    Hope that helps.

    -m

Reply
  • You just need to add simple_uart.c to your project and include simple_uart.h headers.

    I generally use:

    simple_uart_putstring("Some text\r\n");

    To send my debugging output.

    If you're using the nRF51822-EK, configure the onboard USB UART with:

    simple_uart_config (0, 9, 0, 11, false):

    And set your baud rate on your terminal program to 38.4K and find the USB CDC serial port that should appear.

    I'm embarrassed to say that I didn't even clue-in to the onboard CDC emulation at first :-/

    Hope that helps.

    -m

Children
No Data
Related