Skip to content

Add --enable-sdi-print and --watch-serial options to the reset command#120

Open
anydream wants to merge 1 commit into
ch32-rs:mainfrom
anydream:pr-reset-sdi
Open

Add --enable-sdi-print and --watch-serial options to the reset command#120
anydream wants to merge 1 commit into
ch32-rs:mainfrom
anydream:pr-reset-sdi

Conversation

@anydream

Copy link
Copy Markdown

Summary

Extends the reset command with the same SDI print functionality already available in the flash command, allowing users to enable SDI print output or open the SDI serial monitor after a reset without needing to flash firmware.

Usage

# Reset and enable SDI print, then connect to the serial port manually
wlink reset --enable-sdi-print

# Halt, enable SDI print, and watch serial output directly
wlink reset halt --enable-sdi-print --watch-serial

# Reset-and-run with SDI print monitoring
wlink reset run --enable-sdi-print --watch-serial

Motivation

Previously, enabling SDI print required flashing firmware (wlink flash --enable-sdi-print firmware.bin), which is unnecessary when the target already has the correct firmware. This change makes the reset command a standalone entry point for SDI print workflows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant