stm 32 development ecosystem - · pdf filestm studio stm studio helps debug and diagnose stm32...

38
STM 32 Development Ecosystem June 2017

Upload: lexuyen

Post on 06-Feb-2018

224 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: STM 32 Development Ecosystem - · PDF fileSTM STUDIO STM Studio helps debug and diagnose STM32 applications while they are running by reading and displaying their variables in real-time

STM 32 Development Ecosystem

June 2017

Page 2: STM 32 Development Ecosystem - · PDF fileSTM STUDIO STM Studio helps debug and diagnose STM32 applications while they are running by reading and displaying their variables in real-time

STM32 family, the perfect solution for your projects

Page 3: STM 32 Development Ecosystem - · PDF fileSTM STUDIO STM Studio helps debug and diagnose STM32 applications while they are running by reading and displaying their variables in real-time

10 years longevity

STMicroelectronics provides a

minimum longevity

commitment of 10 years for

STM32 families.

Page 4: STM 32 Development Ecosystem - · PDF fileSTM STUDIO STM Studio helps debug and diagnose STM32 applications while they are running by reading and displaying their variables in real-time

CUBESTM32 CUBE or more precisely CUBE-MX is a graphical tool

that allows configuring the STM32 microcontrollers very

easily and generate a complete C project for:

IAR, KEIL, AC6 and ATOLLIC.

This platform includes the STM32 Cube Library, ensuring

easy portability across STM32 portfolio, plus a consistent set

of middleware components (RTOS, USB, FS, TCP/IP,

Graphics, etc).

All embedded peripherals examples come with a full set of

examples.

With STM32 Cube, STMicroelectronics provides a

comprehensive software tool, significantly reducing

development efforts, time and cost.

Page 5: STM 32 Development Ecosystem - · PDF fileSTM STUDIO STM Studio helps debug and diagnose STM32 applications while they are running by reading and displaying their variables in real-time

Evaluation Boards

• ST offers a comprehensive evaluation

boards to ease the lives of developers

and unleash the creativity of makers.

• All eva-boards include the emulator.

• A lot of eva-boards are ready to use

under ARM mbed

Evaluation boards

Page 6: STM 32 Development Ecosystem - · PDF fileSTM STUDIO STM Studio helps debug and diagnose STM32 applications while they are running by reading and displaying their variables in real-time

ODE - Open Development Environment The STM32 Open Development Environment (STM32 ODE) is an open, flexible, easy

and affordable way to develop innovative devices and applications based on the

STM32 32-bit microcontroller family combined with other state-of-the-art ST

components connected via expansion boards.

It enables fast prototyping with leading-edge components that can quickly be transformed

into final designs.

The STM32 ODE includes the following five elements:

• STM32 Nucleo development boards. A comprehensive range of affordable development

boards for all STM32 microcontroller series, with unlimited unified expansion capability,

and with integrated debugger/programmer

• STM32 Nucleo expansion boards. Boards with additional functionality to add sensing,

control, connectivity, power, audio or other functions as needed. The expansion boards are

plugged on top of the STM32 Nucleo development boards. More complex functionalities

can be achieved by stacking additional expansion boards

• STM32Cube software. A set of free-of-charge tools and embedded software bricks to

enable fast and easy development on the STM32, including a Hardware Abstraction Layer,

middleware and the STM32CubeMX PC-based configurator and code generator

• STM32Cube expansion software. Expansion software provided free of charge for use

with STM32 Nucleo expansion boards, and compatible with the STM32Cube software

framework

• STM32 ODE Function Packs. Set of function examples for some of the most common

application cases built by leveraging the modularity and interoperability of STM32 Nucleo

development boards and expansions, with STM32Cube software and expansions.

Page 7: STM 32 Development Ecosystem - · PDF fileSTM STUDIO STM Studio helps debug and diagnose STM32 applications while they are running by reading and displaying their variables in real-time

Low cost emulator

The ST-LINK/V2 is an in-circuit debugger and programmer for

the STM8 and STM32 microcontroller families. The single wire

interface module (SWIM) and JTAG/serial wire debugging (SWD)

interfaces are used to communicate with any STM8 or STM32

microcontroller located on an application board.

In addition to provide the same functionalities as the ST-LINK/V2,

the ST-LINK/V2-ISOL features digital isolation between the PC and

