ST提供兩種庫(kù)文件的形式:一是以“C文件”的形式提供;二是以編譯好的“.LIB文件”的形式提供。
LIB就是打包后的OBJ,Lib工具可以完成OBJ-LIB之間的打包操作。
“.LIB文件”可通過(guò)以下方法生成:選擇“Option For Target 'XXX'-->Output-->Creat Library:”后重新編譯工程。
在“STM32F10x Software Library Users Manual”的PDF文檔中介紹如下:
STM32F10x Software Library
STMicroelectronics provides an extensive software library for the STM32 device series. The library is ported to MDK-ARM and the RealView Compiler, and is available in the folder ...\ARM\RV31\LIB\ST.
The STM32F10x Software Library is a software collection for the STM32F10x peripherals. The library contains a set of functions for each peripheral. STMicroelectronics provides detailed documentation in the STM32F10x Software Library Users Manual which is available after installation on the μVision Project Workspace — Books tab.
The STM32F10x Software Library is available in two pre-built versions (source code is in a sub-folder):
STM32F10xR.LIB: STM32F10x Software Library (Release Version)
STM32F10xD.LIB: STM32F10x Software Library (Debug Version)
STM32F10xR.LIB和STM32F10xD.LIB存放位置為:“...\ARM\RV31\LIB\ST”,其中“...”表示安裝Keil的根目錄。