通过JTAG恢复STM32 MCU的打磨痕迹 [英] Restore grinded off markings of STM32 MCU via JTAG

查看:205
本文介绍了通过JTAG恢复STM32 MCU的打磨痕迹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一块带有STM32 MCU的板.我想为该板制作自定义固件,因为库存极少.不幸的是,电路板制造商善良地磨掉了所有标记.是否可以通过jtag获取设备/家庭ID并将其交叉引用到型号?我所能找到的一切都是关于获取芯片的唯一ID的,这不是我所需要的.

I have a board with presumably an STM32 mcu. I want to make custom firmware for that board as the stock one is very buggy. Unfortunately the board manufacturers were kind enough to grind off all the markings. Is there any way to get the device/family id via jtag and cross reference it to a model number? Everything I could find was about getting the unique id of the chip, which is NOT what I need.

推荐答案

pystlink 中(SWD程序员) )是实现,几乎可以成功识别任何STM32 MCU.

In pystlink (SWD programmer) is implementation, which almost successfully identify any STM32 MCU.

原理是:

  1. 从寄存器
  1. read PART_NO from register CPUID at address 0xe000ed00 and with this is possible to identify if MCU is CortexM0, M3, M4, .. in this file stm32devices.py
  2. read IDCODE_REG (M0 and M0+ has this register on different address than M3, M4 and M7) first 12bits is DEV_ID, which identify family and again look into stm32devices.py file
  3. read flash size from register FLASH_SIZE_REG (each family has this register on different address) and identify concrete device again by stm32devices.py file

或者只是连接SWD并保持pystlink来检测正确的MCU.

Or simply connect SWD and keep pystlink to detect right MCU.

这篇关于通过JTAG恢复STM32 MCU的打磨痕迹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