2016-10-13 03:01 AM
I noticed that there is a 96 bit serial number in the CPU. At least in the 407 CPU. There is very little about it in the 202 page datasheet.
How can access it. And has anyone an idea how can I use it for CAN address. Many buses need nodes with individual address but making every board unique costs money.2016-10-13 03:44 AM
Hi mich.lei
Please refer to the “Device electronic signature� section, “unique device ID register (96 bits)� paragraph in your related reference manual to have idea about the 96-bit unique device identifier.-Syrine-2016-10-13 05:36 AM
You can access via pointers, at address for specific STM32 part
Not suitable for MAC addresses which should be purchased for issuing organization. Not sure you can shrink them in a unique way for smaller number space, have a way to configure or program during final test. Consider OTP or option bytes.2016-10-13 05:41 AM
It is not in the datasheet then. Because my reader does not find that there. Have to read some more pdfs.
2016-10-13 05:45 AM
To Clive1:
Yes that's the problem. How to shrink it. Probably no way. Production programmers have that function, that is change some parts of the code, I think. Making every board unique is a potential problem. Edit: How long is the CAN address?2016-10-13 08:06 AM
I checked the CAN wiki page. Probably no way to fit this ID into a real world address.
2016-10-13 08:16 AM
It is not in the datasheet then. Because my reader does not find that there. Have to read some more pdfs.
As previously indicated you want the in this case and the chapter on ''Device electronic signature'', and ''Unique device ID register (96 bits)''Yes that's the problem. How to shrink it. Probably no way. Production programmers have that function, that is change some parts of the code, I think. Making every board unique is a potential problem.Well if you hash it into a smaller number space you're going to have more clashes. Make it configurable, save it in FLASH outside of the application firmware. Writing production test and programming software is part of the job, if you need to control the serial numbers and labelling, you'll need to manage that with code and databases.I'm more familiar with MAC address assignment, CAN uses message ID's as I recall. All the devices on the bus can filter the messages they want to receive.2016-10-13 08:32 AM
2016-10-13 08:38 AM
CAN uses message ID's as I recall. All the devices on the bus can filter the messages they want to receive.
''FWIW,yes, but (at least in J1939 / NMEA2000 protocols that I' familliar with) devices on the bus have an 8 bit address (which must be unique as it identifies the source of the messages), automatically allocated/checked for contention, using an address claim procedure, The address claim procedure uses a 21bit unique ID within a 64 bit data field to arbitrate between devices of the same manufacturer / type / function )...2016-10-13 08:49 AM
..if the allocation of the 96 bit unique IDs is sequential,..
I'm not sure ST guarantees it, the ID is subdivided into multiple fields. If you examined enough you might be able to locate a portion that truncates well. Sort of thing that might warrant an App Note??