STM32-Primer-Manual.pdf

(976 KB) Pobierz
STM32-Primer-Manual_SG
STM32-Primer
Fun, easy introduction kit for STM32 microcontrollers
User Manual
July 2007
273940996.003.png
Table of Contents
1. Presentation ..................................................................................................................................... 3
2. The STM32 Primer hardware ......................................................................................................... 4
2.1. List of Contents ....................................................................................................................... 4
2.2. Description .............................................................................................................................. 4
2.3. STM32 microcontroller features ............................................................................................. 6
2.4. 3D accelerometer..................................................................................................................... 6
2.5. Power supply ........................................................................................................................... 7
2.6. For further information…........................................................................................................ 7
3. Getting started ................................................................................................................................. 9
3.1. Connect battery, charge and power up .................................................................................... 9
3.2. Play.......................................................................................................................................... 9
3.3. Install the Ride7 software toolset for ARM .......................................................................... 10
3.4. Modify a STM32 application example.................................................................................. 11
4. Managing your CircleOS applications .......................................................................................... 12
4.1. CircleOS architecture ............................................................................................................ 12
4.2. The CircleOS Scheduler........................................................................................................ 13
a) Initialization stage ............................................................................................................... 13
b) Periodic systick interrupt..................................................................................................... 13
c) Application scheduler .......................................................................................................... 14
4.3. CircleOS Memory map ......................................................................................................... 14
4.4. Managing app. on your STM32-Primer ................................................................................ 15
4.5. Selecting the current application .......................................................................................... 15
4.6. Downloading new applications ............................................................................................. 17
4.7. Restoring to factory configuration ........................................................................................ 17
4.8. Resetting your STM32-Primer .............................................................................................. 18
a) Hardware reset:.................................................................................................................... 18
b) Software reset ...................................................................................................................... 18
5. Developing CircleOS applications................................................................................................ 19
5.1. Libraries ................................................................................................................................ 19
5.2. Developing your first CircleOS application.......................................................................... 19
5.3. Debugging your application .................................................................................................. 20
5.4. Sharing your application with the Circle community ........................................................... 20
6. Recycling ...................................................................................................................................... 21
User Manual
STM32-Primer
1. Presentation
The STM32 Primer is an innovative, low-cost evaluation and development package that is designed
to provide a fun and easy introduction to the features of the STM32 with ARM Cortex™-M3 core.
The Primer’s ergonomic design with MEMS-based controls (navigate by tilting the tool left, right,
backward or forward) and LCD display provide fun and easy control of the included demonstration
firmware that includes graphical user interface and games based on the resources of the STM32
microcontroller.
The included firmware (CircleOS task scheduler, system services and demonstration applications)
implements low level functions driving the various STM32 peripherals. In addition, it includes
features for dynamic loading and management of new applications. All firmware, demos (C sources
and projects) and more future applications are available for free download at the STM32-Primer
dedicated site, http://www.stm32circle.com/ .
The Primer and Ride7 software toolset provide everything needed for programming the STM32 and
debugging applications, including:
USB host connection for in-circuit programming and debugging
Ride7 integrated development environment for code editing, device programming and
application debugging (debug up to 32K of code, with included version. For information
about upgrade to an unlimited version of Ride, visit http://www.stm32circle.com/resources ) .
GNU C /C++ compiler (unlimited compiling)
3
273940996.004.png 273940996.005.png
User Manual
STM32-Primer
2.
The STM32 Primer hardware
2.1. List of Contents
You will find when opening the box:
The STM32-Primer in its plastic case,
A USB cable for host PC connection that can be used to program and debug the STM32
microcontroller. Alternatively this cable can be used to communicate with the STM32-Primer if
you program a USB client application.
A CD-ROM containing Ride7 for ARM and all the STM32-Primer documentation.
2.2.
Description
The STM32-Primer provides the following devices:
An LCD color monitor (64K colors, 128x128 pixels),
2 USB connectors:
One marked "Debug" to connect to a PC running Ride for application development,
One marked "STM32" that allows the embedded application to communicate with an
external USB host.
One push button to switch on the power supply and to launch menu commands,
4
273940996.006.png
 
User Manual
STM32-Primer
One accelerometer (MEMS) that captures the 3D-position information related to the STM32-
Primer, and which is used to navigate through the menus, and to move the pointer.
Note that 2 footprints on the printed circuit could receive some optional interface components:
One IrDA transmitter (top side, close to the "Debug USB port") that allows communication
between two STM32-Primer,
One extra connector is linked to some unused I/O pins of the STM32
in order to add extra peripherals.
Opening the plastic case of the STM32-Primer is easy (no screw, no
clip). Just separate the two halves of the case and remove the board.
5
273940996.001.png 273940996.002.png
 
Zgłoś jeśli naruszono regulamin