This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nRF SDK UART peripheral

Hi I am new to the SDK and I am working through the examples.  I am currently looking at the UART example under examples/peripheral. Iam seeing that both the virtual comm port and UART on P0.06 and P0.08 is doing the same thing.  I am struggling to see where I can turn of either the virtual comm port UART or the UART on P0.06 AND P0.08.  Also the activation of instances is somewhat confusing to me.  Can someone explain to me what needs to be activated in the sdk_config.h to have only one uart active at a time?

Parents
  • Iam seeing that both the virtual comm port and UART on P0.06 and P0.08 is doing the same thing

    Not sure what you mean by that.

    The virtual COM port is what connects the nRF chip's physical UART (on pins P0.06 and P0.08) to the PC - so that you can interact with it using  a terminal - so they will necessarily be "doing the same thing" ?

              PC                                           Dev Kit
      +-------------------------------------+         +-------------------------------------+
      |                                     |         |                                     |
      |    ............      ............   |         |   .............      ............   |
      |    :          :----->:          :   |         |   :           :----->:          :   |
      |    : terminal :      : virtual  :   |   USB   |   : interface :      : nRF52840 :   |
      |    :   app    :      : com port :<===============>:   chip    :      :          :   |
      |    :          :<-----:          :   |         |   :           :<-----:          :   |
      |    ............      ............   |         |   .............      ............   |
      |                                     |         |                                     |
      +-------------------------------------+         +-------------------------------------+
      

Reply
  • Iam seeing that both the virtual comm port and UART on P0.06 and P0.08 is doing the same thing

    Not sure what you mean by that.

    The virtual COM port is what connects the nRF chip's physical UART (on pins P0.06 and P0.08) to the PC - so that you can interact with it using  a terminal - so they will necessarily be "doing the same thing" ?

              PC                                           Dev Kit
      +-------------------------------------+         +-------------------------------------+
      |                                     |         |                                     |
      |    ............      ............   |         |   .............      ............   |
      |    :          :----->:          :   |         |   :           :----->:          :   |
      |    : terminal :      : virtual  :   |   USB   |   : interface :      : nRF52840 :   |
      |    :   app    :      : com port :<===============>:   chip    :      :          :   |
      |    :          :<-----:          :   |         |   :           :<-----:          :   |
      |    ............      ............   |         |   .............      ............   |
      |                                     |         |                                     |
      +-------------------------------------+         +-------------------------------------+
      

Children
No Data
Related