STMicroelectronics STM32F10x Standard Peripherals Library Updates

STMicroelectronics STM32F10x Standard Peripherals Library Updates

CrossWorks Version 4 Installation Instructions

To install this support package
  1. Click the Tools > Package Manager menu option to open the package manager window.
  2. Right click on the STMicroelectronics STM32F10x Standard Peripherals Library Updates entry and select Install Selected Packages.
  3. Click Next to take you to the summary page.
  4. Click Next to install the package.
  5. Click Finish to close the package manager window.
  6. Click the Tools > Show Installed Packages.
  7. Click on the STMicroelectronics STM32F10x Standard Peripherals Library Updates link to view the package and its contents.
To manually install this support package
  1. If you have not done so already, follow the CMSIS 3 Support Package, CrossWorks Tasking Library Package and STMicroelectronics STM32 CPU Support Package installation instructions.
  2. Download the file stm32f10x_stdperiph_lib_updates.hzr using your web browser.
  3. Click the Tools > Manually Install Packages menu option.
  4. Select the file you have just downloaded to install the package.
  5. Click the Tools > Show Installed Packages.
  6. 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

1.1

1.0

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:

After the required project file is loaded:

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.