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

Recent versions of PyOCD are broken with the HK32 #14

Open
prosper00 opened this issue May 16, 2024 · 2 comments
Open

Recent versions of PyOCD are broken with the HK32 #14

prosper00 opened this issue May 16, 2024 · 2 comments

Comments

@prosper00
Copy link
Contributor

see pyocd/pyOCD#1646

Workaround is to use versions earlier than 0.36.

Or use https://github.com/probe-rs/probe-rs - supports the hk32f030m, and is quite a bit faster than pyocd anyway.

@IOsetting
Copy link
Owner

Thank you for the information, I am still using 0.34.3 so I didn't notice the issue. probe-rs looks quite nice, I will have a try later.

@prosper00
Copy link
Contributor Author

Yeah, I'm a fan of probe-rs.

The only real issue I have with it is that its GDB stub is somewhat limited (e.g. it doesn't support GDB 'load').

~/Embedded/HK32F030M-base/Projects/blink$ probe-rs download --chip-erase ./Build/blink.elf --chip hk32f030mf4p6
  Erasing ✔ [00:00:00] [--------------------------------------------------------------]      0 B/1.88 KiB @      0 B/s (eta 0s )
  Programming ✔ [00:00:01] [##############################################################] 1.88 KiB/1.88 KiB @ 1.76 KiB/s (eta 0s )
  Finished in 1.467s

~/Embedded/HK32F030M-base/Projects/blink$ probe-rs reset --chip hk32f030mf4p6

pyocd takes about 7 seconds, where probe-rs is 1.5.

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