| công cụ tìm kiếm bảng dữ liệu linh kiện điện tử |
|
AN3422 bảng dữ liệu(PDF) 38 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN3422 bảng dữ liệu(HTML) 38 Page - STMicroelectronics |
|
38 / 52 page ![]() Firmware migration using the library AN3422 38/52 Doc ID 018976 Rev 2 5 Firmware migration using the library This section describes how to migrate an application based on STM32F1xx Standard Peripherals Library in order to use the STM32L1xx Standard Peripherals Library. The STM32F1xx and STM32L1xx 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 to an L1 series product. Note: In the rest of this chapter (unless otherwise specified), the term “STM32L1xx Library” is used to refer to the STM32L1xx Standard Peripherals Library and the term of “STM32F10x Library” is used to refer to the STM32F10x Standard Peripherals Library. 5.1 Migration steps To update your application code to run on STM32L1xx Library, you have to follow the steps listed below: 5. 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 STM32L1xxx 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 STM32L1xx Library install package under the following directory: Libraries\CMSIS\Device\ST\STM32L1xx. 6. Add STM32L1xx Library source files to the application sources a) Replace the stm32f10x_conf.h file of your application with stm32l1xx_conf.h provided in STM32L1xx Library. b) Replace the existing stm32f10x_it.c/stm32f10x_it.h files in your application with stm32l1xx_it.c/stm32l1xx_it.h provided in STM32L1xx Library. 7. Update the part of your application code that uses the RCC, PWR, GPIO, FLASH, ADC and RTC drivers. Further details are provided in the next section. Note: The STM32L1xx Library comes with a rich set of examples (87 in total) demonstrating how to use the different peripherals (under Project\STM32L1xx_StdPeriph_Examples\). 5.2 RCC 1. System clock configuration: as presented in section 4.4: RCC the STM32L1 and F1 series have the same clock sources and configuration procedures. However, there are some differences related to the product voltage range, 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_stm32l1xx.c file. This file provides an |
|
Link URL |
| Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không? [ DONATE ] |
Alldatasheet là | Quảng cáo | Liên lạc với chúng tôi | Chính sách bảo mật | Liên kết đến bảng dữ liệu | Trao đổi link | Tìm kiếm theo nhà sản xuất All Rights Reserved©Alldatasheet.com |
| 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 |