the target application board. It also withstands voltages of up to

1000 Vrms.

STM32 applications use the USB full-speed interface to

communicate with Atollic®, IAR™, Keil®, AC6 and TASKING

integrated development environments.

Page 8: STM 32 Development Ecosystem - · PDF fileSTM STUDIO STM Studio helps debug and diagnose STM32 applications while they are running by reading and displaying their variables in real-time

STM STUDIO

STM Studio helps debug and diagnose STM32

applications while they are running by reading and

displaying their variables in real-time.

Running on a PC, STM Studio interfaces with STM32

MCUs via the standard ST-LINK development tools.

STM Studio is a non-intrusive tool, preserving the

real-time behavior of applications.

STM Studio perfectly complements traditional

debugging tools to fine tune applications.

It is well suited for debugging applications which cannot

be stopped, such as motor control applications.

Different graphic views are available to match the

needs of debugging and diagnosis or to demonstrate

application behavior.

Page 9: STM 32 Development Ecosystem - · PDF fileSTM STUDIO STM Studio helps debug and diagnose STM32 applications while they are running by reading and displaying their variables in real-time

Libraries & Examples

The libraries include:

• The HAL hardware abstraction layer, enabling

portability between different STM32 devices via

standardized API calls

• The Low-Layer (LL) APIs, a light-weight,

optimized, expert oriented set of APIs designed

for both performance and runtime efficiency

• A collection of examples for all the STM32

peripherals

• A collection of Middleware components, like

RTOS, USB library, file system, TCP/IP stack,

Touch sensing library or Graphic Library (free

SEGGER G.L.) (depending on the MCU series),

etc

Page 10: STM 32 Development Ecosystem - · PDF fileSTM STUDIO STM Studio helps debug and diagnose STM32 applications while they are running by reading and displaying their variables in real-time

STM32 Education

Bring your STM32 project to life with the free educational resources created by STM.

Learn at your own pace, watch classes on your own schedule, anytime, anywhere, on

any device, or join one of our live learning sessions led by our experts, close to you

(trainings, tutorials, books, videos and much more).

Page 11: STM 32 Development Ecosystem - · PDF fileSTM STUDIO STM Studio helps debug and diagnose STM32 applications while they are running by reading and displaying their variables in real-time

Free C IDE - Compiler

Up to now there is a loot of IDE (Compiler and Debugger) for

the Cortex Mx, here there is a little list of the principal free IDE

that are used for develop on the STM32.

• AC6 – System WorkBench

• ATOLLIC is now free

• KEIL is free for STM32L0xx (Cortex M0+) and STM32F0xx

(Cortex M0).

For other STM32 it is free up to 32K of exe.

• emIDE

• mbed is free ARM compiler

• Now is possible use some STM32 in the ARDUINO IDE.

For more info see this tutorial

Page 12: STM 32 Development Ecosystem - · PDF fileSTM STUDIO STM Studio helps debug and diagnose STM32 applications while they are running by reading and displaying their variables in real-time

Support

The support is divided in three levels that are

• AVNET-SILICA local FAE & Specialist

• STM local FAE

• STM central support team (T.O.M.A.S.)

based in Prague

Page 14: STM 32 Development Ecosystem - · PDF fileSTM STUDIO STM Studio helps debug and diagnose STM32 applications while they are running by reading and displaying their variables in real-time

CUBE

14

More info are here

Page 15: STM 32 Development Ecosystem - · PDF fileSTM STUDIO STM Studio helps debug and diagnose STM32 applications while they are running by reading and displaying their variables in real-time

15

Page 16: STM 32 Development Ecosystem - · PDF fileSTM STUDIO STM Studio helps debug and diagnose STM32 applications while they are running by reading and displaying their variables in real-time

16

Page 17: STM 32 Development Ecosystem - · PDF fileSTM STUDIO STM Studio helps debug and diagnose STM32 applications while they are running by reading and displaying their variables in real-time

CUBE-MX - request update 1/2

17

Page 18: STM 32 Development Ecosystem - · PDF fileSTM STUDIO STM Studio helps debug and diagnose STM32 applications while they are running by reading and displaying their variables in real-time

CUBE-MX - request update 2/2

18

