Keil Logo

Example Programs

The Keil MDK-ARM Development Tools download includes several example programs that are configured for the Keil MCBSTR7 Board.

Each example program is stored in a separate folder in \KEIL\ARM\BOARDS\HITEX\MCBSTR7\ along with project files that help you quickly build the project and run the program.

The following example programs are installed automatically:

  • BLINKY
    Toggles the LEDs and prints "Hello World" to the serial port UART - A.
  • HELLO
    Prints "Hello World" (every 500ms based on a timer interrupt) and shows the Potentiometer position using the 8 LEDs.
  • RTX_BLINKY
    Simple RTX Application that shows the usage of an RTOS on STR7 devices. The example project simulates the step-motor driver. Four LEDs blink simulating the activation of the four output driver stages.
  • ST_BLINKY
    Identical to the BLINKY example, but uses the STM interrupt handler (see Note).
  • ST_HELLO
    Identical to the Hello example, but uses the STM interrupt handler (see Note).
  • \USB\HID
    The USB HID project is a demo program. The USB Human Interface Device example project is recognized by the host PC running Windows which then loads a generic HID driver. The board LEDs and Push Buttons may be accessed from the PC through a custom HID Client Program.
  • \USB\MEMORY
    The Memory project is a demo program. The example project demonastrates a USB Memory based on a USB Mass Storage Device. LEDs display the status of the USB Device.

Note

  • The STM interrupt handler implements a generic layer for interrupt functions that creates additional overhead. When using the Keil Advanced RTOS, the STM interrupt handler cannot be used. Therefore, we recommend writing interrupt functions using the Keil-style as described in Keil Examples.

More example projects and programs are available at:

http://www.keil.com/download/list/arm.htm

These projects and programs let you start programming other features of the STR71x device, such as Interrupt-driven SIO, PWM and more.

  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.