STMicroelectronics STEVAL-PCC009V2 User Manual
STMicroelectronics STEVAL-PCC009V2 is a demonstration board designed to introduce users to the I²C Bus Universal Interface (IBU) peripheral. It allows for the connection and communication between different types of devices through an I²C bus interface. The board is compatible with both Windows XP and Windows 7 operating systems and can be used with various hardware options like ST-Link 2, STM32F value line discovery kit, STM32F4 discovery kit, or STM32L discovery kit.
Pubblicità
Pubblicità
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 STEVAL-
PCC009V2 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
Contents
UM1612
Installation and requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Programming requirements using Windows 7 or Windows XP . . . . . . . . . 3
Hardware requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
How to program the new firmware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Connection between STEVAL-PCC009V2 and supported hardware . . . . . 9
Connection of STEVAL-PCC009V2 to ST LINK-2 . . . . . . . . . . . . . . . . . . 9
Connection of STEVAL-PCC009V2 to discovery kits . . . . . . . . . . . . . . . 9
Programming using the STM32 ST-LINK utility . . . . . . . . . . . . . . . . . . . . .11
Programming using the IBUUI updater tool (Windows XP only) . . . . . . . 18
2/26 DocID024284 Rev 1
UM1612
1 Installation and requirements
Installation and requirements
1.2
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”
3. Select the “General” tab which provides information concerning the operating system
Programming requirements using Windows 7 or Windows
XP
•
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
– ST-Link 2
– STM32F value line discovery kit
– STM32F4 discovery kit
– STM32L discovery kit see
see
see
see
Reference
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
Figure 4. STM32F4 discovery kit
UM1612
6/26 DocID024284 Rev 1
UM1612 Installation and requirements
Figure 5. STM32L discovery kit
DocID024284 Rev 1 7/26
Installation and requirements UM1612
Note:
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”.
Supported H/W
Table 2. STM32 ST-Link
Download link S/W toolset
– STM32 ST-
Link 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
8/26 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
2.1.1
2.1.2
Connection between STEVAL-PCC009V2 and supported hardware
The STEVAL board can be connected with the supported hardware mentioned in
.
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.
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
– STM32F4 discovery kit
– STM32L discovery kit
CN2
CN2
CN2
Table 4. Connections between STEVAL-PCC009V2 and supported hardware
STEVAL-PCC009V2 (connector J3)
Any one discovery kit
(SWD connector)
– Pin 9 (TCK)
– Pin 6 (GND)
– Pin 7 (TMS)
Pin 2 (JTCK)
Pin 3 (GND)
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
Figure 6. STM32F value line discovery kit - jumpers to be removed
T_JRS T SB11
SWD
TCK/SWCLK
TMS/SW DI O
RES ET#
UM1612
SWD
CN2
1
2
3
4
R8
10K
R11
R12
T _JTCK
22
22
T_JTMS
D3 D4
SB3
SB5
SB7
SB9
SB4
SB6
SB8
SB10
S TM_JTCK
S TM_JTMS
+3V3
SWCLK
SWDIO
CN3
Jumpers O FF - - > ST - L I N K Se le cte d
SWD
R1 3
10K
Figure 7. STM32F4 discovery kit - jumpers to be removed
Not Fitted
TCK/SW CL K
TMS /SWDIO
T_SWO
T_NRST
SB 12
SB 11
PA1 4
PA1 3
NRST
PB 3
CN2
3
4
1
2
5
6
Header 6
D2
R2
BAT6 0JFIL M
R1 2 T_JTCK
22
100
AIN_1
R1 5
R1 6
R1 7
22
22
22
T_JTMS
T_NRST
T_SWO
SB 3
SB 5
SB 7
SB 9
SB 2
SB 4
SB 6
SB 8
STM_ JTCK
STM_ JTMS
3V
SWCLK
SWDIO
SWD
CN3
Jumpers ON -- > DISCOVERY Selected
Jumpers OFF - -> ST-LINK Selected
10/26 DocID024284 Rev 1
UM1612 How to program the new firmware
Figure 8. STM32L discovery kit - jumpers to be removed
Not Fitted
TCK/SWCLK
TMS/SW DI O
T_SWO
T_NR S T
SB10 1
SB10 0
PA 14
PA 13
NRS T
PB3
SWD
R11
10K
CN2
1
2
3
4
5
6
Header 6
D7
R101
100
AIN_1
BAT6 0JFI LM
R13
22
T_JTCK
R14
R102
R103
22
22
22
T_JTMS
T_NR S T
T_S WO D5 D3
D6
Z5V1
D4
Z5V1
SB7
SB9
SB11
SB13
Z5V1 Z5V1
SB6
SB8
S TM_JTCK
SB10
SB12
S TM_JTM S
3V
SWCLK
SWDIO
CN3
Jumpe r s O N -- > D I SCOVERY Sele cte d
Jumpe r s O FF - - > ST - L I N K Sele cte d
SWD
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. If the tool is correctly installed, the following window appears.
Figure 10. ST-LINK utility default window
UM1612
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. Connect to the hardware using following option.
Figure 13. ST-LINK utility connect option
UM1612
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
10. If the file is loaded correctly, the following window appears.
Figure 17. ST-LINK utility -> File -> Select Hex file
UM1612
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
13. Once the program option is clicked, the following window appears.
Figure 21. Programming in progress
UM1612
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 UM1612
7. 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 UM1612
9. 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
22/26
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.
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 How to run the board
UM1612
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
Date
23-Jul-2013
Revision
Table 5. Document revision history
Changes
1 Initial release.
Revision history
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
Scarica
Pubblicità