pyOCD icon indicating copy to clipboard operation
pyOCD copied to clipboard

pyocd fails to write cortex_m0 / hk32f030mf4p6 chip after upgrade to 0.36

Open bmigette opened this issue 1 year ago • 3 comments

Hi, Was trying to upgrade a controller with the following commands:

pyocd erase -c -t hk32f030mf4p6 --config ./pyocd.yaml
pyocd load ./Project/MDK5/Objects/LCM_Light_Control_IO_WS2812_New.hex -t hk32f030mf4p6 --config ./pyocd.yaml

The pack and config files above are in this repository: https://github.com/surfdado/floatwheel/tree/main/LCM

The first erase went fine, however all subsequent erase and load command were failing with the following error:

0000875 I Erasing chip... [eraser]
0001000 W T bit in XPSR is invalid; the vector table may be invalid or corrupt [cortex_m]
0001032 C target was not halted as expected after calling flash algorithm routine (IPSR=3) [__main__]

After downgrading to 0.34.3, I was able to erase and load binary file

bmigette avatar Nov 25 '23 13:11 bmigette

I can confirm this issue

AmirrezaFiroozi avatar Mar 25 '24 22:03 AmirrezaFiroozi

I'm with a similar issue. My workaround is to use 2 python environments, one with the latest (0.36.0) for some devices from ST and another one with the last version that worked with my specific device from Silabs (0.34.3).

hagibr avatar Jul 29 '24 17:07 hagibr