Skip to main content
Visitor II
October 2, 2024
Solved

Distinguish different STM32G0 variants at run-time

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?

This topic has been closed for replies.
mƎALLEm
mƎALLEmBest answer
ST Technical Moderator
October 2, 2024

These part numbers STM32G0B1KBU6N and STM32G0B1KBU6 difference is the N at the end, UID, Flash size and package information don't give this differentiation. 

SofLit_0-1727878430318.png

So I don't think it's possible to get that information by software.

 

To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.

4 replies

Pavel A.
October 2, 2024

There's  some register (or ROM location) that tells the package type.

 

Andrew Neil
Super User
October 2, 2024
A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
mƎALLEm
mƎALLEmBest answer
ST Technical Moderator
October 2, 2024

These part numbers STM32G0B1KBU6N and STM32G0B1KBU6 difference is the N at the end, UID, Flash size and package information don't give this differentiation. 

SofLit_0-1727878430318.png

So I don't think it's possible to get that information by software.

 

To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.
Andrew Neil
Super User
October 2, 2024

@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 ...

 

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.