fix: resolve #706 — "No communication port specified" when using ST LINK V2 debugger#807
Conversation
…hen using ST LINK V2 debugger Fixes Autonomy-Logic#706 Signed-off-by: Ân Đoàn <33853760+andoan16@users.noreply.github.com>
…hen using ST LINK V2 debugger Fixes Autonomy-Logic#706 Signed-off-by: Ân Đoàn <33853760+andoan16@users.noreply.github.com>
|
Warning Review limit reached
More reviews will be available in 25 minutes and 20 seconds. Learn how PR review limits work. Your organization has run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
fix: resolve #706 — "No communication port specified" when using ST LINK V2 debugger
Problem
Severity:
High| File:docs/ports/debugger-port.tsThe current debugger port detection logic doesn't properly identify ST LINK V2 debuggers which use SWD interface rather than standard COM ports. This file likely contains the port detection and enumeration logic that needs to be enhanced to detect ST LINK V2 devices.
Solution
Add logic to detect ST LINK V2 devices using their USB vendor/product IDs (STMicroelectronics VID: 0x0483) and handle them appropriately in the port enumeration. Implement special handling for SWD interface devices that don't appear as standard COM ports.
Changes
docs/ports/debugger-port.ts(modified)docs/ports/device-port.ts(modified)Testing