UTILS_ReadDeviceInfo Example Description
This example reads the UID, Device ID and Revision ID and saves them into a global information buffer.
Then UID, Device ID and Revision ID will be saved in following global variables:
- aShowDeviceID: Device identifier
- aShowRevisionID: Revision identifier (This field indicates the revision of the device. For example, it is read as 0x1000 for Revision 1.0)
- aShowUIDWord0: UID Word0
- aShowUIDWord1: UID Word1
- aShowUIDWord2: UID Word2
Keywords
System, Utils, Device info, UID, Device ID, Revision ID, Wafer, Lot number,
Directory contents
- UTILS/UTILS_ReadDeviceInfo/Inc/stm32c0xx_it.h Interrupt handlers header file
- UTILS/UTILS_ReadDeviceInfo/Inc/main.h Header for main.c module
- UTILS/UTILS_ReadDeviceInfo/Inc/stm32_assert.h Template file to include assert_failed function
- UTILS/UTILS_ReadDeviceInfo/Src/stm32c0xx_it.c Interrupt handlers
- UTILS/UTILS_ReadDeviceInfo/Src/main.c Main program
- UTILS/UTILS_ReadDeviceInfo/Src/system_stm32c0xx.c STM32C0xx system source file
Hardware and Software environment
How to use it ?
In order to make the program work, you must do the following :
- Open your preferred toolchain
- Rebuild all files and load your image into target memory
- Run the example