2022-07-12 05:58 AM
2022-07-12 06:00 AM
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
2022-07-12 06:19 AM
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.
2022-07-12 06:22 AM
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
2022-07-12 06:24 AM
https://community.st.com/s/question/0D53W00000cSqQUSA0/confusion-with-the-dbgmcuidcode-register