STM32 tutorial

From AIRWiki
Revision as of 09:18, 27 April 2010 by MartinoMigliavacca (Talk | contribs) (STM32 module)

Jump to: navigation, search

---Work in progress---


STM32 is an ARM Cortex-M3 microcontroller built from ST. It combines a modern 32 bit architecture, high performances and low cost, making it a good choice for many applications.

In AIRLab there are some STM32 based boards to learn how to work with this kind of microcontrollers, and some projects have been developed on this architecture.

To be able to work with STM32 microcontrollers you will need:

  • an hardware board with the MCU and a JTAG connector to program it
  • a JTAG adapter
  • a toolchain to compile ARM executables on your computer
  • OpenOCD to write the executable on the MCU

Hardware

Stm32 module.jpg

STM32 module

In the AIRLab there are two ET-STM32 Stamp Module, low-cost plug-in modules with a STM32F103RET6 MCU on board. They include also a crystal oscillator, a MAX232 to communicate via serial port and the circuitry needed to upload the firmware via a bootloader, that is preloaded on the microcontroller.

Demo board

Stm32 demoboard.JPG

To start working with STM32 and it's peripherals there is a custom built demo board for the STM32 plug-in module that includes some LEDS, some buttons, two trimmers for ADC conversions, a 7-segment display, power supply and connections for RS232, SPI, I2C, CAN and USB interface.

ST board (IMU)

JTAG Adapter

Arm-usb-tiny.jpg

Development software

Commercial solutions

Free IDEs

Custom toolchain

OpenOCD