Using the STM32F10x_StdPeriph_Examples

Rating:
 
Vote for this:
Good  -  Bad

Answer

TrueSTUDIO/STM32 1.4.0

 

  • Create a project appropriate for your evaluation board using the TrueSTUDIO project wizard.

  • Replace the content in the generated “SRC” folder with the content from the example directory (Examples are located in "TrueSTUDIO STM32 Lite 1.4.0\Library\STM32F10x_StdPeriph_Lib_V3.3.0\Project\STM32F10x_StdPeriph_Examples" below the installation directory).

  • Build the project.

 

NOTE: Selecting an evaluation board in the project wizard will place all files relevant for this board in the "STM32_EVAL" directory. Since each example only configures what is needed from the library (stm32f10x_conf.h) some of the “board files” might produce build errors. To overcome this do one of the following:

o Do an “exclude from build” on the board file that produces the error.

o OR uncomment the missing “header” in “stm32f10x_conf.h”.