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

Debugging method #79

Open
kienvo opened this issue Feb 21, 2025 · 0 comments
Open

Debugging method #79

kienvo opened this issue Feb 21, 2025 · 0 comments

Comments

@kienvo
Copy link
Member

kienvo commented Feb 21, 2025

I was able to debug the firmware using a WCH-linkE connected to PB14/PB15 (SWDIO/SWDCLK).

Image

Before using the debug port:

  • Enable debug port by wchisp config enable-debug and wchisp config unprotect while in the isp mode (bootloader). Firmware flash will be erased.
  • Cut the trace of PB14/PB15 to the LED, and connect it to the WCH-linkE dongle. For more details see Correcting the debug port badgemagic-hardware#31.
  • Flash the firmware to 0x00000000 using wlink and the WCH-linkE dongle over the debug port.

Further details need to be investigated to set up OpenOCD.

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

1 participant