![](images/stmicroelectronics.png)
STMicroelectronics STM32F10x Standard Peripherals Library Updates
STMicroelectronics STM32F10x Standard Peripherals Library Updates
CrossWorks Version 2 Installation Instructions
- To install this support package
-
- Click the Tools > Package Manager menu option to open the package manager window.
- Right click on the STMicroelectronics STM32F10x Standard Peripherals Library Updates entry and select Install Selected Packages.
- Click Next to take you to the summary page.
- Click Next to install the package.
- Click Finish to close the package manager window.
- Click the Tools > Show Installed Packages.
- Click on the STMicroelectronics STM32F10x Standard Peripherals Library Updates link to view the package and its contents.
- To manually install this support package
-
- If you have not done so already, follow the CMSIS 3 Support Package and STMicroelectronics STM32 CPU Support Package installation instructions.
- Download the file stm32f10x_stdperiph_lib_updates.hzr using your web browser.
- Click the Tools > Manually Install Packages menu option.
- Select the file you have just downloaded to install the package.
- Click the Tools > Show Installed Packages.
- Click on the STMicroelectronics STM32F10x Standard Peripherals Library Updates link to view the package and its contents.
- To install this support package using other versions
Release Notes
1.2
- Updated to work with V3.4.0 of the STM32F10x_StdPeriph_Lib.
- Requires the v2.7 of the STM32 CPU support package.
1.1
- Removed example project files.
- Updated template project files to build all driver and utility files.
1.0
- Initial Release.
Documentation
1) Installation
You should download and install STM32F10x_StdPeriph_lib.zip from the STMicroelectronics website.
When you install this package you will be prompted for the STM32F10x_StdPeriph_lib installation directory. This package will add CrossWorks project files to the STM32F10x_StdPeriph_lib installation directory.
The CrossWorks package installation process will set the CrossWorks global macro STM32F10X_STDPERIPH_LIB which is used by the CrossWorks project files to refer to STM32F10x_StdPeriph_lib directories and files. If you subsequently move the STM32F10x_StdPeriph_lib installation directory you should modify this macro using the "Tools | Macros" dialog.
This package has been tested on a subset of the examples supplied with version 3.4.0 of the STM32F10x_StdPeriph_lib package.
2) Template Project Files
A template project file for each of the evaluation boards is provided in:
- STM3210B-EVAL (click to load project)
- STM3210C-EVAL (click to load project)
- STM3210E-EVAL (click to load project)
- STM32100B-EVAL (click to load project)
After the required project file is loaded:
- Right click in the solution node in the project explorer and select Save Solution As...
- Navigate to the appropriate example directory and specify a filename to save.
- If you are using CrossWorks for ARM 2.0.7 or earlier you will need to load the newly created project file using File | Open Solution... If you are using CrossWorks for ARM 2.0.8 or later then the newly created project file will be loaded for you.
- Use Build 'Project' to build the example.
- The project will build the evaluation board specific utilities files which may not be appropriate for the example. These files are in the Utility Files folder and can be removed from the project or you can right click on the file and select Exclude From Build.
3) Modification of examples
Some examples have #define PUTCHAR_PROTOTYPE int __io_putchar(int ch) this will not build with CrossWorks for ARM and should be modified to be #define PUTCHAR_PROTOTYPE int putchar(int ch).
The NVIC vector relocation example should start the flash memory at 0x08002000 this can be done by setting the Section Placement Macros project property to be FLASH_START=0x08002000.