cancel
Showing results for 
Search instead for 
Did you mean: 

Device information at runtime

ari_v2
Senior
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

2 REPLIES 2
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
Senior
Posted on May 23, 2016 at 15:13

Thanks!