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

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

Open
bmigette opened this issue Nov 25, 2023 · 1 comment
Open

Comments

@bmigette
Copy link

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

@AmirrezaFiroozi
Copy link

I can confirm this issue

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