dm00077904

UM1612
User manual
How to upgrade the firmware to support USB communication for
PCs using Windows 7 and the STEVAL-PCC009V2
Introduction
The purpose of this user manual is to explain the steps to upgrade the firmware to support
USB communication with PCs operating under Microsoft Windows 7 and the STEVALPCC009V2 demonstration board. After the firmware upgrade the board will work with PCs
running both Windows XP and Windows 7 operating systems.
For instructions on using the STEVAL-PCC009V2 demonstration board itself, please refer to
UM0935.
July 2013
DocID024284 Rev 1
1/26
www.st.com
Contents
UM1612
Contents
1
2
Installation and requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.1
System requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.2
Programming requirements using Windows 7 or Windows XP . . . . . . . . . 3
1.2.1
Hardware requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.2.2
Software requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
How to program the new firmware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
2.1
Connection between STEVAL-PCC009V2 and supported hardware . . . . . 9
2.1.1
Connection of STEVAL-PCC009V2 to ST LINK-2 . . . . . . . . . . . . . . . . . . 9
2.1.2
Connection of STEVAL-PCC009V2 to discovery kits . . . . . . . . . . . . . . . 9
2.2
Programming using the STM32 ST-LINK utility . . . . . . . . . . . . . . . . . . . . .11
2.3
Programming using the IBUUI updater tool (Windows XP only) . . . . . . . 18
3
How to run the board . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
4
Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
2/26
DocID024284 Rev 1
UM1612
Installation and requirements
1
Installation and requirements
1.1
System requirements
The modified firmware and software work with both Windows XP and Windows 7 OS. They
don’t support any other version of Microsoft Windows OS.
The user must have the latest service pack and critical updates for the version of Windows.
These can be downloaded from the Microsoft website (update.microsoft.com).
Follow these steps to determine the operating system of the PC:
1.
Right click on the icon “My Computer”
2.
Select “Properties”
3.
Select the “General” tab which provides information concerning the operating system
1.2
Programming requirements using Windows 7 or Windows
XP
1.2.1
Hardware requirements
•
STEVAL-PCC009V2 demonstration board
Figure 1. STEVAL-PCC009V2 board
DocID024284 Rev 1
3/26
Installation and requirements
•
UM1612
The ST-Link 2 interface and one of the discovery kits as given in the table below
Table 1. List of hardware
H/W toolset
Reference
– ST-Link 2
see Figure 2
– STM32F value line discovery kit
see Figure 3
– STM32F4 discovery kit
see Figure 4
– STM32L discovery kit
see Figure 5
Figure 2. ST LINK-2 IDE
4/26
DocID024284 Rev 1
UM1612
Installation and requirements
Figure 3. ST STM32F value line discovery kit
DocID024284 Rev 1
5/26
Installation and requirements
UM1612
Figure 4. STM32F4 discovery kit
6/26
DocID024284 Rev 1
UM1612
Installation and requirements
Figure 5. STM32L discovery kit
DocID024284 Rev 1
7/26
Installation and requirements
1.2.2
UM1612
Software requirements
The hex files can be updated using “STSW-PCC009V2: IBU Universal Interface firmware
updater” available after registration at:
http://www.st.com/web/en/catalog/tools/PF246414#
The “STSW-PCC009V2FW: STEVAL-PCC009V2 firmware” is also available at this address.
Please refer to “Related Tools and Software”.
Table 2. STM32 ST-Link
Note:
8/26
S/W toolset
Supported H/W
Download link
– STM32 STLink Utility
ST-Link
STM32F value line
discovery kit
STM32F4 discovery kit
STM32L discovery kit
http://www.st.com/internet/evalboard/product/251168.jsp
Please choose “STSW-LINK004” under “Related Tools and
Software”
Refer to the relevant AN/ UM to use the toolset
DocID024284 Rev 1
UM1612
2
How to program the new firmware
How to program the new firmware
By default, the STEVAL-PCC009V2 is programmed to work only with PCs using Windows
XP.
2.1
Connection between STEVAL-PCC009V2 and supported
hardware
The STEVAL board can be connected with the supported hardware mentioned in Table 1.
2.1.1
Connection of STEVAL-PCC009V2 to ST LINK-2
Connect the STEVAL-PCC009V2 to ST LINK-2 using a JTAG cable. The JTAG is connected
to connector J3 of the STEVAL-PCC009V2.
2.1.2
Connection of STEVAL-PCC009V2 to discovery kits
Connect the STEVAL-PCC009V2 to any one of the discovery kits using SWD. Connect 4
wires to connector J3 of the STEVAL-PCC009V2 and the SWD connector of each discovery
kit.
Table 3. SWD connector of discovery kit
Discovery kit
SWD connector
– STM32F value line discovery kit
CN2
– STM32F4 discovery kit
CN2
– STM32L discovery kit
CN2
Table 4. Connections between STEVAL-PCC009V2 and supported hardware
STEVAL-PCC009V2 (connector J3)
Any one discovery kit
(SWD connector)
– Pin 9 (TCK)
Pin 2 (JTCK)
– Pin 6 (GND)
Pin 3 (GND)
– Pin 7 (TMS)
Pin 4 (JTMS)
In some of the discovery kits, there is an optional pin 5 and pin 6 in the SWD connector. For
reprogramming the STEVAL-PCC009V2, this connection is not mandatory.
Remove the jumpers marked in red in the following schematics for the respective discovery
kits.
DocID024284 Rev 1
9/26
How to program the new firmware
UM1612
Figure 6. STM32F value line discovery kit - jumpers to be removed
SWD
R8
10K
CN2
T_JTC K
R11
22
22
T_JTMS
D3
D4
TCK/SWCLK
TMS/SW DI O
RES ET#
SB3
SB4
SB5
SB6
SB7
SB8
SB9
SB10
+3V3
S TM_JTC K
SWCLK
S TM_JTMS
SWDIO
1
2
3
4
R12
Z5V 1
1
2
3
4
Z5V 1
SWD
SB11
P R G -32
DE F AU L T
T_JR S T
CN3
Ju mpers O N -- > D I SCOVERY Selected
Ju mpers O FF - - > ST - L I N K Se le cte d
Figure 7. STM32F4 discovery kit - jumpers to be removed
TCK/SW CL K
TMS /SWDIO
T_SWO
Not Fitted
D2
AIN_1
R2
100
BAT6 0JFIL M
CN2
1
2
3
4
5
6
T_JTCK
R1 2
22
T_JTMS
R1 5
22
R1 6
22
Header 6
R1 7
T_NRST
T_SWO
PA1 4
PA1 3
NRST
PB 3
R E SE R V E D
R1 3
10K
SB 11
SB 12
DE F AU L T
SWD
T_NRST
SB 3
SB 2
SB 5
SB 4
SB 7
SB 6
SB 9
SB 8
3V
STM_ JTCK
SWCLK
STM_ JTMS
SWDIO
1
2
3
4
22
CN3
Jumpers ON -- > DISCOVERY Selected
Jumpers OFF - -> ST-LINK Selected
10/26
DocID024284 Rev 1
SWD
UM1612
How to program the new firmware
Figure 8. STM32L discovery kit - jumpers to be removed
TCK/SWCLK
TMS/SW DI O
T_SWO
Not Fitted
D7
AIN_1
R101
100
BAT6 0JFI LM
CN2
1
2
3
4
5
6
T_JTC K
R13
22
T_JTMS
R14
22
R102
22
Header 6
R103
T_NR S T
T_S WO
D5
PA 14
PA 13
NRS T
PB3
SWD
R E SE R V E D
R11
10K
SB10 0
SB10 1
DE F AU L T
SWD
T_NR S T
SB7
SB6
SB9
SB8
SB11
SB10
SB13
SB12
3V
S TM_JTC K
SWCLK
S TM_JTM S
SWDIO
D3
Z5V1
Z5V1
D6
D4
Z5V1
Z5V1
1
2
3
4
22
CN3
Ju mpe r s O N -- > D I SCOVERY Sele cte d
Ju mpe r s O FF - - > ST - L I N K Sele cte d
2.2
Programming using the STM32 ST-LINK utility
1.
Download the hex file in a folder on the PC (in this example, it has been downloaded to
the STEVAL-PCC009V2 folder).
2.
Once the connections are made and the STEVAL-PCC009V2 and other hardware (ST
LINK-2/ discovery kit) are powered using the USB, the user can start the toolset using
the sequence given in the following figure.
Figure 9. ST-LINK utility from PC program menu
DocID024284 Rev 1
11/26
How to program the new firmware
3.
UM1612
If the tool is correctly installed, the following window appears.
Figure 10. ST-LINK utility default window
12/26
DocID024284 Rev 1
UM1612
How to program the new firmware
4.
Configure the connection as shown in the following figure.
Figure 11. ST-LINK Utility connection settings
5.
The following option must be selected in “Settings”. The user should note the change in
protocol to the SWD option.
Figure 12. ST-LINK utility connection selection
DocID024284 Rev 1
13/26
How to program the new firmware
6.
UM1612
Connect to the hardware using following option.
Figure 13. ST-LINK utility connect option
7.
If there are any errors in the connection, an error message appears in the window of
the ST-LINK Utility as given below. The user can check the hardware connection and
perform the previous steps in order to rectify.
Figure 14. ST-LINK status window
14/26
DocID024284 Rev 1
UM1612
How to program the new firmware
8.
Load the hex file using the menu File -> Open.
Figure 15. ST-LINK utility open
9.
Select the IBUUI_V2.hex file first as shown below.
Figure 16. ST-LINK Utility -> File -> Select Hex file
DocID024284 Rev 1
15/26
How to program the new firmware
UM1612
10. If the file is loaded correctly, the following window appears.
Figure 17. ST-LINK utility -> File -> Select Hex file
11. After the program is loaded, start the programming by pressing the OK button in the
following window.
Figure 18. Option OK to download
16/26
DocID024284 Rev 1
UM1612
How to program the new firmware
Figure 19. Program selection
12. The window that prompts programming may not be visible in the latest version, in which
case the user can start the programming using the option below.
Figure 20. Option to program
DocID024284 Rev 1
17/26
How to program the new firmware
UM1612
13. Once the program option is clicked, the following window appears.
Figure 21. Programming in progress
14. Once the programming is complete, the status can be seen in the output window.
Figure 22. Program complete status
2.3
Programming using the IBUUI updater tool (Windows XP
only)
1.
The user must register and then download the archive file containing the tool and
extract its content. This file can be found at the following address:
http://www.st.com/web/en/catalog/tools/PF246414#
2.
Running the tool (IBUUI updater.exe), the following window appears.
Figure 23. IBUUI updater main window
18/26
DocID024284 Rev 1
UM1612
How to program the new firmware
3.
Click on the "Start" button in order to begin the step-by-step procedure.
4.
The update procedure installs the board drivers also, so the STEVAL-PCC009V2
should be left unplugged until the connection is required by the procedure.
Figure 24. STEVAL-PCC009V2 - request to disconnect from PC
5.
Plug in the board when prompted.
Figure 25. STEVAL-PCC009V2 - request to connect to PC
6.
If the board has never been connected to the PC before, when the board is connected
to the PC, the new hardware installation procedure of Windows XP is started (Found
New Hardware Wizard).
The user should proceed with the hardware installation BEFORE continuing with
the firmware update.
If the STEVAL-PCC009 has been already installed, the user can proceed to step 10.
DocID024284 Rev 1
19/26
How to program the new firmware
7.
UM1612
Select "No, not this time" when the system prompts to connect to Windows Update.
Figure 26. New hardware installation procedure
20/26
DocID024284 Rev 1
UM1612
How to program the new firmware
8.
Select the "Install the software automatically (Recommended)" option for the wizard.
When the driver certification warning is shown, select "Continue Anyway" in order to
complete the installation of the STEVAL-PCC009V2.
Figure 27. Driver certification warning
DocID024284 Rev 1
21/26
How to program the new firmware
9.
UM1612
If the installation procedure has been done correctly, the following window is shown.
Figure 28. STEVAL-PCC009V2 installation procedure completed
10. Click on the OK button of the prompt message to continue the step-by-step procedure.
Figure 29. STEVAL-PCC009V2 plug request to be confirmed
11. The device is switched to DFU mode and the firmware upgrade begins.
During the firmware upgrade the board MUST not be unplugged from the PC.
22/26
DocID024284 Rev 1
UM1612
How to program the new firmware
12. If the firmware upgrade has been done correctly, the following window is shown.
Figure 30. Firmware upgrade completed
DocID024284 Rev 1
23/26
How to run the board
3
UM1612
How to run the board
Once the program has been downloaded, the STEVAL-PCC009V2 can be removed from
the JTAG/ SWD connection. Once the user presses the RESET button (SW1), the board is
listed on the PC as shown below.
Figure 31. PC using Windows XP
Figure 32. PC using Windows 7
For instructions on operating the STEVAL-PCC009V2, please refer to UM0935.
24/26
DocID024284 Rev 1
UM1612
4
Revision history
Revision history
Table 5. Document revision history
Date
Revision
23-Jul-2013
1
Changes
Initial release.
DocID024284 Rev 1
25/26
UM1612
Please Read Carefully:
Information in this document is provided solely in connection with ST products. STMicroelectronics NV and its subsidiaries (“ST”) reserve the
right to make changes, corrections, modifications or improvements, to this document, and the products and services described herein at any
time, without notice.
All ST products are sold pursuant to ST’s terms and conditions of sale.
Purchasers are solely responsible for the choice, selection and use of the ST products and services described herein, and ST assumes no
liability whatsoever relating to the choice, selection or use of the ST products and services described herein.
No license, express or implied, by estoppel or otherwise, to any intellectual property rights is granted under this document. If any part of this
document refers to any third party products or services it shall not be deemed a license grant by ST for the use of such third party products
or services, or any intellectual property contained therein or considered as a warranty covering the use in any manner whatsoever of such
third party products or services or any intellectual property contained therein.
UNLESS OTHERWISE SET FORTH IN ST’S TERMS AND CONDITIONS OF SALE ST DISCLAIMS ANY EXPRESS OR IMPLIED
WARRANTY WITH RESPECT TO THE USE AND/OR SALE OF ST PRODUCTS INCLUDING WITHOUT LIMITATION IMPLIED
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE (AND THEIR EQUIVALENTS UNDER THE LAWS
OF ANY JURISDICTION), OR INFRINGEMENT OF ANY PATENT, COPYRIGHT OR OTHER INTELLECTUAL PROPERTY RIGHT.
ST PRODUCTS ARE NOT AUTHORIZED FOR USE IN WEAPONS. NOR ARE ST PRODUCTS DESIGNED OR AUTHORIZED FOR USE
IN: (A) SAFETY CRITICAL APPLICATIONS SUCH AS LIFE SUPPORTING, ACTIVE IMPLANTED DEVICES OR SYSTEMS WITH
PRODUCT FUNCTIONAL SAFETY REQUIREMENTS; (B) AERONAUTIC APPLICATIONS; (C) AUTOMOTIVE APPLICATIONS OR
ENVIRONMENTS, AND/OR (D) AEROSPACE APPLICATIONS OR ENVIRONMENTS. WHERE ST PRODUCTS ARE NOT DESIGNED
FOR SUCH USE, THE PURCHASER SHALL USE PRODUCTS AT PURCHASER’S SOLE RISK, EVEN IF ST HAS BEEN INFORMED IN
WRITING OF SUCH USAGE, UNLESS A PRODUCT IS EXPRESSLY DESIGNATED BY ST AS BEING INTENDED FOR “AUTOMOTIVE,
AUTOMOTIVE SAFETY OR MEDICAL” INDUSTRY DOMAINS ACCORDING TO ST PRODUCT DESIGN SPECIFICATIONS.
PRODUCTS FORMALLY ESCC, QML OR JAN QUALIFIED ARE DEEMED SUITABLE FOR USE IN AEROSPACE BY THE
CORRESPONDING GOVERNMENTAL AGENCY.
Resale of ST products with provisions different from the statements and/or technical features set forth in this document shall immediately void
any warranty granted by ST for the ST product or service described herein and shall not create or extend in any manner whatsoever, any
liability of ST.
ST and the ST logo are trademarks or registered trademarks of ST in various countries.
Information in this document supersedes and replaces all information previously supplied.
The ST logo is a registered trademark of STMicroelectronics. All other names are the property of their respective owners.
© 2013 STMicroelectronics - All rights reserved
STMicroelectronics group of companies
Australia - Belgium - Brazil - Canada - China - Czech Republic - Finland - France - Germany - Hong Kong - India - Israel - Italy - Japan Malaysia - Malta - Morocco - Philippines - Singapore - Spain - Sweden - Switzerland - United Kingdom - United States of America
www.st.com
26/26
DocID024284 Rev 1
Similar pages