Keil Logo

STR71x Firmware Library

STMicroelectronics provides an extensive software library for the STR7 device series. The library is ported to MDK-ARM and the RealView Compiler, and is available in the folder ...\ARM\RV31\LIB\ST.

The STR7 Firmware Library is a software collection for the STR7 peripherals. The library contains a set of functions for each peripheral. STMicroelectronics provides detailed documentation in the STR71x Firmware Library Users Manual.

The STR71x Firmware Library is available in three pre-build versions (source code is in a sub-folder):

  • STR71x.LIB: fast and efficient interrupt function handling (Keil-Style). This is the preferred library when starting new projects.
  • STR71xD.LIB: (Debug Version) STMicroelectronics specific interrupt handling and debug variables for peripherals. Because the Keil µVision Debugger provides detailed outputs for all on-chip peripherals, this library is not required when you are using the Keil µVision Debugger.
  • STR71xR.LIB: (Release Version) STMicroelectronics specific interrupt handling without debug variables. The Keil RTX does not work with STMicroelectronics interrupt handling, therefore, do not use this library with the Keil RTX.


  • If you use this library for different hardware, you may need to change the settings in the 71x_conf.h file and re-build the library using the µVision project.
  • If you use any STMicroelectronics library functions, be sure to include the header file, 71x_lib.H, since it contains the definitions for the STR71x Firmware Library functions and macros.


Project Workspace When using the STMicroelectronics specific interrupt handling (STR71xD.LIB or STR71xR.LIB), you need to add a copy of the source file ...\ARM\RV31\LIB\ST\STR71x\71x_it.c. This file contains all interrupt functions.


It is strongly recommended that you copy this file to your project folder.

  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.