flash_get_unique_id() function
Get flash unique 64 bit identifier Use a standard 4Bh RUID instruction to retrieve the 64 bit unique identifier from a flash device attached to the QSPI interface. Since there is a 1:1 association between the MCU and this flash, this also serves as a unique identifier for the board.
Syntax
void flash_get_unique_id(uint8_t *id_out); Arguments
id_out
Pointer to an 8-byte buffer to which the ID will be written