-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
STM32F103C8Tx: Sudden unknown chip id #568
Comments
This happens on an erase:
When I hold the reset button while calling the erase I get:
0 bytes? |
Setting boot0 to 1, then |
@iglooom not by choice at least. I would need to check if any of the GPIO pins I am using are somehow connected to the SWDIO/SDCLK but according to this http://wiki.stm32duino.com/index.php?title=Blue_Pill they are not. |
* Set SWD clock before using SWD (#107, #568 ?) * Make st-util -v print more than default * Flush output streams explicitly. Fix #665 On Win32 redirecting streams makes them buffered, therefore without flushing there would be no output before exit. Stdout and stderr are also often buffered differently, making them disordered.
Well, a test with v1.6.1 would be indeed be useful before adding this ticket to the v1.6.2 milestone. |
Ah, missed that the other report was with 1.6.0. |
Same problem here.. with STM32F401RE Nucleo board on Ubuntu 18.04,
|
@JihedChaibi: Note the different error code |
I'm having a similar problem on Mac OS Catalina using st-flash 1.6.1 from Homebrew on a new fresh-out-of-the-box Nucleo-F746ZG. Here is the output from "st-flash reset":
An old st-flash 1.3.0 executable on the same Mac works OK:
And st-flash 1.5.1 on a Raspberry Pi 4 running Raspian also works OK:
|
Time for a short summary: We were originally talking about the following error: @dkorkmazturk @SJChannel In order to get ahead with this, I'll try to reproduce this issue for v1.4.0 using my Bluepill board and hope some people are still following this ticket and are able to give some useful feedback. |
Setup:
Due to an existing compilation error I could not use v1.4.0, but v1.3.1 (with a patch regarding version numbering, to be able to compile) instead. I did a read-write cycle with and without board resets in-between and could not reproduce the described behaviour:
Looking at this, the observed behaviour does not seem to be related to a bug present in the toolset in that version. |
ToDo: #669 (comment) |
Related to #443. |
A solution to this can be found here: #107 (comment). I'll add these steps to our tutorial. @Ant-ON I'm still trying to figure out the actual technical meaning of This is what I found out so far:
So I assume this is simply the returned memory address where the chip ID would have been found, if a read-out was possible. For illustration:
|
@Nightwalker-87 chip id can be found in the Lines 1221 to 1249 in 40e9aa2
We first try read id from 0xE0042000 . We may got garbage if chip id contains in the 0x40015800 register. A more precise definition can be obtained using a code like #1101 (comment)
|
st-flash
andst-util
I was flashing without problems, suddenly I am getting "unknown chip id".
Output:
Did I somehow fry my board? Or what does that mean?
The text was updated successfully, but these errors were encountered: