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-flashandst-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
- Fix "unkown chip id", piped output and st-util -v (#763) * Set SWD clock before using SWD (#107, #568 ?) * Make st-util -v print more than default * Flush output streams explicitly. Fix #665 ... — committed to stlink-org/stlink by jicksaw 5 years ago
- General Project Update - Added basic security policy - Updated info on version support for macOS - Updated tutorial.md > Added reference for st-info --probe command > Added section on unknown chip id... — committed to seanshpark/stlink by Nightwalker-87 3 years ago
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:
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
And st-flash from develop branch prints:
It might take a while - but still have a blue pill I can check with.
If you do some testing, ensure you use the
developbranch or Release v1.6.1 (once released) for testing.