IOsetting / hk32f030m-template

HSXP HK32F030M template project for GNU Arm Embedded Toolchain
Apache License 2.0
30 stars 3 forks source link

Recent versions of PyOCD are broken with the HK32 #14

Open prosper00 opened 3 months ago

prosper00 commented 3 months ago

see https://github.com/pyocd/pyOCD/issues/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 commented 3 months ago

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 commented 3 months ago

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.