Skip to content

Instantly share code, notes, and snippets.

@ElectronicaXAB3
Created June 14, 2017 12:04
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ElectronicaXAB3/2e1085be2719990f178d0557dc8314d1 to your computer and use it in GitHub Desktop.
Save ElectronicaXAB3/2e1085be2719990f178d0557dc8314d1 to your computer and use it in GitHub Desktop.
Header for reading the STM32 device UUID
/**
* A simple header for reading the STM32 device UUID
* Tested with STM32F4 and STM32F0 families
*
* Version 1.0
* Written by Uli Koehler
* Published on http://techoverflow.net
* Licensed under CC0 (public domain):
* https://creativecommons.org/publicdomain/zero/1.0/
*
* Posted by "Electrical engineering and programming notepad"
* URL: https://ee-programming-notepad.blogspot.com/2017/06/reading-stm32f4-unique-device-id-from.html
*/
#ifndef __UUID_H
#define __UUID_H
#include <stdint.h>
/**
* The STM32 factory-programmed UUID memory.
* Three values of 32 bits each starting at this address
* Use like this: STM32_UUID[0], STM32_UUID[1], STM32_UUID[2]
*/
#define STM32_UUID ((uint32_t *)0x1FFF7A10)
#endif //__UUID_H
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment