stm32-p152 development board user's manual · 2014-11-29 · electrostatic warning: the...

20
STM32-P152 development board user's manual All boards produced by Olimex are ROHS compliant Revision C, April 2012 Copyright(c) 2011, OLIMEX Ltd, All rights reserved Page 1

Upload: dotu

Post on 06-Jul-2018

244 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: STM32-P152 development board user's manual · 2014-11-29 · ELECTROSTATIC WARNING: The STM32-P152 board is shipped in protective anti-static packaging. The board must not be subject

STM32-P152 development boarduser's manual

All boards produced by Olimex are ROHS compliant

Revision C, April 2012

Copyright(c) 2011, OLIMEX Ltd, All rights reserved

Page 1

Page 2: STM32-P152 development board user's manual · 2014-11-29 · ELECTROSTATIC WARNING: The STM32-P152 board is shipped in protective anti-static packaging. The board must not be subject

INTRODUCTION:

STM32-P152 is a development board with STM32L152VBT6 ARM Cortex M3 mi-crocontroller made by STMicroelectronics. This microcontroller supports various communication interfaces such as USB, three USARTs, two SPIs, two I2Cs. There are USB, JTAG and UEXT connectors, three buttons – WKUP, USER and RESET, four status LEDs, potentiometer and pin holes for most of the microcontroller's pins. The board features low power segment LCD that uses the built in LCD controller in this specialized microcontroller. Due to its low power capabilities the board can run bat-tery powered applications via the battery connector. All this allows you to build dif-ferent projects for a wide range of applications.

BOARD FEATURES:

MCU: STM32L152VBT6 – 128 KB Flash, 16 KB Data RAM

USB

3.7V-LI_BAT connector

Battery charger

JTAG/SWD connector

UEXT connector

RS232 connector

LCD

Four status LEDs

Reset circuit

RESET button

WKUP button

USER button

Potentiometer

Power jack

Power-on LED

Pin holes for most of the microcontroller pins

FR-4, 1.5 mm, soldermask, component print

