Current location - Quotes Website - Personality signature - How to get the unique ID of stm32 cpu?
How to get the unique ID of stm32 cpu?
The address of each model is different, but don't directly address it when encrypting software, otherwise it will be easily cracked.

# define SOC _ stm32f0 _ id _ addr0x1ffff7ac.

# define SOC _ STM 32 f 1 _ ID _ ADDR 0x 1 ffff 7 e 8

# Define SOC _ stm32f2 _ ID _ addr0x1fff7a10.

# define SOC _ STM 32 f 3 _ ID _ ADDR 0x 1 ffff 7 AC

# define SOC _ STM 32 f 4 _ ID _ ADDR 0x 1 fff 7a 10

# define SOC _ STM 32 f 7 _ ID _ ADDR 0x 1 ff 0 f 420

# define SOC _ stm32l0 _ id _ addr0x1ff80050.

# define SOC _ STM 32 l 1 _ ID _ ADDR 0x 1ff 80050

# define SOC _ stm32l4 _ id _ addrx 0x1fff7590.

# define SOC _ stm32h7 _ id _ addr0x1ff0f420.

1, do not directly appear the id address in the program, such as stm32:1fff7e81fff7e1fff0stm8: 0x4865 ~ 0x4870.

2. Check the program area with checksum or crc to prevent program modification.