Confusion with the DBGMCU_IDCODE register.
In our product we will be placing one of 3 different processors. I have developed code to determine this by evaluating the registers for the peripherals, but I'm wondering if there is another way.
I've been looking at the DBGMCU_IDCODE register. And one thing confusing is that the value is different if you use the STLINK. In code, it looks like I can tell the difference between the various processors, but from the STLINK, you can't.
For clarity I'll only report the ID value, not the register contents.
Processor Code read value STLINK read value
STM32F427 120 419
STM32F429 310 419
STM32F437 320 419
1) Why are they different?
2) Can I rely on the code-read values?
I've also evaluated some other processors I'm working with:
Processor Code read value STLINK read value
STM32L051 810 417
STM32L073 820 447
