Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'wlink regs' resumes the CPU #65

Open
OpusElectronics opened this issue May 24, 2024 · 1 comment
Open

'wlink regs' resumes the CPU #65

OpusElectronics opened this issue May 24, 2024 · 1 comment

Comments

@OpusElectronics
Copy link

OpusElectronics commented May 24, 2024

Context:

[INFO] Connected to WCH-Link v2.9(v29) (WCH-LinkE-CH32V305)
[INFO] Attached chip: CH32V30X [CH32V307VCT6] (ChipID: 0x30700528)

If the CPU is halted with:
wlink halt

then dumping registers with:
wlink regs

does resume the CPU. Not sure if this an intended behavior, but it bit me.

@andelf
Copy link
Contributor

andelf commented May 24, 2024

A preferred way to fix this is to provide an in-app shell, holding the USB(probe) connection, making halt, regs a command.
When cmd exits it detaches.
No idea if --no-detach can fix this.

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

No branches or pull requests

2 participants