feat(cli): added support for usb-serial-jtag console#76
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
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-JTAGas the default console output port (instead of the secondary output port which is default).Further Note: you may need to press
enteronce to get the console to show when running under this config if you do not explicitly callconfigure_stdin_stdoutat 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):
Types of changes
Checklist:
Software
.github/workflows/build.ymlfile to add my new test to the automated cloud build github action.