STMicroelectronics AN4088 Migrating from STM32F1 to STM32F0 Application Note

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


STMicroelectronics AN4088 Migrating from STM32F1 to STM32F0 Application Note - cover page
Brand
STMicroelectronics
Category
microcontrollers
Document type
Application Note
Language
English
Pages
60
File format
PDF
File size
919 KB
Published
07 August, 2012
Updated
29 September, 2023
MD5 checksum
75770F466B360EACF88FA26BF2C9182D

About this manual

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.

What's inside

  • Hardware migration
  • Boot mode compatibility
  • Peripheral migration
  • STM32 product cross-compatibility
  • System architecture
  • Memory mapping
  • Reset and clock controller (RCC)
  • DMA interface
  • Interrupt Vectors
  • GPIO interface

Frequently asked questions

What microcontroller families does this application note cover?

The document covers the STM32F0 Entry-level microcontroller and the STM32F1 Mainstream microcontroller.

What are the three main steps required to migrate an application?

You must analyze the hardware migration, the peripheral migration, and the firmware migration.

How does the STM32F0 family select the boot mode compared to the F1 series?

The STM32F0 family uses an option bit located in the User option bytes at 0x1FFFF800 memory address instead of using two pins.

Download PDF (919 KB)

More STMicroelectronics Manuals


View all STMicroelectronics manuals →