Skip to main content
ari_v2
Senior
May 23, 2016
Question

Device information at runtime

  • May 23, 2016
  • 2 replies
  • 536 views
Posted on May 23, 2016 at 14:00

Hi,

I need to distinguish between diffrent types of STM32 devices during runtime .

Specifically between F2 and F4 and their sub types. Can this information be parssed from the Unique ID?

Is there a way to get at runtime the RAM size of a device?

Thanks,

Ari

    This topic has been closed for replies.

    2 replies

    waclawek.jan
    Super User
    May 23, 2016
    Posted on May 23, 2016 at 14:55

    For mcu type, see DBGMCU_IDCODE register in RM. Read also errata - F2 and F4 could be confused in early revisions, to be distinguished by the core's CPUID register content. RAM size can't be determined directly but FLASH size can be, see ''Flash size'' chapter in RM.

    JW
    ari_v2
    ari_v2Author
    Senior
    May 23, 2016
    Posted on May 23, 2016 at 15:13

    Thanks!