Page 19: STM 32 Development Ecosystem - · PDF fileSTM STUDIO STM Studio helps debug and diagnose STM32 applications while they are running by reading and displaying their variables in real-time

CUBE-MX - How to move the Pin Positions

19

Page 20: STM 32 Development Ecosystem - · PDF fileSTM STUDIO STM Studio helps debug and diagnose STM32 applications while they are running by reading and displaying their variables in real-time

CUBE-MX

Clock tree

20

Type here the

frequency that you

need and press enter

Page 21: STM 32 Development Ecosystem - · PDF fileSTM STUDIO STM Studio helps debug and diagnose STM32 applications while they are running by reading and displaying their variables in real-time

CUBE-MX - Peripheral and middleware configuration

21

Page 22: STM 32 Development Ecosystem - · PDF fileSTM STUDIO STM Studio helps debug and diagnose STM32 applications while they are running by reading and displaying their variables in real-time

CUBE-MX - GPIO Panel

22

Page 23: STM 32 Development Ecosystem - · PDF fileSTM STUDIO STM Studio helps debug and diagnose STM32 applications while they are running by reading and displaying their variables in real-time

CUBE-MX - generate the code for some GUI 1/3

23

Page 24: STM 32 Development Ecosystem - · PDF fileSTM STUDIO STM Studio helps debug and diagnose STM32 applications while they are running by reading and displaying their variables in real-time

CUBE-MX - generate the code for some GUI 2/3

24

Page 25: STM 32 Development Ecosystem - · PDF fileSTM STUDIO STM Studio helps debug and diagnose STM32 applications while they are running by reading and displaying their variables in real-time

CUBE-MX - generate the code for some GUI 3/3

25

Page 26: STM 32 Development Ecosystem - · PDF fileSTM STUDIO STM Studio helps debug and diagnose STM32 applications while they are running by reading and displaying their variables in real-time

CUBE-MX - Power consumption calculator

26

Page 27: STM 32 Development Ecosystem - · PDF fileSTM STUDIO STM Studio helps debug and diagnose STM32 applications while they are running by reading and displaying their variables in real-time

HAL library

27

HAL & LL library

Page 28: STM 32 Development Ecosystem - · PDF fileSTM STUDIO STM Studio helps debug and diagnose STM32 applications while they are running by reading and displaying their variables in real-time

28

Page 30: STM 32 Development Ecosystem - · PDF fileSTM STUDIO STM Studio helps debug and diagnose STM32 applications while they are running by reading and displaying their variables in real-time

HAL & LL library

30

Page 31: STM 32 Development Ecosystem - · PDF fileSTM STUDIO STM Studio helps debug and diagnose STM32 applications while they are running by reading and displaying their variables in real-time

31

Page 32: STM 32 Development Ecosystem - · PDF fileSTM STUDIO STM Studio helps debug and diagnose STM32 applications while they are running by reading and displaying their variables in real-time

32

Page 33: STM 32 Development Ecosystem - · PDF fileSTM STUDIO STM Studio helps debug and diagnose STM32 applications while they are running by reading and displaying their variables in real-time

33

Page 34: STM 32 Development Ecosystem - · PDF fileSTM STUDIO STM Studio helps debug and diagnose STM32 applications while they are running by reading and displaying their variables in real-time

HAL library - Where to find examples ready to use ?

34

Page 35: STM 32 Development Ecosystem - · PDF fileSTM STUDIO STM Studio helps debug and diagnose STM32 applications while they are running by reading and displaying their variables in real-time

LL examples

35

Page 36: STM 32 Development Ecosystem - · PDF fileSTM STUDIO STM Studio helps debug and diagnose STM32 applications while they are running by reading and displaying their variables in real-time

36

For who has interest to see a practical

section that explain how to develop a new

project on STM32L476 for AC6 see here.

Page 37: STM 32 Development Ecosystem - · PDF fileSTM STUDIO STM Studio helps debug and diagnose STM32 applications while they are running by reading and displaying their variables in real-time

And…

37

Up to now we showed you the standard way to develop

on STM32 using a classic tools.

In the next sections we will introduce you in the ARM

mbed world, a new way to develop firmware on STM32

families

Page 38: STM 32 Development Ecosystem - · PDF fileSTM STUDIO STM Studio helps debug and diagnose STM32 applications while they are running by reading and displaying their variables in real-time

Thank you!

38