cancel
Showing results for 
Search instead for 
Did you mean: 

I have a single hex file for STM32F and STM32G series. Can you suggest a way to identify if the microcontroller is a F or G series to load the appropriate code?

Sara.T
Associate II

I went through the device electronic signature. I don't see anything specific by reading the register from which I can differentiate between F and G series

1 ACCEPTED SOLUTION

Accepted Solutions

DEVID in DBGMCU register

There are also other ARM registers to determine the model/patch level of the Cortex-M type being used.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

View solution in original post

4 REPLIES 4
TDK
Guru

I imagine DEV_ID is different between the two, possibly at different memory locations. The reference manual for your specific devices will tell more. "STM32F" isn't too specific and covers a very large number of devices.

If you feel a post has answered your question, please click "Accept as Solution".

DEVID in DBGMCU register

There are also other ARM registers to determine the model/patch level of the Cortex-M type being used.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Sara.T
Associate II

Thank you so much. MCU device ID register provides the part number that I was looking for.

Thank you so much. It was very helpful.