Skip to content
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

Blinky detecting fake chip? #2

Closed
M1kerochip opened this issue Nov 3, 2019 · 15 comments
Closed

Blinky detecting fake chip? #2

M1kerochip opened this issue Nov 3, 2019 · 15 comments

Comments

@M1kerochip
Copy link

This is the board: (It's maked as a backpill, which you specificially mention)

https://robotdyn.com/diaphragm-mini-pump-for-liquid-12v.html
and pinout:
https://robotdyn.com/pub/media/0G-00005692==STM32F103C8T6-STM32MiniSystem/DOCS/PINOUT==0G-00005692==STM32F103C8T6-STM32MiniSystem.jpg

I found a generic bluepill pinout:
https://idyl.io/wp-content/uploads/2018/07/stm32f103-pinout-diagram.png

And it seems to be the same.

I quite like the build quality of these manufacturers. They seem to be a step above the usual Chinese made dirt cheap boards.

@keirf
Copy link
Owner

keirf commented Nov 3, 2019

That board looks good. My problem has been with a cheaper "Black Pill" which has the STM32 at 45-degree rotation same as Blue Pill. The one you link looks better quality and the STM32 chip as in the product photos looks genuine.

@keirf
Copy link
Owner

keirf commented Nov 3, 2019

I will update my suggestions based on work I've done on identifying STM32 fakes in the last few days. There are fake marked STM32F103C8T6 devices out there, but the ones I've see are physically distinguishable and I also now have a test firmware which can spot them.

@M1kerochip
Copy link
Author

M1kerochip commented Nov 3, 2019 via email

@Volutar
Copy link

Volutar commented Nov 5, 2019

Isn’t it better to add “blinky” testing into the main firmware? It could make all these tests (not infinite loop for sram, maybe just couple), and store results for later report. And when software is run - it could report about hw issues. Also, command line parameter with all necessary info about firmware and test results (even if it’s ok) also would be nice. Though reflashing rom each time is quite bad idea. Well, then command line parameter “testhw” would be quite handy. Or “testflash” specifically for 64k capability (and leaving other tests to default firmware startup sequence).

I have the blue pill with small text on the chip (which is stated as probably not genuine) but blinky is blinking. So probably it works as expected, but i’m not really sure (since there I didn’t see any reports, bad or good ones).

@keirf
Copy link
Owner

keirf commented Nov 5, 2019

That would be nice but my time is finite. If you want to see your test report, log into serial via same serial adapter you used for programming Blinky. For example, using PuTTY, or whatever client you prefer. At 115200,8n1. Now reset the Pill board and you should see your report printed out.

@keirf
Copy link
Owner

keirf commented Nov 5, 2019

Also put a photo of your STM32 chip here, for interest.

@keirf keirf changed the title Will this RobotDYN board work? Blinky detecting fake chip? Nov 5, 2019
@Volutar
Copy link

Volutar commented Nov 5, 2019

image
Okay. Here you go. I had hard time of trying to make it readable, since it's "black on black".

I used stlink device to program, so there's no com port for puttying.

==added: Found another USB-UART dongle and with it successfully observed the list of 14 of OKs.
So this STM32 chip is OK.

@keirf
Copy link
Owner

keirf commented Nov 6, 2019

Yes that looks like a genuine chip anyway -- there is only the single circular mark, rather than three.

@keirf keirf closed this as completed Nov 6, 2019
@Volutar
Copy link

Volutar commented Nov 6, 2019

Single depression, yes. But text mark is smaller and hardly readable. So I guess text size shouldn’t worry as long as there is only single 1 pin circular mark. Perhaps wiki requires smallest addition.

@keirf
Copy link
Owner

keirf commented Nov 6, 2019

I will add that the only way to be sure is to run Blinky.

@Universal-Solder
Copy link

Hi, I don't know how to use your "blinky". Isn't there a .bin file that I can flash using ST-Link Tool, for example? Or an Arduino code?
thanks

@keirf
Copy link
Owner

keirf commented Mar 8, 2021

The Blinky HEX is in the Greaseweazle release zip file under the alt/ subfolder.

@Universal-Solder
Copy link

Thank you so much! Blinky is a great help. Now I am even more confused than before since most of the chips I expected to be fakes seem to be genuine.

@Universal-Solder
Copy link

I have 2 different chips with marking 991KA 93 MYS 803. One of them seems to be genuine, the other one is fake.
Oh my, this is bad.

@keirf
Copy link
Owner

keirf commented Mar 13, 2021

A lot of fakes work well enough to pass Blinky. That's one reason I wrote it, as all you'll get on Chinese blue pill boards is fakes. So a method is needed to sort good fakes from bad. If they pass, they are usable in my projects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants