AnsweredAssumed Answered

Programming each part with a different progressive serial number

Question asked by lazzaroni.marco on Feb 26, 2015
Latest reply on Feb 26, 2015 by waclawek.jan
Hello,
  we need to assign an unique 16 bit serial number to our production SMT32F051C6T6 parts.
I can't do this by calculating it from the 96 bit UID read from the Unique device ID register because I think that in this case I won't be sure that there will not exist two parts with the same 16 bit. 

This 16 bit serial number will be saved in a flash location and then read by the firmware.

The only idea I have is to write a special software that, every time a part is to be programmed, reads the original .hex file and overwrites the relevant location with a 16 bit number that is then incremented for the next programming operation. Then the obtained hex file is used with a standard programming utility such as ST-Link Utility. Probably I'll use the command-line version in order to automate this process.

Anyway, this is a quite common need so I suppose that maybe some tools of this kind already exist, are you aware of them?

Thanks in advance.
Best regards,
   Marco

Outcomes