Skip to content

ARMmbed/mbed-os-snippet-Poll

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Poll example

The example transfers bidirectional data between two serial ports, acting as a virtual link.

  1. Example mbed_app.json file (K64F):
{
    "config": {
        "UART1_TX": "D1",
        "UART1_RX": "D0",
        "UART2_TX": "USBTX",
        "UART2_RX": "USBRX"
    }
}
  1. Flash the board, and ensure the target's USB is plugged into the PC (UART2).
  2. Connect second serial port to PC via USB to serial adapter (UART1).
  3. Open two serial consoles (select associated COM ports, transmission speed: 9600 bps).
  4. Reset the target.
  5. Data sent from one console should appear in the other one and vice versa.

Note: You can check the associated serial port using mbedls command (UART2).
Note: Note: On Windows you can check the associated COM port in the Device Manager (UART1).
Note: Please adapt your pins for target different than K64F.

MIRRORED FROM MASTER EXAMPLE SNIPPETS REPOSITORY: mbed-os-examples-docs_only. ANY CHANGES MADE DIRECTLY TO THIS REPOSITORY WILL BE AUTOMATICALLY OVERWRITTEN.

About

A mirrored example snippet from mbed-os-examples-docs_only

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages