Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
November 21, 2024, 05:31:56 17:31


Login with username, password and session length


Pages: [1]
Print
Author Topic: [HELP] Not a genuine ST Device  (Read 3686 times)
0 Members and 1 Guest are viewing this topic.
Ahmad_k
SCG Moderator
Hero Member
*****
Offline Offline

Posts: 763

Thank You
-Given: 173
-Receive: 1298



« on: May 16, 2024, 01:48:11 13:48 »

I have bunch of STM32F103 mcu that I thought they are originals, I can flash them normally and my project works 100%. Now I am trying to debug a new project but keil threw this error "Not a genuine ST Device"

I checked the ID (0x2BA01477) and yes it was not genuine, the correct ID must be 0x1BA01477

Does anyone know a way to debug those chip without using OpenOCD ?
Logged
pickit2
Moderator
Hero Member
*****
Offline Offline

Posts: 4666

Thank You
-Given: 833
-Receive: 4320


There is no evidence that I muted SoNsIvRi


« Reply #1 on: May 17, 2024, 12:04:11 00:04 »

Just a thought can you change the ID in the software to match the fake ID.
Logged

Note: I stoped Muteing bad members OK I now put thier account in sleep mode
Ahmad_k
SCG Moderator
Hero Member
*****
Offline Offline

Posts: 763

Thank You
-Given: 173
-Receive: 1298



« Reply #2 on: May 17, 2024, 06:52:21 06:52 »

Just a thought can you change the ID in the software to match the fake ID.
Keil and STM32CubeIDE are now checking vendor ID first , both software call a function named JEP106ID which must return 0x20 for genuine, I patched that. the remaining is the Chip ID which I don't know where they are hiding it.
Logged
Manuel
Senior Member
****
Offline Offline

Posts: 329

Thank You
-Given: 680
-Receive: 192


« Reply #3 on: May 17, 2024, 08:27:37 08:27 »

If it's not coded in software maybe you can 'patch' some descriptor file....

check here:
https://community.platformio.org/t/debugging-of-stm32f103-clone-bluepill-board-wrong-idcode/14635

have ho idea if it can help.

take care.
X!
Logged

-> An Apple a Day does not Let U become a Macintosh!
Ahmad_k
SCG Moderator
Hero Member
*****
Offline Offline

Posts: 763

Thank You
-Given: 173
-Receive: 1298



« Reply #4 on: May 17, 2024, 05:41:26 17:41 »

After a lot of work, I was able to debug some of the clones but only with keil which is great. Some of the clones mcu still not able to work with them.

I have patched the vendor id. Debug is working with stlink and jlink
Logged
Kombinator
Junior Member
**
Offline Offline

Posts: 84

Thank You
-Given: 39
-Receive: 32



« Reply #5 on: May 28, 2024, 02:22:40 14:22 »

Hello
I have chips with both revisions  0x2BA01477 and 0x1BA01477
At revision 0x2BA01477.
Keil gives me the message both when recording and when debugging the controller. But after the message it overwrites the flash and debugs the controller normally.....
 
« Last Edit: May 30, 2024, 04:05:18 04:05 by Kombinator » Logged
Ahmad_k
SCG Moderator
Hero Member
*****
Offline Offline

Posts: 763

Thank You
-Given: 173
-Receive: 1298



« Reply #6 on: May 28, 2024, 07:14:02 19:14 »

Are you using latest MDK version ? For me I cannot debug after that message pop up, anyway I have patch it and it is working now.
Logged
Kombinator
Junior Member
**
Offline Offline

Posts: 84

Thank You
-Given: 39
-Receive: 32



« Reply #7 on: May 28, 2024, 07:43:54 19:43 »

I use MDK 5.36. 0    and compiler version5  hard.  ST-Link FW  V2J45S7
I'm working on simple projects that don't require me to change compiler settings.
/////////////

I installed on the new version of the 5.39 compiler and had problems programming and debugging the controller with IDCODE  0x2BA01477
The problem is not in the compiler !!!
The problem is in the fake inscription on the controller housing!!!
Vendor: MindMotion , GigaDevice   ...   And more clones
32F103x8x
The problem is to understand what was written.
My controller was written MM32F103C8
After I loaded from Pack Installer  Device: MindMotion  -  MM32F103C8   and changed the device of the project, everything worked normally at first sight!!!

Something that worries me!!!
Keil uses algorithms for working with the flash of each controller that are loaded into RAM. Keil works with different algorithms for the different STM32F103 clones. Anyone interested in viewing KEIL files with a .FLM extension
Surprises are possible if the Keil code changes.

« Last Edit: May 30, 2024, 04:05:32 04:05 by Kombinator » Logged
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright © 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC