How to access UID_BASE from non-secure app in STM32H573?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-11-18 8:50 PM
H5 has Secure Manager provisioned, and got exception when trying to access UID_BASE to retrieve device ID.
#define UID_BASE (0x08FFF800UL) /*!< Unique device ID register base address */
Solved! Go to Solution.
- Labels:
-
Secure Manager
-
STM32 Security
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-11-19 5:31 AM
Hello @Thatseasy
To be able to read into system flash you need to disable the cache associated to this area.
This can be done by setting non cacheable attribute this this region.
You have an example for accessing this UID in the STM32CubeH5 here:
STM32Cube_FW_H5_V1.3.0\Projects\NUCLEO-H563ZI\Examples_LL\UTILS\UTILS_ReadDeviceInfo\
Best regards
Jocelyn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-11-19 5:31 AM
Hello @Thatseasy
To be able to read into system flash you need to disable the cache associated to this area.
This can be done by setting non cacheable attribute this this region.
You have an example for accessing this UID in the STM32CubeH5 here:
STM32Cube_FW_H5_V1.3.0\Projects\NUCLEO-H563ZI\Examples_LL\UTILS\UTILS_ReadDeviceInfo\
Best regards
Jocelyn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-11-19 5:50 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-11-19 6:43 AM
@Jocelyn RICARD @Guillaume K Thank you for the solutions, they both work.
