-
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
[STM32F103C8T6]: Can't flash on Ubuntu #1442
Comments
well i belive the correct chip id should be
|
@junaire Do you flash original STM32 or clone chip? |
tbh i don't know... i think it's the original chip but I how can I verify that? i bought it from 3rd party store online though. |
I suspect it's because the stlink v2 is the cloned one, I'm pretty sure about that. is it possible to have failures because of this? |
@junaire: Yes, that's why we don't offer any support for STLINK/v2 clone programmers. Referring to @Ant-ON 's question: The spread of cloned/fake STM32F103C8T6 devices mostly originating from China has turned out to be a notable problem as well. Some of them are only partially functional or even do not work at all. |
Thanks for the explanation. if it's a very common issue, maybe we can document it in the README a bit and have some hints in error messages? |
The topic is indeed already covered in our tutorial as can be found in the result of #1322. |
As appropriate advice has been given, I am closing this ticket now as resolved. |
In order to allow developers to isolate and target your respective issue, please take some time to select the check boxes below and fill out each of the following items appropriate to your specific problem.
st-flash
I built the program using STM32CubeMX and cmake, then manually converted it to a
.bin
:Then I try to flash the code to my board:
But I got:
I investigated a bit, but I'm not sure where goes wrong...
Looks like in common.c:239
stlink_chip_id
it returns an invalid chip id so we can't match it with a known one. and in usb.c_stlink_usb_read_debug32
we have:any ideas about why?
The text was updated successfully, but these errors were encountered: