cancel
Showing results for 
Search instead for 
Did you mean: 

How can i program the option byte on STM32H750 for my device UUID(8 bytes)

fema
Associate III

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

1 REPLY 1
berendi
Principal

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