For designers of STM32 microcontroller applications, it is important to be able to easily replace one microcontroller type by another one in the same product family. Migrating an application to a different microcontroller is often needed, when product requirements grow, putting extra demands on memory size, or increasing the number of I/Os. On the other hand, cost reduction objectives may force you to switch to smaller components and shrink the PCB area. This application note is written to help you and analyze the steps you need to migrate from an existing STM32F1 device to an STM32F0 device. It gathers the most important information and lists the vital aspects that you need to address. To migrate your application from STM32F1 series to STM32F0 series, you have to analyze the hardware migration, the peripheral migration and the firmware migration. To benefit fully from the information in this application note, the user should be familiar with the STM32 microcontroller family. You can refer to the following documents that are available from www.st.com. ● The STM32F1 family reference manuals (RM0008 and RM0041), the STM32F1 datasheets, and the STM32F1 Flash programming manuals (PM0075, PM0063 and PM0068). ● The STM32F0 family reference manual (RM0091) and the STM32F0 datasheets. For an overview of the whole STM32 series and a comparison of the different features of each STM
This application note assists designers in migrating applications from the STM32F1 series to the STM32F0 series. It addresses the need to replace microcontrollers due to growing product requirements, cost reduction objectives, or PCB area constraints. The document analyzes the necessary steps for hardware, peripheral, and firmware migration between these two product families.
The guide details specific differences in pinout, boot mode selection, and peripheral compatibility. It provides a classification of peripherals into common, modified, and considerably changed categories, offering specific advice on updating drivers for components like the RCC, ADC, and RTC. Additionally, it includes code examples and API correspondence tables to facilitate the transition.
The document covers the STM32F0 Entry-level microcontroller and the STM32F1 Mainstream microcontroller.
You must analyze the hardware migration, the peripheral migration, and the firmware migration.
The STM32F0 family uses an option bit located in the User option bytes at 0x1FFFF800 memory address instead of using two pins.