Distinguish between 2 µC (STM32L071CZY6 and STM32L071KZU6)
Hello,
we have an electronic with two possible µC as footprint on the PCB.
STM32L071CZ
STM32L071KZ
Inside the layout it was necessary to route two signals to different GPIOs, therefore
we have a difference in the configuration.
We want to avoid a #define to distinguish between both firmware with different GPIO settings
for these two signals.
Is there any chance to distinguish between these both µC by any register that we can read?
Greetings
Stefan
PS1:
CPUID -> does not work, it doesn't contain information about the package
PS2:
We tried to use
#define IOUTENA_PIN_49Pin GPIO_PIN_2 // BGA
#define IOUTENA_GPIO_PORT_49Pin GPIOC
#define IOUTENA_PIN_32Pin GPIO_PIN_1 // QFP
#define IOUTENA_GPIO_PORT_32Pin GPIOA
if (IS_GPIO_PIN_AVAILABLE(IOUTENA_GPIO_PORT_49Pin,IOUTENA_PIN_49Pin))
But this doesn't work also. We guess that both packages contain the same Die, therefore
the GPIO is available on both µC, but NOT connected to a package pin for both packages.
