feat(wokwi): Add support for using the USB Serial JTAG#421
Merged
Conversation
Member
|
LGTM. Thank you |
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
This pull request adds support for using USB Serial JTAG as the serial interface in Wokwi simulations, alongside comprehensive unit tests and integration into the pytest-embedded workflow. It introduces a new CLI flag, updates diagram processing to support the new interface, and ensures that the original diagram files remain unmodified. Additionally, the changes are well-documented in the README and thoroughly tested.
USB Serial JTAG Support and Diagram Handling:
--wokwi-usb-serial-jtagcommand-line option, allowing users to select USB Serial JTAG instead of UART for serial communication in Wokwi simulations. This is reflected in both the plugin options anddut_factoryinterfaces. [1] [2] [3] [4] [5]Wokwito override the serial interface in diagram files: setsserialInterfacetoUSB_SERIAL_JTAGon the board part and removes$serialMonitorconnections. The modified diagram is written to a temporary file, preserving the original. [1] [2] [3] [4]Testing and Validation:
Integration and Parametrization:
wokwi_usb_serial_jtagparameter, supporting both CLI and parametrized test usage. [1] [2] [3]These changes collectively make it easy to test firmware using USB Serial JTAG in Wokwi, with robust handling and clear user documentation.
Testing
Locally and CI