How can firmware detect that it is running on a STM32H743ZI2 vs a 743ZI? The CPUIDs are identical.
So I'm back to the silly problem where the HAL misconfigures the default HSI calibration when I flash the same firmware to an STM32H743ZI that works on a ZI2, and vice versa: That is the HSI clock is off by 4% (see these questions
https://community.st.com/s/question/0D50X0000BiD6fISQS/stlink-provides-808-mhz-instead-of-8000-on-new-nucleoh743zi2?t=1583004744665 and https://community.st.com/s/question/0D50X0000BYocRMSQZ/stm32h7-64mhz-hsi-is-off-by-4 for ex).
I know how to fix it manually by redefining RCC_HSICALIBRATION_DEFAULT depending on whether I'm at rev Y or rev V but I ran into a stumbling block: Firmware can't use the SCB CPUID to distinguish between rev Y or rev V, or at least I can't figure out how because they have identical SCB CPUIDs (0x411fc271 if you're interested).
Is there some other way that code can tell which rev it's running on? Surely there must be some constant on the wafer that has the revision but I can't find it. Please help me out. Thank you
