cancel
Showing results for 
Search instead for 
Did you mean: 

Determine CPU Type at Run-time

dsjnews
Associate III
Posted on December 19, 2017 at 20:59

Hi,

I am developing an application that will be targetted at a number of STM32F/STM32L hardware platforms and wondered if it was possible to determine the CPU type at run-time. CPUID is useful to determine ARM core details etc. and thought there would be an equivalent register for the STM stuff.

Regards

FarmerJo

#determine-cpu-type #stm32
1 ACCEPTED SOLUTION

Accepted Solutions
Posted on December 20, 2017 at 00:12

Thank you Andrew for that. I even searched the TRM for 'device ID' and must have missed it somehow.

Anyway this is just what I am looking for.

Regards

FarmerJo

View solution in original post

3 REPLIES 3
Posted on December 19, 2017 at 21:04

Like DEV_ID in DBGMCU_IDCODE?

Use that to auto-speed F4 parts, ie optimum PLL setting and AHB/APB dividers.

Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..
Posted on December 19, 2017 at 21:51

Clive One wrote:

Like DEV_ID in DBGMCU_IDCODE?

Should be good - but doesn't always work:

https://community.st.com/0D50X00009XkbSHSAZ

Posted on December 20, 2017 at 00:12

Thank you Andrew for that. I even searched the TRM for 'device ID' and must have missed it somehow.

Anyway this is just what I am looking for.

Regards

FarmerJo