pyOCD icon indicating copy to clipboard operation
pyOCD copied to clipboard

Regression: "target was not halted as expected..." - for pyocd 0.36 versions

Open prosper00 opened this issue 1 month ago • 0 comments

I've recently noticed some issues with 0.36 release (also the 0.36-dev) series. Reverting to an earlier version of pyocd (in this case, 0.35-dev), and everything flashes (and functions) as expected.

[the pyocd.yaml file specifies the .pack to use, I'm using the one from https://github.com/IOsetting/hk32f030m-template/tree/main/Misc]

Also see https://github.com/pyocd/pyOCD/issues/1646

~/Embedded/HK32F030M-base/Projects/blink$ python3 -m pipx install git+https://github.com/pyocd/pyOCD.git
  installed package pyocd 0.36.1.dev2, installed using Python 3.11.9
  These apps are now globally available
    - pyocd
    - pyocd-gdbserver
done! ✨ 🌟 ✨
~/Embedded/HK32F030M-base/Projects/blink$ make flash
pyocd erase -c -t hk32f030mf4p6 --config ./Misc/pyocd.yaml
0001218 I Erasing chip... [eraser]
0001580 I Chip erase complete [eraser]
pyocd load ./Build/blink.hex -t hk32f030mf4p6 --config ./Misc/pyocd.yaml
0001203 I Loading /home/bdroy/Embedded/HK32F030M-base/Projects/blink/Build/blink.hex [load_cmd]
0001339 W T bit in XPSR is invalid; the vector table may be invalid or corrupt [cortex_m]
0001417 C target was not halted as expected after calling flash algorithm routine (IPSR=3) [__main__]
make: *** [rules.mk:117: flash] Error 1
~/Embedded/HK32F030M-base/Projects/blink$ pipx uninstall pyocd
uninstalled pyocd! ✨ 🌟 ✨
bdroy@bigfart:~/Embedded/HK32F030M-base/Projects/blink$ python3 -m pipx install git+https://github.com/pyocd/pyOCD.git@develop
  installed package pyocd 0.35.2.dev28, installed using Python 3.11.9
  These apps are now globally available
    - pyocd
    - pyocd-gdbserver
done! ✨ 🌟 ✨
~/Embedded/HK32F030M-base/Projects/blink$ make flash
pyocd erase -c -t hk32f030mf4p6 --config ./Misc/pyocd.yaml
0001192 I Erasing chip... [eraser]
0001559 I Chip erase complete [eraser]
pyocd load ./Build/blink.hex -t hk32f030mf4p6 --config ./Misc/pyocd.yaml
0001213 I Loading /home/bdroy/Embedded/HK32F030M-base/Projects/blink/Build/blink.hex [load_cmd]
[==================================================] 100%
0004799 I Erased 1920 bytes (15 sectors), programmed 1920 bytes (15 pages), skipped 0 bytes (0 pages) at 0.52 kB/s [loader]

prosper00 avatar May 16 '24 03:05 prosper00