UM0462 - STM32™ and STM8™ Flash loader demonstrator.pdf

(742 KB) Pobierz
STM32™ and STM8™ Flash loader demonstrator
UM0462
User manual
STM32™ and STM8™
Flash loader demonstrator
Introduction
The purpose of this document is to describe the STMicroelectronics STM32™ and STM8™
Flash loader demonstrator application that was developed to illustrate the System memory
boot loader capabilities.
This document details the prerequested hardware and software environments, as well as
the use cases of the demonstrator software.
July 2009
Doc ID 13916 Rev 6
1/21
273960458.002.png
Contents
UM0462
Contents
1
Getting started . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
1.1
Package contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
1.1.1
Software contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
1.1.2
Hardware contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
1.2
System requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
1.3
Flash loader demonstrator installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
1.3.1
Software installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
1.3.2
Hardware installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
2
User interface description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
3
Command-line usage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
4
Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
2/21
Doc ID 13916 Rev 6
273960458.003.png
UM0462
List of tables
List of tables
Table 1.
Document revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Doc ID 13916 Rev 6
3/21
273960458.004.png
List of figures
UM0462
List of figures
Figure 1.
System Properties dialog box . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Figure 2.
Device Manager window. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Figure 3.
Connection settings page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Figure 4.
Flash status page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Figure 5.
Device information page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Figure 6.
Operation choice page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Figure 7.
Option byte edition page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Figure 8.
Operation progress page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
4/21
Doc ID 13916 Rev 6
273960458.005.png
UM0462
Getting started
1
Getting started
1.1
Package contents
The following items are supplied in the Flash loader demonstrator package:
1.1.1
Software contents
1. STBLLIB.dll : a dynamic-link library implementing the system memory boot loader
protocol and the communication APIs as virtual functions to be loaded dynamically
from the STUARTBLLib.dll and STCANBLLib.dll files.
2. STUARTBLLib.dll : a dynamic-link library implementing the system memory boot loader
protocol and the COM communication APIs.
3. STCANBLLib.dll : a dynamic-link library implementing the system memory boot loader
protocol and the CAN communication APIs.
4. Files.dll : a dynamic-link library implementing the needed file manipulation APIs to load
and store binary, hexadecimal and motorola S19 files.
5. STMicroelectronics Flash loader.exe: a wizard application that provides the high-level
operations that can be performed by the user.
6. STMFlashLoader.exe : a command-line version of the STMicroelectronics Flash
loader.exe that provides the same features over several options.
7. The “Map” directory is located in the installation directory. It contains the mapping
description files of the supported devices.
8. The “Src” directory is located in the installation directory. It contains the header and Lib
files of the two DLLs and the complete source of the command-line version.
9. The “Doc” directory is located in the installation directory, it contains the UM0462 and
UM0516 ( Windows API for STMicroelectronics microcontroller boot loaders ) user
manuals.
1.1.2
Hardware contents
The Flash loader demonstrator is designed to work with all STMicroelectronics devices that
support the system memory boot mode protocols. For more details, please visit the
STMicroelectronics website ( http://www.st.com ).
1.2
System requirements
In order to use the Flash loader demonstrator with the Windows operating system, a recent
version of Windows, such as Windows 98, Millennium, 2000, XP or Vista, must be installed
on the PC.
The version of the Windows OS installed on your computer may be determined by right-
clicking on the “My Computer” icon on the desktop, then clicking on the “Properties” item in
the displayed pop-up menu. The OS type is displayed in the “System Properties” dialog box
under the “System” label as shown in Figure 1 .
Doc ID 13916 Rev 6
5/21
273960458.001.png
Zgłoś jeśli naruszono regulamin