Distinguish different STM32G0 variants at run-time
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-10-02 6:34 AM - last edited on ‎2024-10-02 7:01 AM by Andrew Neil
Hi,
Is it possible to distinguish an STM32G0B1KBU6N from an STM32G0B1KBU6 based on the UID?
Is it possible to read this UID in FW in order to recognize whether the correct controller is fitted or is this only possible via the SW interface?
Solved! Go to Solution.
- Labels:
-
STM32G0 Series
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-10-02 7:14 AM - edited ‎2024-10-02 7:16 AM
These part numbers STM32G0B1KBU6N and STM32G0B1KBU6 difference is the N at the end, UID, Flash size and package information don't give this differentiation.
So I don't think it's possible to get that information by software.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-10-02 6:51 AM
There's some register (or ROM location) that tells the package type.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-10-02 7:03 AM
@TR01 wrote:Is it possible to read this UID in FW
Yes - see:
https://community.st.com/t5/stm32-mcus/how-to-obtain-and-use-the-stm32-96-bit-uid/ta-p/621443
@TR01 wrote:Is it possible to distinguish an STM32G0B1KBU6N from an STM32G0B1KBU6 based on the UID?
It doesn't look like it.
As @Pavel A. said, there may be other ROM locations which may help ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-10-02 7:09 AM - edited ‎2024-10-02 7:10 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-10-02 7:14 AM - edited ‎2024-10-02 7:16 AM
These part numbers STM32G0B1KBU6N and STM32G0B1KBU6 difference is the N at the end, UID, Flash size and package information don't give this differentiation.
So I don't think it's possible to get that information by software.
