Electronic Components Datasheet Search
  English  ▼

X  

AN3427 Datasheet(PDF) 38 Page - STMicroelectronics

Part # AN3427
Description  Migrating a microcontroller application from STM32F1 to STM32F2 series
PDF  52 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN3427 Datasheet(HTML) 38 Page - STMicroelectronics

Back Button AN3427 Datasheet HTML 34Page - STMicroelectronics AN3427 Datasheet HTML 35Page - STMicroelectronics AN3427 Datasheet HTML 36Page - STMicroelectronics AN3427 Datasheet HTML 37Page - STMicroelectronics AN3427 Datasheet HTML 38Page - STMicroelectronics AN3427 Datasheet HTML 39Page - STMicroelectronics AN3427 Datasheet HTML 40Page - STMicroelectronics AN3427 Datasheet HTML 41Page - STMicroelectronics AN3427 Datasheet HTML 42Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 38 / 52 page
background image
Firmware migration using the library
AN3427
38/52
Doc ID 019001 Rev 1
4
Firmware migration using the library
This section describes how to migrate an application based on STM32F1xx Standard
Peripherals Library in order to use the STM32F2xx Standard Peripherals Library.
The STM32F1xx and STM32F2xx libraries have the same architecture and are CMSIS
compliant, they use the same driver naming and the same APIs for all compatible
peripheral.
Only a few peripheral drivers need to be updated to migrate the application from an F1
series product to an F2 series product.
Note:
In the rest of this chapter (unless otherwise specified), the term “STM32F2xx Library” is
used to refer to the STM32F2xx Standard Peripherals Library and the term “STM32F10x
Library” is used to refer to the STM32F10x Standard Peripherals Library.
4.1
Migration steps
To update your application code to run on STM32F2xx Library, you have to follow the steps
listed below:
1.
Update the toolchain startup files
a)
Project files: device connections and Flash memory loader. These files are
provided with the latest version of your toolchain that supports STM32F2xxx
devices. For more information please refer to your toolchain documentation.
b)
Linker configuration and vector table location files: these files are developed
following the CMSIS standard and are included in the STM32F2xx Library install
package under the following directory:
Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F2xx\
2.
Add STM32F2xxx Library source files to the application sources
a)
Replace the stm32f10x_conf.h file of your application with stm32f2xx_conf.h
provided in STM32F2xx Library.
b)
Replace the existing stm32f10x_it.c/stm32f10x_it.h files in your application with
stm32f2xx_it.c/stm32f2xx_it.h provided in STM32F2xx Library.
3.
Update the part of your application code that uses the RCC, DMA, GPIO, FLASH, ADC
and RTC drivers. Further details are provided in the next section.
Note:
The STM32F2xx Library comes with a rich set of examples (84 in total) demonstrating how
to use the different peripherals (under Project\STM32F2xx_StdPeriph_Examples\).
4.2
RCC
1.
System clock configuration: as presented in Section 3.4: RCC the STM32 F2 and F1
series have the same clock sources and configuration procedures. However, there are
some differences related to the PLL configuration, maximum frequency and Flash wait
state configuration. Thanks to the CMSIS layer, these differences are hidden from the
application code; you only have to replace the system_stm32f10x.c file by
system_stm32f2xx.c file. This file provides an implementation of SystemInit() function



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com