Skip to content

feat(cli): added support for usb-serial-jtag console#76

Merged
finger563 merged 1 commit intomainfrom
feature/cli-usb-serial-jtag-support
Jun 23, 2023
Merged

feat(cli): added support for usb-serial-jtag console#76
finger563 merged 1 commit intomainfrom
feature/cli-usb-serial-jtag-support

Conversation

@finger563
Copy link
Contributor

@finger563 finger563 commented Jun 23, 2023

Description

  • Updated cli::configure_stdin_stdout() to support both UART console as well as USB-SERIAL-JTAG consoles (for supporting the native usb serial programming port.

Note: you will need to configure the menuconfig of your project to set the USB-SERIAL-JTAG as the default console output port (instead of the secondary output port which is default).
CleanShot 2023-06-23 at 08 33 35

Further Note: you may need to press enter once to get the console to show when running under this config if you do not explicitly call configure_stdin_stdout at the start of your program.

Motivation and Context

By default, the VFS is not configured to use the USB-SERIAL-JTAG port for std::cin / std::cout. Similar to how we configured vfs to use standard UART for stdin/stdout we now configure vfs to use the USB-SERIAL-JTAG for stdin/stdout if it was configured via menuconfig.

How has this been tested?

Running the cli example on a esp32s3 and configuring the menuconfig accordingly

Screenshots (if appropriate, e.g. schematic, board, console logs, lab pictures):

CleanShot 2023-06-23 at 08 32 49

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation Update
  • Hardware (schematic, board, system design) change
  • Software change

Checklist:

  • My change requires a change to the documentation.
  • I have added / updated the documentation related to this change via either README or WIKI

Software

  • I have added tests to cover my changes.
  • I have updated the .github/workflows/build.yml file to add my new test to the automated cloud build github action.
  • All new and existing tests passed.
  • My code follows the code style of this project.

@finger563 finger563 added enhancement New feature or request cli labels Jun 23, 2023
@finger563 finger563 merged commit 22f0b58 into main Jun 23, 2023
@finger563 finger563 deleted the feature/cli-usb-serial-jtag-support branch June 23, 2023 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant