stlink: Unknown chip id 0!

  • Programmer/board type: e.g Stlink/v1, Stlink/v2, Stlink/v2-onboard
  • Programmer firmware version: e.g STSW-LINK007 2.27.15 -> Unknown
  • Operating system: e.g Linux, Mac OS X, Windows (with specific version) -> macOS 10.11.6
  • Stlink tools version and/or git commit hash: e.g v1.1.0/git-c722056 -> v1.3.1
  • Stlink commandline tool name: e.g st-info, st-flash, st-util-> st-flash
  • Target chip (and optional board): e.g STM32F402VG (STM32Fxxx Discovery) -> STM32F405 – This is a custom board, possible there is a design error but would like to confirm here first.

Output:

st-flash --reset write main.bin 0x08000000
st-flash 1.3.1
2017-07-18T16:56:28 INFO src/common.c: Loading device parameters....
2017-07-18T16:56:28 WARN src/common.c: unknown chip id! 0

Expected/description: Expecting the device to have to program loaded into flash. This is a custom board, as mentioned above. It is possible there is a design error. I am not too familiar with the way the STM32F4XX series works and may not have the knowledge to diagnose the issue myself. If there are resources beyond which I have found, I will gladly read up on them.

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 27 (13 by maintainers)

Most upvoted comments

FWIW, I’ve seen this error on F103 boards with DIO and CLK reversed. Swapping the wires solved it.

@Nightwalker-87 In version 1.7+, it is displayed as zero if the address of chip id reading is unknown (possible only for new series of MCU, which are not yet). I’ll fix this so that everything stops at the message: https://github.com/stlink-org/stlink/blob/71d1dab62062c44443cd9367ff23bd707a978c55/src/common.c#L1543