REva STM32 Daughterboard User Guide - Uchi Embedded€¦ · REva User Guide STM32 3. STM32F103...
Transcript of REva STM32 Daughterboard User Guide - Uchi Embedded€¦ · REva User Guide STM32 3. STM32F103...
REva User Guide STM32
Contents
1. INTRODUCTION................................................................................................................4
1.1 Purpose of this manual....................................................................................................................4
1.2 Scope of this manual.......................................................................................................................4
1.3 Additional help or information..........................................................................................................4
2. REVA DAUGHTERBOARDS.............................................................................................5
2.1 Insertion/Extraction..........................................................................................................................5
2.2 Power supply warning......................................................................................................................5
2.3 Insertion/Extraction cycles warning..................................................................................................5
3. STM32F103 DAUGHTERBOARD.....................................................................................6
3.1 Features..........................................................................................................................................6
3.2 Motherboard power supply configuration.........................................................................................6
3.3 Using the daughterboard.................................................................................................................6
3.3.1 Boot configuration.....................................................................................................................6
3.3.2 Vbat configuration.....................................................................................................................6
3.3.3 CAN configuration.....................................................................................................................6
3.3.4 USB mini-B connector..............................................................................................................7
3.4 Pinout (from the STM32F103 datasheet).........................................................................................7
3.5 Inventory of connections by REva feature........................................................................................8
3.6 Inventory of the STM32F103-DB connections (by I/O port)..............................................................9
3.7 STM32F103-DB schematics..........................................................................................................10
3.7.1 Microcontroller........................................................................................................................10
3.7.2 CAN, USB, RESET, JTAG......................................................................................................11
3.7.3 Motherboard connections.......................................................................................................12
3.7.4 Power, Boot, Clock.................................................................................................................13
- 2 -
REva User Guide STM32
4. STM32F107 DAUGHTERBOARD...................................................................................14
4.1 Features........................................................................................................................................14
4.2 Motherboard power supply configuration.......................................................................................14
4.3 Using the daughterboard...............................................................................................................14
4.3.1 Audio connector......................................................................................................................14
4.3.2 Boot configuration...................................................................................................................14
4.3.3 CAN configuration...................................................................................................................15
4.3.4 Powering Reva from mini-USB connector...............................................................................15
4.3.5 USB mini-B connector............................................................................................................15
4.4 Pinout (from the STM32F107 datasheet).......................................................................................16
4.5 Inventory of connections by REva feature......................................................................................17
4.6 Inventory of the STM32F107-DB connections (by I/O port)............................................................18
4.7 STM32F107-DB schematics..........................................................................................................20
4.7.1 Microcontroller........................................................................................................................20
4.7.2 USB-CAN...............................................................................................................................21
4.7.3 Ethernet..................................................................................................................................22
4.7.4 Audio......................................................................................................................................23
5. CONFORMITY.................................................................................................................24
6. GLOSSARY.....................................................................................................................26
7. HISTORY.........................................................................................................................27
- 3 -
1. Introduction REva User Guide STM32
1. IntroductionThe REva universal evaluation board has been designed for quick and easy evaluation of a wide range of microcontrollers. It is made up of a generic REva motherboard with embedded RLink in-circuit programmer and debugger, and a daughterboard featuring a target microcontroller.
The REva's key features include:● Digital and analog I/O evaluation features including on-board LEDs, buttons, switches, external
analog connector, temperature sensor and potentiometer,● On-board I²C EEPROM and bus extension connector,● On-board RS232 driver and DB9 connector,● SPI, CAN and USB connections (depending on the target device),● Embedded RLink for in-circuit debugging and in-circuit programming,● VDD settings for 1.8V, 3.3V and 5V microcontrollers,● USB powered, no external power required.
Additionally, the REva V3.0 and later boards feature:● A LCD monitor (26x96 pixels),● VDD settings for 1.8V, 3.3V and 5V microcontrollers,● USB powered, no external power required.
This document describes the daughterboards based on microcontrollers of the ARM for ST (STR) family. For more information on the motherboard, please read the “REva User Guide: Mother Board” documentation.
1.1 Purpose of this manualThis guide should be used by anyone who is interested in REva and STM32 microcontrollers.
1.2 Scope of this manualThis manual is applicable to daughterboards based on microcontrollers of the ST-STM32 family.Other documents exist for daughterboards that are based on other families of microcontrollers, see the Help menu in the Ride7 software for details.For motherboard information, see the REva Motherboard User Guide.
1.3 Additional help or informationPlease visit the Raisonance website: http://www.raisonance.com/ and the forum http://www.raisonance.com/Forum/punbb/ or contact Raisonance.Address: Raisonance S.A.S.
17, Avenue Jean Kuntzmann,38330 Montbonnot Saint Martin France
Telephone: +33 4 76 61 02 30Fax: +33 4 76 41 81 68Email: [email protected] you find any errors or omissions, or if you have suggestions for improving this manual, please let us know by email.
- 4 -
REva User Guide STM32 2. REva daughterboards
2. REva daughterboardsThe daughterboard contains all the components dedicated to a specific target microcontroller, including the microcontroller itself, a clock selector and other device dependent features.Each daughterboard is precisely described in the corresponding chapter later in this user guide.Other documents also exist for the daughterboards based on other families of microcontrollers, see the Help menu in the Ride7 software.
2.1 Insertion/ExtractionThe daughterboards must be inserted/extracted following the procedure described on this schema.
Insertion1. INSERT the daughterboard completely.2. LOWER the daughterboard.3. LOCK: push the daughterboard into the latch on both sides.
Extraction4. UNLOCK the latch on both sides.5. RAISE the board (automatic).6. EXTRACT the daughterboard.
2.2 Power supply warningAlways ensure that a proper power supply (or no power supply at all) is being provided before inserting a daughterboard.The daughterboards are designed to work at a specific voltage. If the incorrect voltage is supplied on the motherboard, the microcontroller could be severely damaged.Do not insert 1.8V daughterboards before the RLink and the REva have been broken apart. As ISP/ISD signals are connected directly between the motherboard and the RLink, it is mandatory to break these connections before using 1.8V target devices, as the RLink cannot work at this voltage.
2.3 Insertion/Extraction cycles warningChange daughterboards only when needed.The SO-DIMM connector is guaranteed for only 20 insertion/extraction cycles.
- 5 -
3. STM32F103 daughterboard REva User Guide STM32
3. STM32F103 daughterboard
3.1 Features
● 1 STM32F103RBT6 microcontroller● Configuration jumpers:
- Boot mode- Vbat configuration- CAN mode and termination resistor
● An 8MHz crystal for main clock and USB clock generation● A 32K crystal for RTC operation● 1 USB mini-B connector● 1 CAN bus transceiver (bottom side)● Some passive “glue logic” devices
3.2 Motherboard power supply configurationThe STM32F103 daughterboard must be supplied with 3.3V. Supplying 5V to this microcontroller could severely damage it.
Note: REva motherboards prior to version 2.0 are not recommended, as their voltage regulator must configured manually and can lead to daughterboard destruction if erroneously configured.
On REva v2.0 and later motherboards, only the regulator input selection jumper can be used. The VDD selection jumper must be left in position (1) because position (2) is not connected (direct power supply from the USB 5V is not available, in order to avoid board damage)
3.3 Using the daughterboard
3.3.1 Boot configuration
The boot type can be selected through the appropriate 2-position, 4-pin jumper settings (on the daughterboard) either in the RAM position or in the FLASH position. This must be in accordance with your project configuration or you will have a debugger error when starting your application.
3.3.2 Vbat configuration
The backup circuitry of the STM32 (Osc. 32 KHz, RTC, backup registers) can be either activated or not through its 2-position, 4-pin jumper. The appropriate daughterboard jumper settings must be selected between either Vbat-GND (no battery backup) or VCC-Vbat (battery backup activated).
3.3.3 CAN configuration
The CAN can be configured through the 3-position, 6-pin jumper on the daughterboard.
- 6 -
REva User Guide STM32 3. STM32F103 daughterboard
Place a jumper on the “Terminate” pins in order to enable the CAN termination resistor.If you are using 1Mbps, place a jumper on the appropriate pins. If you are using lower CAN speeds, place a jumper on the 500kbps pins.
3.3.4 USB mini-B connector
Be gentle when disconnecting the USB cable from the mini-B connector of the STM32F103 daughterboard: The SO-DIMM connector could be torn off the daughterboard if you are pulling off the USB cable too strongly.
3.4 Pinout (from the STM32F103 datasheet)
- 7 -
3. STM32F103 daughterboard REva User Guide STM32
3.5 Inventory of connections by REva feature
Feature Micro pin Uses Alt Func Comments
Outputs
D7 PC13 1 - Light when command is low
D6 PC12 1 - Light when command is low
D5 PC11 1 - Light when command is low
D4 PC10 1 - Light when command is low
D3 PC9 1 - Light when command is low
D2 PC8 1 - Light when command is low
D1 PC7 1 - Light when command is low
D0 PC6 1 - Light when command is low
Inputs
BT6 PC0 1 - No pull-up/down, off=float, on=low/high jumper
BT5 PA2 1 - No pull-up/down, off=float, on=low
SW4 PA4 1 - No pull-up/down, off=float, on=low
SW3 PA3 1 - No pull-up/down, off=float, on=low
SW2 PA1 1 - No pull-up/down, off=float, on=low
SW1 PA0 1 - No pull-up/down, off=float, on=low
Analog
ANA IN1 PC1 1 - External analog input
ANA IN2 PC2 1 - External analog input
PWM P0.7 1 - Connectable to the buzzer or to ANA_OUT
POT PC4 1 - Potentiometer analog input, min=0V, max=VDD
TEMP PC3 1 - Temperature sensor analog input
Communication
SCL PB6 1 - I²C clock, pull-up by jumper
SDA PB7 1 - I²C data, pull-up by jumper
SCK PA5 1 - SPI clock, no pull-up/down
MOSI PA7 1 - SPI master out slave in, no pull-up/down
MISO PA6 1 - SPI master in slave out, no pull-up/down
TX PA9 1 - Serial transmit
RX PA10 1 - Serial receive
CAN-TX PB9 1 - CAN transmit
CAN-RX PB8 1 - CAN receive
- 8 -
REva User Guide STM32 3. STM32F103 daughterboard
3.6 Inventory of the STM32F103-DB connections (by I/O port)
I/O name REva pin (func)
PA15 J2.17 JTDI
PA14 J2.9 JTCK
PA13 J2.11 JTMS
PA12 - USBDP
PA11 - USBDM
PA10 J2.72 RX
PA9 J2.70 TX
PA8 J2.50 PWM
PA7 J2.66 MOSI
PA6 J2.68 MISO
PA5 J2.64 SCK
PA4 J2.34 SW4
PA3 J2.36 SW3
PA2 J2.32 BT5
PA1 J2.38 SW2
PA0 J2.40 SW1
I/O name REva pin (func)
PB15 J2.37 -
PB14 J2.39 -
PB13 J2.41 -
PB12 J2.43 -
PB11 J2.45 -
PB10 J2.47 -
PB9 J4.37 CAN-TX
PB8 J4.39 CAN-RX
PB7 J2.62 SDA
PB6 J2.60 SCL
PB5 J2.49 -
PB4 J2.21 nJTRST
PB3 J2.5 JTDO
PB2 - BOOT1
PB1 J2.51 -
PB0 J2.27 USBNCON
I/O name REva pin (func)
PC15 - OSC32out
PC14 - OSC32in
PC13 J2.10 D7
PC12 J2.12 D6
PC11 J2.14 D5
PC10 J2.16 D4
PC9 J2.18 D3
PC8 J2.20 D2
PC7 J2.22 D1
PC6 J2.24 D0
PC5 J2.35 -
PC4 J2.52 POT
PC3 J2.54 TEMP
PC2 J2.48 ANA IN2
PC1 J2.46 ANA IN1
PC0 J2.30 BT6
There are several peripherals available for the same function on the microcontroller.The peripherals connected to the REva features are:
REva feature Connected peripheral
I²C I2C1
SPI BSPI1
Serial 1 (RS232) UART1
PWM output TIM1
- 9 -
3. STM32F103 daughterboard REva User Guide STM32
3.7 STM32F103-DB schematics
3.7.1 Microcontroller
- 10 -
4. STM32F107 daughterboard REva User Guide STM32
4. STM32F107 daughterboard
4.1 Features● 1 STM32F107VCT6 microcontroller● Configuration jumpers:
- Boot mode- REva power through mini-B USB connector- CAN mode and termination resistor
● A 25 MHz crystal for main clock and USB clock generation● A 32K crystal for RTC operation● A TS4657 audio codec● A TS2012 audio amplifier● A trace connector for connecting an external debugger● 1 USB mini-B connector● 1 CAN bus transceiver● An Ethernet RJ-45connector● A piezo speaker● Some passive “glue logic” devices
4.2 Motherboard power supply configurationThe STM32F103 daughterboard must be supplied with 3.3V. Supplying 5V to this microcontroller could severely damage it.
Note: REva motherboards prior to version 2.0 are not recommended, as their voltage regulator must configured manually and can lead to daughterboard destruction if erroneously configured.
On REva v2.0 and later motherboards, only the regulator input selection jumper can be used. The VDD selection jumper must be left in position (1) because position (2) is not connected (direct power supply from the USB 5V is not available, in order to avoid board damage)
4.3 Using the daughterboard
4.3.1 Audio connector
In case you want to connect external speakers, you can can retrieve the left and right stereo channels on the following connectors:
– J2 for left channel (which is also connected to the on-board piezo speaker).– J3 for right channel.
- 14 -
REva User Guide STM32 4. STM32F107 daughterboard
4.3.2 Boot configuration
The boot type can be selected through the 2-position, 4-pin jumper J4:– Placing a jumper on J4 pins 1-2 will select boot from RAM.– Placing a jumper on J4 pins 1-2 will select boot from FLASH.
These settings must be in accordance with your project configuration or you will have a debugger error when starting your application.
4.3.3 CAN configuration
The CAN speed can be configured through J5: If you are using 1Mbps, place a jumper on J5 pins 3-4 (labeled CAN_1Mbps) . If you are using lower CAN speeds, just remove the jumper.
A CAN termination resistor is soldered on-board (R15). If you do not need it (i.e. your board is not a terminating node from your CAN network) you have to unsolder the resistor.
Note that J5 pins 1-2 are used for selecting the Reva power through mini-B USB
4.3.4 Powering Reva from mini-B USB connector
In case you want your STM32F107-based application powered through the mini-B USB connector, you have to set a jumper on J5 pins 3-4 (labeled USB_PWR).
Note: The main USB connector should be disconnected from your Reva board in order to experiment with the power from mini-B feature.
Note that J5 pins 1-2 are used for the CAN bus speed selection.
4.3.5 USB mini-B connector
Be gentle when disconnecting the USB cable from the mini-B connector of the STM32F107 daughterboard: The SO-DIMM connector could be torn off the daughterboard if you are pulling off the USB cable too strongly.
- 15 -
REva User Guide STM32 4. STM32F107 daughterboard
4.5 Inventory of connections by REva feature
Feature Micro pin Uses Alt Func Comments
Outputs
D7 PE15 1 - Light when command is low
D6 PE14 1 - Light when command is low
D5 PE13 1 - Light when command is low
D4 PE12 1 - Light when command is low
D3 PE11 1 - Light when command is low
D2 PE10 1 - Light when command is low
D1 PE9 1 - Light when command is low
D0 PE8 1 - Light when command is low
Inputs
BT6 PC13 1 - No pull-up/down, off=float, on=low/high jumper
BT5 PC11 1 - No pull-up/down, off=float, on=low
SW4 PC15 1 - No pull-up/down, off=float, on=low
SW3 PC14 1 - No pull-up/down, off=float, on=low
SW2 PC9 1 - No pull-up/down, off=float, on=low
SW1 PC8 1 - No pull-up/down, off=float, on=low
Analog
ANA IN1 PB0 1 - External analog input
ANA IN2 PB1 1 - External analog input
PWM PC6 1 - Connectable to the buzzer or to ANA_OUT
POT PC4 1 - Potentiometer analog input, min=0V, max=VDD
TEMP PC0 1 - Temperature sensor analog input
Communication
SCL PB6 1 - I²C clock, pull-up by jumper
SDA PB7 1 - I²C data, pull-up by jumper
SCK PA5 1 - SPI clock, no pull-up/down
MOSI PA7 1 - SPI master out slave in, no pull-up/down
MISO PA6 1 - SPI master in slave out, no pull-up/down
TX PD5 1 - Serial transmit
RX PD6 1 - Serial receive
CAN-TX PD1 1 - CAN transmit
CAN-RX PD0 1 - CAN receive
- 17 -
4. STM32F107 daughterboard REva User Guide STM32
4.6 Inventory of the STM32F107-DB connections (by I/O port)
I/O name REva pin (func)
PA15 - -
PA14 - -
PA13 - -
PA12 - -
PA11 - -
PA10 - -
PA9 - -
PA8 - -
PA7 J2.66 MOSI
PA6 J2.68 MISO
PA5 J2.64 SCK
PA4 - -
PA3 - -
PA2 - -
PA1 - -
PA0 - -
I/O name REva pin (func)
PB15 J2.37 -
PB14 J2.39 -
PB13 J2.41 -
PB12 J2.43 -
PB11 J2.45 -
PB10 J2.47 -
PB9 - -
PB8 - -
PB7 J2.62 SDA
PB6 J2.60 SCL
PB5 J2.49 -
PB4 J2.21 nJTRST
PB3 J2.5 JTDO
PB2 - BOOT1
PB1 J2.48 ANA IN2
PB0 J2.46 ANA IN1
I/O name REva pin (func)
PC15 J2.34 SW4
PC14 J2.36 SW3
PC13 J2.30 BT6
PC12 J2.53 SIG-0
PC11 J2.32 BT5
PC10 - -
PC9 J2.38 SW2
PC8 J2.40 SW1
PC7 - -
PC6 J2.50 PWM
PC5 J2.35 -
PC4 J2.52 POT
PC3 - -
PC2 - -
PC1 - -
PC0 J2.54 TEMP
- 18 -
REva User Guide STM32 4. STM32F107 daughterboard
I/O name REva pin (func)
PD15 J2.67 SIG-7
PD14 J2.65 SIG-6
PD13 J2.63 SIG-5
PD12 - -
PD11 - -
PD10 - -
PD9 - -
PD8 - -
PD7 J2.61 SIG-4
PD6 J2.72 RX
PD5 J2.70 TX
PD4 J2.59 SIG-3
PD3 J2.57 SIG-2
PD2 J2.55 SIG-1
PD1 J4.37 CAN-TX
PD0 J4.39 CAN-RX
I/O name REva pin (func)
PE15 J2.10 D7
PE14 J2.12 D6
PE13 J2.14 D5
PE12 J2.16 D4
PE11 J2.18 D3
PE10 J2.20 D2
PE9 J2.22 D1
PE8 J2.20 D2
PE7 J2.22 D1
PE6 J2.24 D0
PE5 - -
PE4 - -
PE3 - -
PE2 - -
PE1 - -
PE0 - -
- 19 -
4. STM32F107 daughterboard REva User Guide STM32
4.7 STM32F107-DB schematics
4.7.1 Microcontroller
- 20 -
5. Conformity REva User Guide STM32
5. ConformityROHS Compliance Raisonance products are certified to comply with the European Union RoHS (Restriction of Hazardous Substances) Directive (2002/95/EC) which restricts the use of six hazardous chemicals in its products for the protection of human health and the environment. The restricted substances are as follows: lead, mercury, cadmium, hexavalent chromium, polybrominated biphenyls (PBB), and polybrominated diphenyl ethers (PBDE).
CE Compliance Raisonance products are certified to comply with the European Union CE Directive.In a domestic environment, the user is responsible for taking protective measures from possible radio interference the products may cause.
FCC Compliance Raisonance products are certified as Class A products in compliance with the American FCC requirements.In a domestic environment, the user is responsible for taking protective measures from possible radio interference the products may cause.
WEEE Compliance Raisonance disposes of its electrical equipment according to the WEEE Directive (2002/96/EC). Upon request, Raisonance can recycle customer’s redundant products.For more information on conformity and recycling, please visit the Raisonance website at: http://www.raisonance.com
- 24 -
REva User Guide STM32 6. Glossary
6. GlossaryTerm Description
ARM 32-bit microcontroller core manufacturer
CAN Controller area network (protocol)
GND Ground
I/O Input / Output
ICD In-circuit debugging
ISD In-situ debugging
ISP In-situ programming
LCD Liquid crystal display
LED Light-emitting diode
MEMS Micro-electro-mechanical systems
OSC Oscillator
REva Raisonance evaluation platform – modular evaluation boards with main evaluation board (motherboard) and daughterboards featuring different microcontrollers
Ride7 Raisonance integrated development environment
RLink Hardware tool for in-circuit debugging and programming of a target microcontroller mounted on an application board. Supports interface via JTAG, ICC and SWIM protocols.
SO-DIMM Small outline dual in-line memory module
SPI Serial peripheral interface
STR 32-bit ARM core based STMicroelectronics families
VDD Voltage power supply
- 25 -
7. History REva User Guide STM32
7. HistoryDate Description
2007-09-15 First version for the STM32F103
2007-09-21 Updated pinout and daughterboard schematics
2009-06-16 New template applied
2009-07-21 Added the STM32F107 daughterboard.The schematics are now in its daughterboard's paragraph.
- 26 -
Disclaimer
Information in this document is subject to change without notice and does not represent a commitment on the part of the manufacturer. The software described in this document is provided under license and may only be used or copied in accordance with the terms of the agreement. It is illegal to copy the software onto any medium, except as specifically allowed in the license or nondisclosure agreement.
No part of this manual may be reproduced or transmitted in any form or by any means, electronic or mechanical, including photocopying, recording, or information storage and retrieval systems, for any purpose other than the purchaser’s personal use, without prior written permission.
Every effort has been made to ensure the accuracy of this manual and to give appropriate credit to persons, companies and trademarks referenced herein.
This manual exists both in paper and electronic form (pdf).
Please check the printed version against the .pdf installed on the computer in the installation directory, for the most up-to-date version.
The examples of code used in this document are for illustration purposes only and accuracy is not guaranteed. Please check the code before use.
Copyright © Raisonance 1987-2009 All rights reserved