cancel
Showing results for 
Search instead for 
Did you mean: 

CPU information

MBosc.2
Associate II
 
4 REPLIES 4
MBosc.2
Associate II

Hi,

These are the data I can read ..

/******************* Device electronic signature ***************/

#define UID_BASE            0x1FFF7A10UL       /*!< Unique device ID register base address */

#define FLASHSIZE_BASE      0x1FFF7A22UL       /*!< FLASH Size register

Is there any other CPU-specific data I can read? for example the F2 ... F4 family etc.

thank you

FThie.1
Associate II

Hi,

Look for DBGMCU_IDCODE in your reference manual.

You can know the part number, core version, core revision.

Some MCUs like L4 can also tell you its package size.

 uint32_t idcode = DBGMCU->IDCODE & 0xFFF; // STM32 Model, upper portion has die stepping version

ARM MCU via SCB->CPUID;

https://community.st.com/s/question/0D53W00001VttQgSAJ/support-package-for-stm32f107ret6

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

https://community.st.com/s/question/0D53W00000cSqQUSA0/confusion-with-the-dbgmcuidcode-register

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