AN3364 How to migrate across STM32 series
Doc ID 018608 Rev 1 7/12
2.1.2 STM32 product cross-compatibility
The STM32 series embeds a set of peripherals which can be classed in three categories:
● The first category is for the peripherals which are by definition common to all products.
Those peripherals are identical, so they have the same structure, registers and control
bits. There is no need to perform any firmware change to keep the same functionality at
the application level after migration. All the features and behavior remain the same.
● The second category is for the peripherals which are shared by all products but have
only minor differences (in general to support new features), so migration from one
product to another is very easy and does not need any significant new development
effort.
● The third category is for peripherals which have been considerably changed from one
product to another (new architecture, new features...). For this category of peripherals,
migration will require new development at application level.
Table 2 below gives a general overview of this classification:
Table 2. STM32 peripheral compatibility analysis F1 versus F2 series
Peripheral F1 series F2 series
Compatibility
Comments Pinout SW compatibility
FSMC Yes Yes Same features Identical Full compatibility
WWDG
Ye s Yes Same features NA Full compatibility
IWDG
Ye s Yes Same features NA Full compatibility
DBGMCU
Ye s Yes Same features NA Full compatibility
CRC
Ye s Yes Same features NA Full compatibility
EXTI
Ye s Yes Same features Identical Full compatibility
CAN
Ye s Yes Same features Identical Full compatibility
PWR
Ye s Ye s + Enhancement NA
Full compatibility for
the same feature
RCC
Ye s Ye s + Enhancement NA Partial compatibility
SPI Ye s Ye s + TI mode / Max baudrate Identical
Full compatibility for
the same feature
USART
Ye s Ye s +
Limitation fix / Max baudrate /
One Sample Bit / Oversampling
by 8
Identical
Full compatibility for
the same feature
I2C
Ye s Ye s + Limitation fix Identical
Full compatibility for
the same feature
TIM
Ye s Ye s +
32-bit Counter in TIM2 and
TIM5
Identical
Full compatibility for
the same feature
DAC Ye s Ye s + DMA underrun interrupt Identical
Full compatibility for
the same feature