Dimensions: 120.00 x 80.00 mm (4.72 x 3.15")

Page 2

Page 3: STM32-P152 development board user's manual · 2014-11-29 · ELECTROSTATIC WARNING: The STM32-P152 board is shipped in protective anti-static packaging. The board must not be subject

ELECTROSTATIC WARNING:

The STM32-P152 board is shipped in protective anti-static packaging. The board must not be subject to high electrostatic potentials. General practice for working with static sensitive devices should be applied when working with this board.

BOARD USE REQUIREMENTS:

Cables: The cable you will need depends on the programmer/debugger you use. If you use ARM-JTAG-EW, ARM-USB-TINY or ARM-USB-TINY-H, you will need USB A-B cable, if you use ARM-USB-OCD or ARM-USB-OCD-H, you will need USB A-B cable and RS232 cable.

Hardware: Programmer/Debugger ARM-USB-OCD, ARM-USB-OCD-H, ARM-USB-TINY, ARM-USB-TINY-H, ARM-JTAG-COOCOX or other compatible programming/debugging tool if you work with EW-ARM. It is a good practice to first consider the software tools you are going to use and check if they support the debuggers.

It is good idea to use SWD interface for debugging/programming because of the multiplexing of the JTAG signal lines with the display lines. If using a debugger that supports only JTAG layout you might need to disable display or write a routine that disables it.

PROCESSOR FEATURES:

STM32-P152 board uses ARM 32-bit Cortex™-M3 microcontroller STM32L152VBT6 from STMicroelectronics has these features:

Operating conditions

Operating power supply range: 1.65 V to 3.6 V (without BOR) or 1.8 V to 3.6 V (with BOR option)

Temperature range: –40 to 85 °C

Low power features

4 modes: Sleep, Low-power run (9 μA at 32 kHz), Low-power sleep (4.4 μA), Stop with RTC (1.45 μA), Stop (570 nA), Standby (300 nA)

Dynamic core voltage scaling down to 233 μA/MHz

Ultra low leakage per I/O: 50 nA

Fast wakeup from Stop: 8 μs

Three wakeup pins

Core: ARM 32-bit Cortex™-M3 CPU

32 MHz maximum frequency, 33.3 DMIPS peak (Dhrystone 2.1)

Page 3

Page 4: STM32-P152 development board user's manual · 2014-11-29 · ELECTROSTATIC WARNING: The STM32-P152 board is shipped in protective anti-static packaging. The board must not be subject

Memory protection unit

Reset and supply management

Low power, ultrasafe BOR (brownout reset) with 5 selectable thresholds

Ultralow power POR/PDR

Programmable voltage detector (PVD)

Clock management

1 to 24 MHz crystal oscillator

32 kHz oscillator for RTC with calibration

Internal 16 MHz factory-trimmed RC

Internal 37 kHz low consumption RC

Internal multispeed low power RC, 64 kHz to 4 MHz with a consumption down to 1.5 μA

PLL for CPU clock and USB (48 MHz)

Low power calendar RTC

Alarm, periodic wakeup from Stop/Standby

Memories

128 Kbyte of Flash memory with ECC

4 Kbyte of data EEPROM with ECC

16 Kbyte of RAM

83 fast I/Os (73 of which are 5 V-tolerant) all mappable on 16 external interrupt vectors

Development support

Serial wire debug, JTAG and trace

DMA: 7-channel DMA controller, supporting timers, ADC, SPIs, I2Cs and USARTs

LCD 8 × 40 or 4 × 44 with step-up converter

12-bit ADC up to 1 Msps/24 channels

Temperature sensor and internal voltage reference

Operates down to 1.8 V

2× 12-bit DACs with output buffers

2 ultralow power comparators

Window mode and wakeup capability

10 timers:

6 × 16-bit general-purpose timers, each with up to 4 IC/OC/PWM channels

2 × 16-bit basic timers

Page 4

Page 5: STM32-P152 development board user's manual · 2014-11-29 · ELECTROSTATIC WARNING: The STM32-P152 board is shipped in protective anti-static packaging. The board must not be subject

2 × watchdog timers (independent and window)

8 communication interfaces:

2 × I2C interfaces (SMBus/PMBus)

3 × USARTs (ISO 7816 interface, LIN, IrDA capability, modem control)

2 × SPIs (16 Mbit/s)

USB 2.0 full speed interface

CRC calculation unit, 96-bit unique ID

Page 5

Page 6: STM32-P152 development board user's manual · 2014-11-29 · ELECTROSTATIC WARNING: The STM32-P152 board is shipped in protective anti-static packaging. The board must not be subject

BLOCK DIAGRAM:

AF = Alternate Function function on I/O port pin.

Page 6

Page 7: STM32-P152 development board user's manual · 2014-11-29 · ELECTROSTATIC WARNING: The STM32-P152 board is shipped in protective anti-static packaging. The board must not be subject

MEMORY MAP:

Page 7

Page 8: STM32-P152 development board user's manual · 2014-11-29 · ELECTROSTATIC WARNING: The STM32-P152 board is shipped in protective anti-static packaging. The board must not be subject

SCHEMATIC:

Page 8

CL

OS

E

HN

1x2

DW

02

R

10

k

HN

1x3

HN

1x3

10

0n

F

10

nF

(NA

)

10

0n

F

1uF/10V

100nF

100nF

100nF

4.7uF

10

0n

F

1u

F/1

0V

1u

F/1

0V

27

pF

27

pF

10

pF

10

pF

47

pF

(NA

)4

7p

F(N

A)

10

0n

F

1u

F/1

0V

1u

F/1

0V

NA

10

0n

F

100nF

10

0n

F1

00

nF

10

0n

F

10

0n

F

10

0n

F

10

0n

F

10

0n

F

10

0n

F

10

0n

F

10

0n

F

2.2uF/6.3V

2.2

uF

/6.3

V

BA

T5

4C

BA

T5

4C

BA

T5

4C

FB080

5/6

00R/2

00m

A(2012

09-6

01)

IRLM

L64

02

CL

OS

E

BH

20

S

OLIMEX_LTD

+5

V+

5V

YD

J-1

13

6

RE

D(G

YX

-SD

-TC

08

05

SY

RK

)

HN

1x2

Q8.

000M

Hz/

HC

-49S

M(S

MD

)/20p

F

32

76

8H

z/6

pF

OP

EN

10

0k

27

0R

27

0R 1

00

k

0R

(NA

)

1R

4.7

k

10

k

33

k

10

k(N

A)

10

0R

/1%

10

0R

/1%

10

0R

/1%

NC

10

k

NA

10

k1

0k

NA

0R

(NA

)

22

R

22

R

10

k

33

0R

NA

33

0R

NA

NA

NA

33

k4

.7k

4.7

k

NA

NA

0R

(NA

)N

A0

R(N

A)

1M

33

0R

10

0k

33

0R

10

k

33

0R

33

0R

47

0R

47

0R

47

0R

27

0R

27

0R

10

k

15

k

10

k

4.7

k

T1107A(6x3,8x2,5mm)

CL

OS

E

GR

EE

N(G

YX

-SD

-TC

0805

SG

C)

YE

LLO

W(G

YX

-SD

-TC

0805

SY

C)

RE

D(G

YX

-SD

-TC

0805

SY

RK

)G

RE

EN

(GY

X-S

D-T

C08

05S

GC

)

DT

A1

14

YK

A

BC

81

7-4

0B

C8

17

-40

GP

H1

27

-SM

T0

2x1

0(p

in7

-CU

T)/

(NA

)

ST

M3

2L

15

2V

BT

6

NA

(ST

M10

01R

WX

6F)

(NA

)US

BL

C6

-2P

6

ST

32

32

CD

R(S

O1

6)

MC

P7

3812

T-4

20I/

OT

BH

10

S

US

B_

B

T1103NE-12x12x4.3

3.3

V

3.3

V_

A

3.3

V

3.3

V

3.3

V

3.3

V

3.3

V

3.3

V

3.3

V3

.3V

3.3

V

3.3

V3

.3V

3.3

V

3.3

V

3.3

V

3.3

V

3.3

V

MC

P17

02T

-33

02E

/MB

T1103NE-12x12x4.3

BZ

V5

5C

6V

2

BZ

V5

5C

6V

2

SE

G[0

..6

],S

EG

[9..

16

],S

EG

[18

..3

7],

SE

G4

2,S

EG

43

,CO

M[0

..3

]

SPI1_SCK,SPI1_MOSI,SPI1_MISO,SPI1_NSS,I2C1_SDA,I2C1_SCL,USART3_RX,USART3_TX

TM

S/S

WD

IO,T

CK

/SW

CL

K

US

B_

DP

,US

B_

DM

+5

V_

J-T

RA

CE

+5

V_

J-T

RA

CE

+5

V_

JTA

G

+5

V_

JTA

G

+5

V_

US

B

+5

V_

US

B

+5

V_

US

B

BA

T

BA

T

COM0

CO

M0

COM1

CO

M1

COM2

CO

M2

COM3

CO

M3

CT

S

DA

C_

OU

T1

DA

C_

OU

T1

DA

C_

OU

T2

DA

C_

OU

T2

EX

T_

PW

R

I2C

1_

SC

L

I2C

1_

SC

LI2

C1

_S

CL

I2C

1_

SD

A

I2C

1_

SD

AI2

C1

_S

DA

PB

2/B

OO

T1

PB

2/B

OO

T1

RS

23

2_

EN

RS

23

2_

EN

RS

T

RS

T

RS

T

RS

T

RT

S

SEG0

SE

G0

SEG1

SE

G1

SEG2

SE

G2

SEG3

SE

G3

SEG4

SE

G4

SEG5

SE

G5

SEG6

SE

G6

SEG9

SE

G9

SEG10

SE

G1

0

SEG11

SE

G1

1

SEG12

SE

G1

2

SEG13

SE

G1

3

SEG14

SE

G1

4

SEG15

SE

G1

5

SEG16

SE

G1

6

SEG18

SE

G1

8

SEG19

SE

G1

9

SEG20

SE

G2

0

SEG21

SE

G2

1

SEG22

SE

G2

2

SEG23

SE

G2

3

SEG24

SE

G2

4

SEG25

SE

G2

5

SEG26

SE

G2

6

SEG27

SE

G2

7

SEG28

SE

G2

8

SEG29SE

G2

9

SEG30

SE

G3

0

SEG31

SE

G3

1S

EG

32

SEG32

SEG33

SE

G3

3

SEG34

SE

G3

4

SEG35

SE

G3

5

SEG36

SE

G3

6

SEG37

SE

G3

7

SE

G4

2

SEG42

SE

G4

3

SEG43

SE

NS

E_

E

SE

NS

E_

E

SP

I1_

MIS

O

SP

I1_

MIS

O

SP

I1_

MIS

O

SP

I1_

MO

SI

SP

I1_

MO

SI

SP

I1_

MO

SI

SP

I1_

NS

S

SP

I1_

NS

S

SP

I1_

NS

S

SP

I1_

SC

K

SP

I1_

SC

K

SP

I1_

SC

K

ST

AT

3

ST

AT

3

ST

AT

4

ST

AT

4

TC

K/S

WC

LK

TC

K/S

WC

LK

TC

K/S

WC

LK

TC

K/S

WC

LK

TD

I/S

EG

17

TD

I/S

EG

17

TD

I/S

EG

17

TDI/SEG17

TD

O/T

RA

CE

SW

O/S

EG

7

TD

O/T

RA

CE

SW

O/S

EG

7

TD

O/T

RA

CE

SW

O/S

EG

7

TD

O/T

RA

CE

SW

O/S

EG

7

TDO/TRACESWO/SEG7

TM

S/S

WD

IO

TM

S/S

WD

IO

TM

S/S

WD

IOT

MS

/SW

DIO

TR

AC

EC

K/S

EG

38

TR

AC

EC

K/S

EG

38

TRACECK/SEG38

TR

AC

ED

0/S

EG

39

TR

AC

ED

0/S

EG

39

TRACED0/SEG39

TR

AC

ED

1

TR

AC

ED

1

TR

AC

ED

2

TR

AC

ED

2

TR

AC

ED

3

TR

AC

ED

3

TR

IM

TR

IM

TR

IME

R_

EN

TR

IME

R_

EN

TR

ST

/SE

G8

TR

ST

/SE

G8

TR

ST

/SE

G8

TR

ST

/SE

G8

TRST/SEG8

US

AR

T2

_C

TS

US

AR

T2

_C

TS

US

AR

T2

_R

TS

US

AR

T2

_R

TS

US

AR

T2

_R

X

US

AR

T2

_R

X

US

AR

T2

_T

X

US

AR

T2

_T

X

US

AR

T3

_R

XU

SA

RT

3_

RX

US

AR

T3

_R

XU

SA

RT

3_

TX

US

AR

T3

_T

XU

SA

RT

3_

TX

US

B_

DM

US

B_

DM

US

B_

DP

US

B_

DP

US

ER

US

ER

VIN

WK

UP

WK

UP

+5

V_

JTA

G

+5

V_

JTR

AC

E

+5

V_

US

B

3.3

V

12

3.3

VA

_M

CU

_E

3.3

V_

A

123

.3V

_M

CU

_E

1 2

3.7

V-L

I_B

AT

AG

ND

AN

_T

R

123

B0

_1

/B0

_0

123

B1

_1

/B1

_0

BA

T

C1

C2

C3

C4

C5

C6

C7

C8

C9

C1

0

C1

1

C1

2

C1

3

C1

4

C1

5

C1

6C

17

C1

8

C1

9

C2

0

C2

1

C2

2

C23

C2

4C

25

C2

6

C2

7

C2

8

C2

9

C3

0

C3

1

C3

2

C3

3

C3

4

C3

5

D1

D2

D4

DA

C_

OU

T1

DA

C_

OU

T2

FB

1

FE

T1

GN

D1

2G

ND

A_

E

GN

D_

PIN

12

34

56

78

910

11

12

1314

15

16

17

18

1920

JTA

G/S

WD

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

2425

26

27

28

29

30

31

32

33

34

35

36

37

38

39

40

41

42

43

44

45

46

47

48

LCD

PB

2

PB

6P

B7

PC

10

PC

11

PD

7P

E8

PE

9P

E1

0P

E1

1P

E1

2P

E1

3P

E1

4P

E1

5

PW

R

PW

R_

LE

D

12

PW

R_

LE

D_

E

Q1

Q2

12

R-T

R1

R2

R3

R4

R5

R6

R7

R8

R9

R1

0

R1

1

R1

2

R1

3

R1

4

R1

5

R1

6

R1

7R

18

R1

9

R2

0

R2

1

R2

2

R2

3

R2

4

R2

5

R2

6

R2

7

R2

8R

29

R3

0R

31

R3

2

R3

3

R3

4R

35

R3

6R

37

R3

8

R3

9

R4

0

R4

1

R4

2

R4

3

R4

4

R4

5

R4

6R

47

R4

8R

49

R5

0

R5

1

R5

2

R5

3

RE

SE

T

1 2 3 4 5

6 7 8 9

RS

23

2_

2

RS

T

12S

HU

NT

_E

ST

AT

1S

TA

T2

ST

AT

3S

TA

T4

T1

T2

T3

12

34

56

78

910

1112

13

14

15

16

1718

19

20

TR

AC

E

BO

OT

094

JNT

RS

T/T

IM3_

CH

1/P

B4/S

PI1

_MIS

O/C

OM

P2_IN

P/L

CD

_S

EG

890

JT

CK

/SW

CLK

/PA

14

76

JTD

I/T

IM2_C

H1_E

TR

/PA

15/S

PI1

_NS

S/L

CD

_S

EG

17

77

JT

DO

/TIM

2_C

H2/P

B3/T

RA

CE

SW

O/S

PI1

_SC

K/C

OM

P2_I

NM

/LC

D_S

EG

789

JT

MS

/SW

DIO

/PA

1372

NR

ST

14

OS

C_IN

/PD

0/S

PI2

_NS

S/T

IM9_C

H1

81

OS

C_IN

/PH

012

OS

C_O

UT

/PD

1/S

PI2

_SC

K82

OS

C_O

UT

/PH

113

PA

0/W

KU

P1/U

SA

RT

2_C

TS

/AD

C_IN

0/T

IM2_

CH

1_E

TR

/CO

MP

1_I

NP

23

PA

1/U

SA

RT

2_R

TS

/AD

C_I

N1/T

IM2_C

H2/

LC

D_S

EG

0/C

OM

P1_IN

P24

PA

2/U

SA

RT

2_T

X/A

DC

_IN

2/T

IM2_C

H3/

TIM

9_C

H1/L

CD

_SE

G1/C

OM

P1_I

NP

25

PA

3/U

SA

RT

2_R

X/A

DC

_IN

3/T

IM2_

CH

4/T

IM9_C

H2/

LC

D_S

EG

2/C

OM

P1_

INP

26

PA

4/S

PI1

_NS

S/U

SA

RT

2_C

K/A

DC

_IN

4/D

AC

_O

UT

1/C

OM

P1_IN

P29

PA

5/S

PI1

_S

CK

/AD

C_I

N5/D

AC

_O

UT

2/T

IM2_C

H1_E

TR

/CO

MP

1_IN

P30

PA

6/S

PI1

_M

ISO

/AD

C_IN

6/T

IM3_

CH

1/T

IM1_B

KIN

/LC

D_S

EG

3/T

IM10_

CH

1/C

OM

P1_I

NP

31

PA

7/S

PI1

_MO

SI/A

DC

_IN

7/T

IM3_C

H2/

TIM

1_C

H1N

/LC

D_S

EG

4/T

IM11_

CH

1/C

OM

P1_IN

P32

PA

8/U

SA

RT

1_C

K/M

CO

/LC

D_C

OM

067

PA

9/U

SA

RT

1_T

X/L

CD

_C

OM

168

PA

10/U

SA

RT

1_R

X/L

CD

_CO

M2

69

PA

11/U

SA

RT

1_C

TS

/US

BD

M/S

PI1

_M

ISO

70

PA

12/

US

AR

T1_

RT

S/U

SB

DP

/SP

I1_M

OS

I71

PB

0/A

DC

_IN

8/T

IM3_C

H3/

LC

D_S

EG

5/C

OM

P1_

INP

/VR

EF

_OU

T35

PB

1/A

DC

_IN

9/T

IM3_C

H4/L

CD

_SE

G6/C

OM

P1_I

NP

/VR

EF

_O

UT

36

PB

2/B

OO

T1

37

PB

5/I2C

1_S

MB

AL/

TIM

3_C

H2/S

PI1

_MO

SI/C

OM

P2_IN

P/L

CD

_SE

G9

91

PB

6/I2

C1_

SC

L/T

IM4_C

H1/U

SA

RT

1_T

X/L

CD

_S

EG

892

PB

7/I2

C1_S

DA

/TIM

4_C

H2/

US

AR

T1_R

X/P

VD

_IN

93

PB

8/T

IM4_C

H3/

I2C

1_S

CL/

LC

D_S

EG

16/T

IM10_

CH

195

PB

9/T

IM4_C

H4/I2

C1_S

DA

/LC

D_C

OM

3/T

IM11_C

H1

96

PB

10/

I2C

2_S

CL/U

SA

RT

3_T

X/T

IM2_C

H3/

LC

D_S

EG

1047

PB

11/I2

C2_S

DA

/US

AR

T3_

RX

/TIM

2_C

H4/L

CD

_SE

G11

48

PB

12/S

PI2

_NS

S/I2C

2_S

MB

A/U

SA

RT

3_C

K/L

CD

_S

EG

12/A

DC

_IN

18/C

OM

P1_IN

P/T

IM10_

CH

151

PB

13/

SP

I2_S

CK

/US

AR

T3_

CT

S/L

CD

_S

EG

13/A

DC

_IN

19/C

OM

P1_

INP

/TIM

9_C

H1

52

PB

14/S

PI2

_M

ISO

/US

AR

T3_R

TS

/LC

D_S

EG

14/A

DC

_IN

20/

CO

MP

1_IN

P/T

IM9_C

H2

53

PB

15/S

PI2

_MO

SI/T

IM1_C

H3N

/LC

D_S

EG

15/A

DC

_IN

21/C

OM

P1_I

NP

/TIM

11_C

H1/R

TC

_50

_60H

Z54

PC

0/A

DC

_IN

10/

LC

D_S

EG

18/C

OM

P1_IN

P15

PC

1/A

DC

_IN

11/L

CD

_S

EG

19/

CO

MP

1_IN

P16

PC

2/A

DC

_IN

12/L

CD

_S

EG

20/C

OM

P1_I

NP

17

PC

3/A

DC

_IN

13/

LC

D_S

EG

21/C

OM

P1_I

NP

18

PC

4/A

DC

_IN

14/L

CD

_SE

G22/

CO

MP

1_IN

P33

PC

5/A

DC

_IN

15/L

CD

_S

EG

23/C

OM

P1_I

NP

34

PC

6/T

IM3_C

H1/

LC

D_S

EG

2463

PC

7/T

IM3_C

H2/L

CD

_SE

G25

64

PC

8/T

IM3_

CH

3/L

CD

_S

EG

26

65

PC

9/T

IM3_C

H4/

LC

D_S

EG

2766

PC

10/U

SA

RT

3_T

X/L

CD

_SE

G28/L

CD

_S

EG

40/

LC

D_C

OM

478

PC

11/

US

AR

T3_

RX

/LC

D_S

EG

29/

LC

D_S

EG

41/L

CD

_CO

M5

79

PC

12/U

SA

RT

3_C

K/L

CD

_SE

G30/L

CD

_S

EG

42/

LC

D_C

OM

680

PC

13/R

TC

_A

F1/W

KU

P2

7

PC

14/

OS

C32_

IN8

PC

15/O

SC

32_O

UT

9

PD

2/T

IM3_E

TR

/LC

D_S

EG

31/L

CD

_SE

G43/

LC

D_C

OM

783

PD

3/U

SA

RT

2_C

TS

/SP

I2_M

ISO

84

PD

4/U

SA

RT

2_R

TS

/SP

I2_M

OS

I85

PD

5/U

SA

RT

2_T

X86

PD

6/U

SA

RT

2_R

X87

PD

7/U

SA

RT

2_C

K/T

IM9_C

H2

88

PD

8/U

SA

RT

3_T

X/L

CD

_S

EG

2855

PD

9/U

SA

RT

3_R

X/L

CD

_SE

G29

56

PD

10/U

SA

RT

3_C

K/L

CD

_SE

G30

57

PD

11/U

SA

RT

3_C

TS

/LC

D_S

EG

3158

PD

12/

TIM

4_C

H1/U

SA

RT

3_R

TS

/LC

D_S

EG

32

59

PD

13/T

IM4_

CH

2/L

CD

_S

EG

33

60

PD

14/T

IM4_C

H3/

LC

D_S

EG

3461

PD

15/

TIM

4_C

H4/L

CD

_SE

G35

62

PE

0/T

IM4_E

TR

/LC

D_S

EG

36/

TIM

10_C

H1

97

PE

1/L

CD

_S

EG

37/T

IM11_

CH

198

PE

2/T

RA

CE

CK

/LC

D_S

EG

38/T

IM3_E

TR

1

PE

3/T

RA

CE

D0/

LC

D_S

EG

39/T

IM3_C

H1

2

PE

4/T

RA

CE

D1/T

IM3_

CH

23

PE

5/T

RA

CE

D2/T

IM9_C

H1

4

PE

6/T

RA

CE

D3/

WK

UP

3/T

IM9_C

H2

5

PE

7/A

DC

_IN

22/C

OM

P1_

INP

38

PE

8/A

DC

_IN

23/C

OM

P1_I

NP

39

PE

9/A

DC

_IN

24/

TIM

2_C

H1_E

TR

/CO

MP

1_IN

P40

PE

10/A

DC

_IN

25/

TIM

2_C

H2/C

OM

P1_

INP

41

PE

11/T

IM2_C

H3

42

PE

12/T

IM2_

CH

4/S

PI1

_NS

S43

PE

13/S

PI1

_SC

K44

PE

14/S

PI1

_MIS

O45

PE

15/

SP

I1_M

OS

I46

PH

2/I2

C2_S

MB

A73

VD

DA

22

VD

D_1

50

VD

D_2

75

VD

D_3

100

VD

D_4

28

VD

D_5

11

VLC

D6

VR

EF

+21

VR

EF

-20

VS

SA

19

VS

S_1

49V

SS

_2

74

VS

S_3

99

VS

S_4

27V

SS

_5

10

U1

3

12

GN

D

VC

CR

ES

ET

U2

1 2 3456

U3

C1+

1

C1-

3

C2+

4

C2-

5

R1I

N13

R1O

UT

12

R2I

N8

R2O

UT

9

T1IN

11

T1O

UT

14

T2I

N10

T2O

UT

7

V+

2

V-

6

U4

15

16

GN

DV

CC

U4

PW

R

CE

1

PR

OG

5

VB

AT

3V

DD

4

VS

S2

U5

12

34

56

78

910

UE

XT

1 2 3 4

US

B

US

ER

VIN

GN

D1

VIN

2

VO

UT

3

VR

(3.3

V)

VR

EF

+

VR

EF

-

WK

UP

Z1

Z2

5-6

VD

C6

VD

C M

AX

!!!

ST

M32

-P15

2R

ev.

B

CO

PY

RIG

HT

(C)

20

11

, O

LIM

EX

Ltd

.

htt

p:/

/ww

w.o

lime

x.co

m/d

ev

a

b c

d

efg

OLI

ME

Xu

mH

F

GN

D

0R0R

0R0R

1 0k

47

k

BA

TT

ER

YC

HA

RG

ER

USB SH

IEL

D

ST

AT

US

LE

DS

PO

WE

R S

UP

PLY

CIR

CU

IT

RE

SE

T C

IRC

UIT

BU

TT

ON

S

US

B C

IRC

UIT

RS

232

DR

IVE

RS

UE

XT

TR

IMM

ER

JTA

G/S

WD

/TR

AC

E

+

-

Bat

tery

Cha

rge

r

appr

. 70

mA

cha

rge

curre

nt

00

Page 9: STM32-P152 development board user's manual · 2014-11-29 · ELECTROSTATIC WARNING: The STM32-P152 board is shipped in protective anti-static packaging. The board must not be subject

BOARD LAYOUT:

POWER SUPPLY CIRCUIT:

STM32-P152 can take power from:

–PWR_JACK (5-6) VDC

–USB - +5V_USB.

–JTAG - +5V_JTAG.

–TRACE - +5V_J-TRACE

–Battery connector – +3.7V lithium battery.

–Pin Hole VIN – (5÷6) VDC.

The programmed board power consumption is about 50 mA with all peripherals enabled. The minimal current consumption is a few uA(up to 10)

Note that if the battery is connected to 3,7V-Li BAT connector and some of other power sources(USB, JTAG, TRACE, PWR_JACK) are present and the battery is discharged then the battery will be charge until the charge complete.

RESET CIRCUIT:STM32-P152 reset circuit includes R8 (10k), R44 (330Ω), R11 (100Ω/1%), C28 (100nF), STM32L152VBT6 pin 14 (NRST) and RESET button.

Page 9

Page 10: STM32-P152 development board user's manual · 2014-11-29 · ELECTROSTATIC WARNING: The STM32-P152 board is shipped in protective anti-static packaging. The board must not be subject

CLOCK CIRCUIT:

Quartz crystal (Q1) 8 MHz is connected to STM32L152VBT6 pin 12 (OSC_IN/PH0) and pin 13 (OSC_OUT/PH1).

Quartz crystal (Q2) 32.768 kHz is connected to STM32L152VBT6 pin 8 (PC14/OSC32_IN) and pin 9 (PC15/OSC32_OUT).

JUMPER DESCRIPTION:

R-TWhen this jumper is closed, RST and TRST/SEG8 are connected. When this jumper is opened, RST and TRST/SEG8 are separated. Default state is opened .

SHUNT_EWhen this jumper is closed, 1 Ohm shunt is enabled. When this jumper is opened, 1 Ohm shunt is disabled.Default state is closed.

GNDA_EWhen this jumper is closed, the board analog ground is enabled. When this jumper is opened, the board analog ground is disabled. Default state is closed.

3.3VA_MCU_EWhen this jumper is closed, the microcontroller analog power is enabled. When this jumper is opened, the microcontroller analog power is not enabled.Default state is closed.

3.3V_MCU_EWhen this jumper is closed, STM32L152VBT6 power supply is enabled. When this jumper is opened, STM32L152VBT6 power supply is disabled. Default state is closed.

PWR_LED_EWhen this jumper is closed, the PWR_LED is enabled. When this jumper is opened, the PWR_LED is disabled.Default state is closed.

B0_1/B0_0This jumper, when is in position B0_1 – connects STM32L152VBT6 pin 94 (BOOT0) via R15 (10k) to 3.3V, when the jumper is in position B0_0 – connects STM32L152VBT6 pin 94 (BOOT0) via R15 (10k) to GND.Default state is closed in position B0_0 .

Page 10

Page 11: STM32-P152 development board user's manual · 2014-11-29 · ELECTROSTATIC WARNING: The STM32-P152 board is shipped in protective anti-static packaging. The board must not be subject

B1_1/B1_0This jumper, when is in position B1_1 – connects STM32L152VBT6 pin 37 (PB2/BOOT1) via R7 (10k) to 3.3V, when the jumper is in position B1_0 – connects STM32L152VBT6 pin 37 (PB2/BOOT1) via R7 (10k) to GND.Default state is closed in position B1_0 .

The boot mode is selected depending on jumpers B0_1/B0_0 and B1_1/B1_0 configuration:- When B0_1/B0_0 is closed in position B0_0 and B1_1/B1_0 position doesn't matter - the boot mode is Main Flash Memory.- When B0_1/B0_0 is closed in position B0_1 and B1_1/B1_0 is closed in position B1_0 – the boot mode is System Memory.- When B0_1/B0_0 is closed in position B0_1 and B1_1/B1_0 is closed in position B1_1 – the boot mode is Embedded SRAM.

INPUT/OUTPUT:

Status led (green), with name STAT1 is connected to STM32L152VBT6 pin 29 (PA4/DAC_OUT1), allowing current through it to be adjusted smoothly.

Status led (yellow), with name STAT2 is connected to STM32L152VBT6 pin 30 (PA5/DAC_OUT2), allowing current through it to be adjusted smoothly.

Status led (red), with name STAT3 is connected to STM32L152VBT6 pin 41 (PE10).

Status led (green), with name STAT4 is connected to STM32L152VBT6 pin 42 (PE11).

Power-on led, with name PWR_LED – this led shows that the board is power supplied.

User button with name WKUP is connected to STM32L152VBT6 pin 23 (PA0/WKUP1).

User button with name USER is connected to STM32L152VBT6 pin 7 (PC13/WKUP2).

User button with name RESET is connected to STM32L152VBT6 pin 14 (NRST).

Trimmer with name AN_TR is connected to STM32L152VBT6 pin 82 (PD1/SPI2_SCK) – signal “TRIMER_EN”.

Page 11

Page 12: STM32-P152 development board user's manual · 2014-11-29 · ELECTROSTATIC WARNING: The STM32-P152 board is shipped in protective anti-static packaging. The board must not be subject

EXTERNAL CONNECTORS DESCRIPTION:

UEXT:

Pin # Signal Name

1 VCC (3.3V)

2 GND

3 USART3_TX

4 USART3_RX

5 I2C1_SCL

6 I2C1_SDA

7 SPI1_MISO

8 SPI1_MOSI

9 SPI1_SCK

10 SPI1_NSS

USB:

Pin # Signal Name

1 +5V_USB

2 USB_DM

3 USB_DP

4 GND

3.7V-LI_BAT:

Pin # Signal Name

1 VBAT

2 GND

Page 12

Page 13: STM32-P152 development board user's manual · 2014-11-29 · ELECTROSTATIC WARNING: The STM32-P152 board is shipped in protective anti-static packaging. The board must not be subject

JTAG/SWD:

Pin # Signal Name Pin # Signal Name

1 VCC (3.3V) 2 VCC (3.3V)

3 TRST/SEG8 4 GND

5 TDI/SEG17 6 GND

7 TMS/SWDIO 8 GND

9 TCK/SWCLK 10 GND

11 Via 10k to GND 12 GND

13 TDO/TRACESWO/SEG7 14 GND

15 RST 16 GND

17 Via 10k to GND 18 GND

19 +5V_JTAG 20 GND

Important: The default demo software blocks the JTAG communication. A workaround is to press and hold button B2, then press RST, then release B2. This will shut down the display allowing you to erase the demo via JTAG and after that the JTAG should be available.

SWD debuggers/programmers would not have such a problem.

Page 13

Page 14: STM32-P152 development board user's manual · 2014-11-29 · ELECTROSTATIC WARNING: The STM32-P152 board is shipped in protective anti-static packaging. The board must not be subject

PWR_JACK:

Pin # Signal Name

1 EXT_PWR

2 GND

RS232_2:

Pin # Signal Name

1 Not Connected

2 T1OUT (U4 pin 14)

3 R1IN (U4 pin 13)

4 Not Connected

5 GND

6 Not Connected

7 CTS

8 RTS

9 Not Connected

TRACE:

Pin # Signal Name Pin # Signal Name

1 VCC (3.3V) 2 TMS/SWDIO

3 GND 4 TCK/SWCLK

5 GND 6 TDO/TRACESWO/SEG7

7 Not Connected 8 TDI/SEG17

9 GND 10 RST

Page 14

Page 15: STM32-P152 development board user's manual · 2014-11-29 · ELECTROSTATIC WARNING: The STM32-P152 board is shipped in protective anti-static packaging. The board must not be subject

11 +5V_J-TRACE 12 TRACECK/SEG38

13 +5V_J-TRACE 14 TRACED0/SEG39

15 GND 16 TRACED1

17 GND 18 TRACED2

19 GND 20 TRACED3

Page 15

Page 16: STM32-P152 development board user's manual · 2014-11-29 · ELECTROSTATIC WARNING: The STM32-P152 board is shipped in protective anti-static packaging. The board must not be subject

PIN HOLES:

Page 16

Page 17: STM32-P152 development board user's manual · 2014-11-29 · ELECTROSTATIC WARNING: The STM32-P152 board is shipped in protective anti-static packaging. The board must not be subject

MECHANICAL DIMENSIONS:

Page 17

Page 18: STM32-P152 development board user's manual · 2014-11-29 · ELECTROSTATIC WARNING: The STM32-P152 board is shipped in protective anti-static packaging. The board must not be subject

AVAILABLE DEMO SOFTWARE:

Demo software USB mouse and Blinking LED for EW-ARM

Setup GCC+Eclispse for STM32 on MAC

Page 18

Page 19: STM32-P152 development board user's manual · 2014-11-29 · ELECTROSTATIC WARNING: The STM32-P152 board is shipped in protective anti-static packaging. The board must not be subject

ORDER CODE:

STM32-P152 - assembled and tested board

How to order?

You can order to us directly or by any of our distributors.Check our web https://www.olimex.com/ or more info.

Revision history:

Board's revision: Rev. B, June 2011

Manual's revision: Rev. Initial, September 2011

Manual's revision: Rev. B, March 2013

Manual's revision: Rev. C, April 2013

Page 19

Page 20: STM32-P152 development board user's manual · 2014-11-29 · ELECTROSTATIC WARNING: The STM32-P152 board is shipped in protective anti-static packaging. The board must not be subject

Disclaimer:

© 2013 Olimex Ltd. Olimex®, logo and combinations thereof, are registered trademarks of Olimex Ltd. Other product names may be trademarks of others and the rights belong to their respective owners.The information in this document is provided in connection with Olimex products. No license, express or implied or otherwise, to any intellectual property right is granted by this document or in connection with the sale of Olimex products.

The Hardware project is not released under the Creative Commons Attribution-Share Alike 3.0 United States License.

The software is released under GPL.

It is possible that the pictures in this manual differ from the latest revision of the board.

The product described in this document is subject to continuous development and improvements. All particulars of the product and its use contained in this document are given by OLIMEX in good faith. However all warranties implied or expressed including but not limited to implied warranties of merchantability or fitness for purpose are excluded. This document is intended only to assist the reader in the use of the product. OLIMEX Ltd. shall not be liable for any loss or damage arising from the use of any information in this document or any error or omission in such information or any incorrect use of the product.

This evaluation board/kit is intended for use for engineering development, demonstration, or evaluation purposes only and is not considered by OLIMEX to be a finished end-product fit for general consumer use. Persons handling the product must have electronics training and observe good engineering practice standards. As such, the goods being provided are not intended to be complete in terms of required design-, marketing-, and/or manufacturing-related protective considerations, including product safety and environmental measures typically found in end products that incorporate such semiconductor components or circuit boards.

Olimex currently deals with a variety of customers for products, and therefore our arrangement with the user is not exclusive. Olimex assumes no liability for applications assistance, customer product design, software performance, or infringement of patents or services described herein.

THERE IS NO WARRANTY FOR THE DESIGN MATERIALS AND THE COMPONENTS USED TO CREATE STM32-P152. THEY ARE CONSIDERED SUITABLE ONLY FOR STM32-P152.

Page 20