5.1. 特殊 CHIPID 的读取
特殊 CHIPID 可以通过软件代码直接读地址 0xE0044104 获得, 也可以通过
STM32CubeProgrammerCLI 命令来读取,命令如下:STM32_Programmer_CLI -c port=swd mode=hotplug getAuthID
注意:
1. STLink 需要更新到 V3J9M3 或以上版本
2. STM32CubeProgrammer 需要更新到 V2.9.0 或以上版本
运行该命令在 RDP Level1 时将看到类似如下信息,蓝色高亮的部分即为获取的 CHIPID
STM32_Programmer_CLI.exe -c port=swd mode=hotplug getAuthID
-------------------------------------------------------------------
STM32CubeProgrammer v2.9.0
-------------------------------------------------------------------
ST-LINK SN : 003E00473438510D34313939
ST-LINK FW : V3J9M3
Board : NUCLEO-U575ZI-Q
Voltage : 3.29V
SWD freq : 24000 KHz
Connect mode: Hot Plug
Reset mode : Software reset
Device ID : 0x482
Revision ID : Rev B
Reconnecting with the recommended frequency (1000 kHz)!
ST-LINK SN : 003E00473438510D34313939
ST-LINK FW : V3J9M3
Board : NUCLEO-U575ZI-Q
Voltage : 3.29V
DBGMCU_DBG_AUTH_DEVICE : 0x292D8E4A
SWD freq : 1000 KHz
Connect mode: Hot Plug
Reset mode : Software reset
Device ID : 0x482
Revision ID : Rev B
Reconnected with the recommended frequency (3300 kHz)!
Device name : STM32U575/STM32U585
Flash size : 2 MBytes
Device type : MCU
Device CPU : Cortex-M33
BL Version : 0x__
Debug in Low Power mode enabled
运行该命令在 RDP Level2 时将看到类似如下信息,此时调试连接会出错,这是正常现象,
因为 RDP Level2 时禁止调试连接,但是 CHIPID 依旧可以读取,蓝色高亮的部分即为获取的
CHIPID
STM32_Programmer_CLI.exe -c port=swd mode=hotplug getAuthID
-------------------------------------------------------------------
STM32CubeProgrammer v2.9.0-A02
-------------------------------------------------------------------
ST-LINK SN : 003E00473438510D34313939
ST-LINK FW : V3J9M3
Board : NUCLEO-U575ZI-Q
Voltage : 3.29V
Error: Cannot connect to access port 0
If you are trying to connet to a device with TrustZone enabled please try to connect with
HotPlug mode
2nd connect tentative with a lower frequency (8MHz)
ST-LINK SN : 003E00473438510D34313939
ST-LINK FW : V3J9M3
Board : NUCLEO-U575ZI-Q
Voltage : 3.29V
DBGMCU_DBG_AUTH_DEVICE : 0x292D8E4A
Error: Cannot connect to access port 0
If you are trying to connet to a device with TrustZone enabled please try to connect with
HotPlug mode
|