How can i program the option byte on STM32H750 for my device UUID(8 bytes)
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-03-30 12:54 AM
I want to use the STM32H750 option byte to store the device UUID (8 bytes) .
But i can't find any good sample on STM32Cube_FW_H7_V1.5.0 or forum .
Thanks
Labels:
- Labels:
-
Flash
-
STM32H7 Series
This discussion is locked. Please start a new topic to ask your question.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-03-30 1:32 AM
You can't, because there are no option bytes without hardwired functions. Consult chapter 4 of the reference manual, it doesn't mention any. All option bytes have some predefined purpose, affecting system boot or memory protection one way or another. Find some other way.
- Reserve some bytes in the flash to store the ID, i.e. decrease the flash available to the linker by 32 bytes, and put the ID at the end of the flash. Note that the flash must be programmed in 32 byte units.
- Use the factory programmed Unique device ID register at 0x1FF1E800 as the device serial number. See the Device electronic signature chapter in the reference manual.
- Use an external EEPROM, possibly one preprogrammed with a unique 64 bit EUI, e.g. 24AA02E64
