Skip to main content
MBosc.2
Associate II
July 12, 2022
Question

CPU information

  • July 12, 2022
  • 3 replies
  • 1086 views

..

    This topic has been closed for replies.

    3 replies

    MBosc.2
    MBosc.2Author
    Associate II
    July 12, 2022

    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
    Visitor II
    July 12, 2022

    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.

    Tesla DeLorean
    Guru
    July 12, 2022

     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 VenmoUp vote any posts that you find helpful, it shows what's working..
    Tesla DeLorean
    Guru
    July 12, 2022
    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..