Skip to content

Libraries

Frederic Pillon edited this page Aug 31, 2017 · 26 revisions

Herafter, a non exhaustive list of libraries compatible with the STM32 core.

Currently, libraries that come with the Arduino IDE should work (could required some pins update in the sketch).

All those using SPI, I2C should be fully compatible.

/img/Warning-icon.png Arduino boards provide ICSP connector used by several Arduino shield for SPI signal: MISO/MOSI/SCK. STM32 boards do not have this ICSP connector, so this requires to manually wire those SPI signal on the desire pin (mainly: D11 to D13)

Built-in (delivered with the core package)

  • SPI: follow the official SPI API
  • Wire (I2C): follow the official Wire API.
  • EEPROM: follow the official EEPROM API.
  • Servo: follow the official Servo API. Need some review. Range is not correct.

Dedicated

Some libraries have been developed to support specific hardware features:

  • STM32Ethernet: for on board Ethernet port (ex: Nucleo-F429ZI).
    This library is fully compatible with Arduino Ethernet API.
  • STM32SD: for board with SD card slot (ex: Disco-F746).
    This library is fully compatible with Arduino SD API.

Goal is to have all dedicated STM32 libraries available through the "Library Manager"

Have a look here to see which one are available or thanks the "Library Manager"

http://www.arduinolibraries.info/architectures/stm32

Official from Arduino

Third party

ARDUINO_ARCH_STM32 must be used as differentiator.

Tested

Clone this wiki locally