STM32F10x Discovery, part 2: configure project

It’s now time to launch Keil µVision software.

Start to create a new project with menu Project/New µVision Project.

Create a directory usart_3 under stm32, the working directory. Stm32/usart_3 will contain the project files.

Select Device for Target, the STM32F100RB soldered on the Discovery board:


At the dialog box “Copy ‘startup_md_vl.s’ to Project Folder and Add File to Project”, select ‘No’ as this file will be directly included later thru the library location definition.

Continue to update the project with dialog boxes thru ATL+F7, or right click on the Project top name.

In Target, select Use MicroLIB. This help to remap to UART the printf usage.

In C/C++ section:

  1. Define section: add definition of
  • STM32F10X_MD_VL,USE_STDPERIPH_DRIVER
  1. add libraries access in Include path:
  • .;..\Libraries\CMSIS\CM3\CoreSupport;..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x;..\Libraries\STM32F10x_StdPeriph_Driver\inc

For debug and program thru USB interface using SWD protocol, set the following configuration:

The next post will explain how to configure sources files.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s