I wanna use it to help getting a random number.
Or kindly,someone teach me how to get a random number without using ChipID.
Hi,
there is a possibility to ensure unique ID to be added during the first MCU start or during flashing the code into the MCU.
There is an IFR field in the MCU with the Program Once Field which can be used for this purpose. However, implementation is up to you.
You can also do it via, for example, sending data via SCI from the PC to the MCU together with processing it as writing unique ID into Program Once field. (The list of used unique IDs could be stored in the PC)
Best regards,
Ladislav
Some derivatives like S12P have program once locations, which you could program with unique ID at your production line. Seems like there's no S12 with unique chip ID.