STM32F103 Register ID Memory Size?

Generic boards that are not Maple or Maple mini clones, and don't contain the additional USB reset hardware
Post Reply
ChrisMicro
Posts: 279
Joined: Fri Mar 24, 2017 4:51 pm
Location: Germany

STM32F103 Register ID Memory Size?

Post by ChrisMicro » Sun Aug 20, 2017 7:35 am

In the data sheet there is a ID-Register ( Chapter 30 )
You can get the Flash-Size and some unique ID.
Would it be possible to derive somehow the MCU type out of the unique ID?

fpiSTM
Posts: 180
Joined: Fri Sep 16, 2016 12:33 pm
Location: Le Mans, France

Re: STM32F103 Register ID Memory Size?

Post by fpiSTM » Sun Aug 20, 2017 8:00 am

Maybe you should better use the
31.6.1 MCU device ID code

But you will not know exactly which MCU, ex if it is a Low density this will be one of STM32F101xx, STM32F102xx and STM32F103xx:
Low-density devices are STM32F101xx, STM32F102xx and STM32F103xx microcontrollers where the Flash memory density ranges between 16 and 32 kbytes.
Medium-density devices are STM32F101xx, STM32F102xx and STM32F103xx microcontrollers where the Flash memory density ranges between 64 and 128 Kbytes.
High-density devices are STM32F101xx and STM32F103xx microcontrollers where the Flash memory density ranges between 256 and 512 Kbytes.
XL-density devices are STM32F101xx and STM32F103xx microcontrollers where the Flash memory density ranges between 768 Kbytes and 1 Mbyte.
Connectivity line devices are STM32F105xx and STM32F107xx microcontrollers.
Maybe by combining Flash and revision information it is possible to be more precise.

User avatar
RogerClark
Posts: 6726
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: STM32F103 Register ID Memory Size?

Post by RogerClark » Sun Aug 20, 2017 10:43 am

Often on the F1 series, the actual size of flash is not the same as would be indicated by using the device ID

The F103C8 often has 128kb flash instead of the guaranteed size of 64kb

Post Reply