I've designed an ATMega32 based device and we are going to launch the new device and establish the product line. I want to design a method to make a specific ID for the device that indicates it's time and date of production.
the simplest method is to insert time and date of device production into the flash memory of the microcontroller, but how? I know that I can use the macros "__date__" and "__time__" for defining the compile time/date but it only indicates the compile time rather than the program time (which indicates the time of manufacturing).
It is possible to build a specific programmer with the internal RTC but we don't have much time for it... . I'd rather do it simply by debugging on Atmel studo (by pressing F5), but unfortunately by pressing F5, it only send the pre-compiled program into the microcontroller and no compile process happens (so time and date is outdated).