Kévin Redon | 69b92d9 | 2019-01-24 16:39:20 +0100 | [diff] [blame] | 1 | ============ |
| 2 | USB CDC ECHO |
| 3 | ============ |
| 4 | |
| 5 | This demo behaves like a virtual COM port based on USD device CDC. It echoes |
| 6 | back bytes received from the console. |
| 7 | |
| 8 | Drivers |
| 9 | ------- |
| 10 | * USB Device |
| 11 | |
| 12 | Supported Evaluation Kit |
| 13 | ------------------------ |
| 14 | * SAM D21 Xplained Pro |
| 15 | * SAM DA1 Xplained Pro |
| 16 | * SAM R21 Xplained Pro |
| 17 | * SAM D11 Xplained Pro |
| 18 | * SAM L21 Xplained Pro |
| 19 | * SAM L22 Xplained Pro |
| 20 | * SAM V71 Xplained Ultra |
| 21 | * SAM E70 Xplained |
| 22 | * SAM G55 Xplained Pro |
| 23 | * SAM E54 Xplained Pro |
| 24 | |
| 25 | Interface Settings |
| 26 | ------------------ |
| 27 | * No extra board or wire connection is needed. |
| 28 | * The enumerated serial port does not bridge to any specific USRT hardware but |
| 29 | simply loopback data, so whatever serial port setting works. |
| 30 | |
| 31 | Running the Demo |
| 32 | ---------------- |
| 33 | |
| 34 | 1. Download the selected example, or export the example to save the .atzip file. |
| 35 | 2. Import .atzip file into Atmel Studio 7, File->Import->Atmel Start Project. |
| 36 | 3. Build and flash into supported evaluation board. |
| 37 | 4. Connect PC host and TARGET USB plug with a USB cable. |
| 38 | 5. Press the RESET button. |
| 39 | 6. The serial port is detected by host PC. On Linux the driver will be installed |
| 40 | automatically. On Windows The INF and CAT file required can be extracted from |
| 41 | .atzip or found in generated Atmel Studio 7 project folder, relatively at |
| 42 | ./usb/class/cdc/device. |
| 43 | 7. Open the detected/enumerated serial port using a serial port monitor |
| 44 | (e.g., TeraTerm). |
| 45 | 8. Whatever sent from the serial port monitor will be echoed back then. |