You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Mbed CLI creates a `.uvprojx` file in the projectfiles/uvision folder. You can open the project file with uVision.
521
521
522
+
### Serial terminal
523
+
524
+
You can open a serial terminal to the COM port of a connected Mbed target (usually board) using the `mbed sterm` command. If no COM port is specified, Mbed CLI will attempt to detect the connected Mbed targets and their COM ports.
525
+
526
+
There are various options to `mbed sterm`:
527
+
*`--port <COM port>` to specify system COM port to connect to.
528
+
*`--baudrate <numeric>` to select the communication baudrate, where the default value is 9600.
529
+
*`--echo <on|off>` to switch local echo (default is `on`).
530
+
*`--reset` to reset the connected target by sending Break before opening the serial terminal.
531
+
532
+
You can also set default port, baudrate and echo mode using the `TERM_PORT`, `TERM_BAUDRATE` and `TERM_ECHO` Mbed CLI configuration options.
533
+
534
+
The following shortcuts are available within the serial terminal:
535
+
- Ctrl+b - Send Break (reset target)
536
+
- Ctrl+c - Exit terminal
537
+
- Ctrl+e - Toggle local echo
538
+
- Ctrl+h - Help
539
+
- Ctrl+t - Menu escape key
540
+
-_More shortcuts can be viewed within the serial terminal's help menu (Ctrl+h)._
541
+
542
+
You can also add the `--sterm` option to `mbed compile -f` to compile a new program, flash the program/firmware image to the connected target and then open the serial terminal to it's COM port:
543
+
544
+
```
545
+
$ mbed compile -t GCC_ARM -m K64F -f --sterm
546
+
```
547
+
522
548
## Testing
523
549
524
550
Use the `mbed test` command to compile and run tests.
error("The serial terminal functionality requires that the 'mbed-terminal' python module is installed.\nYou can install mbed-terminal by running 'pip install mbed-terminal'.", 1)
error("The '-f/--flash' option requires that the 'mbed-greentea' python module is installed.\nYou can install mbed-greentea by running 'pip install mbed-greentea'.", 1)
error("The '-f/--flash' option requires that the 'mbed-greentea' python module is installed.\nYou can install mbed-ls by running 'pip install mbed-greentea'.", 1)
error("Unable to reset the target board connected to your system.\nThis might be caused by an old interface firmware.\nPlease check the board page for new firmware.", 1)
0 commit comments