stlink: STM32F103C8Tx: Sudden unknown chip id

  • Programmer/board type: Stlink/v2
  • Programmer firmware version: e.g STSW-LINK007 2.27.15
  • Operating system: macOS 10.12.3
  • Stlink tools version: v1.3.1
  • Stlink commandline tool name: st-flash and st-util
  • Target chip: generic STM32F103C8

I was flashing without problems, suddenly I am getting “unknown chip id”.

Output:

$ st-flash write main.bin 0x8000000
st-flash 1.3.1
2017-03-13T01:22:48 INFO src/common.c: Loading device parameters....
2017-03-13T01:22:48 WARN src/common.c: unknown chip id! 0xe0042000

Did I somehow fry my board? Or what does that mean?

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 21 (10 by maintainers)

Commits related to this issue

Most upvoted comments

Setting boot0 to 1, then st-flash erase, then setting it back to 0 and all was working again. I am fine to close the issue - but still would love to hear how/why that happened.

I have this exact problem with stm32f303k8 nucleo board with stlink 1.6.0 on Arch Linux. Programmer has firmware V2J37M26 (STSW-LINK007 3.3.4). It was working before but suddenly, I started to get the following error:

st-util 1.6.0 2020-06-10T23:53:41 INFO common.c: Loading device parameters… 2020-06-10T23:53:41 WARN common.c: unknown chip id! 0x5fa0004

Since setting boot pins seems like requires some soldering on this board, I didn’t get chance to test the solution suggested by @tcurdt.

I also tried it on with develop branch and I get a different warning

st-util 2020-06-11T07:47:32 WARN common.c: unknown chip id! 0x5fa0004 2020-06-11T07:47:32 INFO gdb-server.c: Listening at *:4242…

And st-flash from develop branch prints:

st-flash 1.6.0-370-g05f79e1 2020-06-11T07:48:30 WARN common.c: unknown chip id! 0x5fa0004 Failed to connect to target

It might take a while - but still have a blue pill I can check with.

If you do some testing, ensure you use the develop branch or Release v1.6.1 (once released) for testing.