cancel
Showing results for 
Search instead for 
Did you mean: 

vscode+stm32cubeclt+openocd "UNEXPECTED id code" with stm32f103c8t6

haimianxx
Associate

When vscode+stm32cubeclt+openocd was developing stm32f103c8t6, this problem appeared on a board. openocd detects that the board idcode should be 0x1ba01477, but the actual detected idcode is 0x2ba01477. Then I can't burn it or debug it. However, keil can also recognize 0x2ba01477 and can be burned and debugged normally. Related pictures are as follows

haimianxx_0-1730780640659.png

haimianxx_1-1730780648331.png

 

1 REPLY 1

@haimianxx wrote:

 developing stm32f103c8t6, this problem appeared on a board.


What board?

https://community.st.com/t5/community-guidelines/how-to-write-your-question-to-maximize-your-chances-to-find-a/ta-p/575228

 

Are you sure that it's really an stm32f103c8t6, and that it is genuine?

See this thread:

https://community.st.com/t5/stm32-mcus-products/blue-pill-stm32f1-board-gets-programmed-through-arduino-ide-but/td-p/667923

In particular:

https://community.st.com/t5/stm32-mcus-products/blue-pill-stm32f1-board-gets-programmed-through-arduino-ide-but/m-p/667958/highlight/true#M242518

 

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.