ST STM32, STM8 User Manual

Embedded software solutions ST, 3
rd
parties and open source
A full portfolio and several models
Extensive Embedded Software ecosystem around the STM32 and STM8 microcontrollers
You will find your solution, fitting your requirements in terms of price, feature, license scheme and support
Source code or binaries
Supported by third parties
Third parties
Built in-house, making the most of the STM32 and STM8 MCUs
Source code or binaries
Supported by ST
ST-designed software
Proposed by community or third parties
Source code, from BSD or GPL licenses to commercial products
Supported by open-source community or third parties
Open source
2
A large community of third parties… and growing !
3
STM32 MCUs embedded software offer - overview
4
Solutions at all levels
Hardware abstraction layer (HAL)
File
system
USB
TCP/IP 2.4GHz
Display
Audio
Motor
control
Industrial
protocols
Virtual
Machines
and
Model driven development
Automotive
Touch
sensing
Select the area of interest for more details
Safety
STL
Crypto
Connectors to
Cloud providers
NFC
Bootloader
Secure Boot
SSL TLS
Security
Connectivity
Sub-1GHz
Building
Automation
and Control
Artificial
Neural
Networks
RTOS/
kernel
Cellular
Middleware Application fields
5
Hardware abstraction layer (HAL)
Consistent programming interface
When microcontrollers have different hardware implementations
Full microcontroller coverage
All peripherals are handled
Hardware abstraction layer
This layer is the first one to interact with the MCU hardware
7
STM32 - hardware abstraction layer
Provider Solution name Model Cost
Availability
WB WL F0 G0 F1 F2
F3
G4 F4 F7 H7 L0 L1 L4 /L4+ L5
F30x F37x
ST STM32Snippets Source Free N
1
N
1
Y N
1
Y N
1
ST Standard peripheral library Source Free N
1
N
1
Y N
1
Y Y Y Y N
1
Y N
1
N
1
N
1
Y N
1
ST
STM32Cube - HAL Hardware Abstraction Layer
Open Source
Free
(BSD)
Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y
ST
STM32Cube – LL Low-Layer
Open Source
Free
(BSD)
Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y
More details about hardware abstraction layer solutions: STM32 Embedded Software overview
1/ Not plan to make it available
8
STM8 - hardware abstraction layer
Provider Solution name Model Cost
Availability
STM8S
STM8AF
STM8L10x
STM8Lx5x STM8Lx6x
STM8AL
ST Standard peripheral library Source Free Y Y Y
Back
9
Middleware and application fields
All standard middleware covered
RTOS/kernel
File system
USB
Security (crypto, SSL/TLS, secure boot)
Connectivity (TCP/IP, Bluetooth LE, Zigbee, Thread, Sub-1GHz, Sigfox, LoRa, Wi-Fi, NFC…),
Connectors to Cloud providers
Display, Audio
Safety
Industrial protocols
Motor Control
Middleware and application fields
Middleware stacks fill the gap between hardware and your application. ST and third parties bring the required solutions, as well as application software bricks to speed up customer development
11
This is the root component to share time between several tasks on a single core. It ensures task switching within a known and limited duration.
Middleware – RTOS / kernel
A multitude of solutions for STM32 and STM8 available now
12
STM32 – RTOS / kernel (1/4)
Provider
Solution
name
Model Cost
Availability
WB WL F0 G0 F1 F2 F3 G4 F4 F7 H7 L0 L1 L4 /L4+ L5
Alibaba Rhino RTOS Open Source (Apache 2.0) Free N N Y N Y N N N Y Y N Y N Y N Arduino STM32Duino Open source LGPL v2.1 Free N N Y Y Y Y Y Y Y Y Y Y Y Y N arm mbed OS
4
Open Source (Apache 2.0) Free Y N Y N Y Y Y N Y Y Y Y Y Y N
AWS
FreeRTOS kernel
Source
2
Free Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y
ChibiOS
ChibiOS/RT
ChibiOS/NIL
Open source (GPL3) or
Source
Free or
License
N N Y Y Y Y Y Y Y Y Y Y Y Y N
CMX CMX-RTX Source License N
3
N
3
Y N
3
Y Y Y N
3
Y Y Y Y Y Y N
3
CMX CMX-Tiny+ Source License N
3
N
3
Y N Y Y Y N
3
Y Y N Y Y N N
3
eCosCentric eCosPro
Modified GNU GPL or
Source
1
Free or
License
N
3
N
3
N N
3
Y Y Y N
3
Y Y N
3
N Y Y N
3
1/ eCos is an open-source kernel, a subset of eCosPro. eCosPro comes with TCP/IP stack, FAT, jFFS2, RAM and ROM FS 2/ FreeRTOS kernel license is MIT from V10 (former versions are under a modified GPL license)
3/ Please contact supplier 4/ Mbed OS is Threadcertified
13
STM32 – RTOS / kernel (2/4)
Provider Solution name Model Cost
Availability
WB WL F0 G0 F1 F2 F3 G4 F4 F7 H7 L0 L1 L4/L4+ L5
eForce µC3/Compact Source License N
2
N
2
Y Y Y Y Y N
2
Y Y Y Y Y Y Y
eForce µC3/Standard Source License N N N N N N N N Y Y Y N N N N
Emcraft uCLinux
Open Source
(GPL)
1
Free
1
N N N N N N N N Y Y N
2
N N N N
Embedded Office
Flexible Safety RTOS Source License Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y
EUROS EUROS
Binaries or
source
License N
2
N
2
Y N
2
Y Y Y N
2
Y Y Y Y Y Y N
2
Microsoft
Azure RTOS ThreadX
3
Source Free N
2
N
2
Y N
2
Y Y Y N
2
Y Y Y Y Y Y Y
Green Hills µ-velOSity Source License N
2
N
2
Y N
2
Y Y Y N
2
Y Y N
2
Y Y Y N
2
HCC eTaskSync Source License N
2
N
2
Y N
2
Y Y Y N
2
Y Y N
2
Y Y Y N
2
Keil / arm
RTX5 Open Source
(Apache 2.0)
Free
4
N
2
N
2
Y N
2
Y Y Y N
2
Y Y Y Y Y Y N
2
Mentor Nucleus Kernel Source License N
2
N
2
N N Y Y N
2
N
2
Y Y N
2
N N
2
Y N
2
1/ uCLinux is open source, but this company proposes some ports on STM32
2/ Please contact supplier
3/ ThreadX is part of the X-WARE IoT platform, which is Threadcertified 4/ RTX5 is part of arm Keil MDK software development tool
14
STM32 – RTOS / kernel (3/4)
Provider Solution name Model Cost
Availability
WB WL F0 G0 F1 F2 F3 G4 F4 F7 H7 L0 L1 L4/L4+ L5
Micrium µC-OS Open Source
(Apache 2.0)
Free N N Y N Y Y Y N Y Y N Y Y Y N
Weston
Embedded
Cesium RTOS Cs/OS2
and Cs/OS3
Source License N
2
N
2
Y N
2
Y Y Y Y Y Y N
2
Y Y Y N
2
Micro Digital SMX Source License N
2
N
2
N
2
N
2
Y Y Y N
2
Y Y N
2
N
2
N
2
N
2
N
2
NuttX NuttX Open Source
6
Free N N Y Y Y Y Y Y Y Y Y N Y Y N Prove & Run ProvenCore-M Source License Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Quadros RTXC Rtos Source License N
2
N
2
N
2
N
2
Y Y N
2
N
2
Y N
2
N
2
N
2
Y N
2
N
2
Riot Riot Open Source
4
Free N N Y Y Y Y Y Y Y Y N Y Y Y Y Rowebots UNISON software
expansion for
STM32Cube
(I-CUBE-UNISON)
3
Source Free
1
Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y
Rowebots UNISON
Source Free Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y
RT-Thread RT-Thread
Open Source
5
Free N N Y Y Y Y N Y Y Y Y Y N Y N
1/ UNISON kernel is available free of charge to run on STM32 devices
2/ Please contact supplier
3/ Available as STM32Cube Expansion enhanced for STM32 Toolset 4/ LGPL V2.1 license 5/ GPL V2 till v3.1.0, Apache 2.0 from V3.1.0 onwards 6/ BSD till v8.2, Apache 2.0 from V9.0.0 onwards
15
STM32 – RTOS / kernel (4/4)
Provider Solution name Model Cost
Availability
WB WL F0 G0 F1 F2 F3 G4 F4 F7 H7 L0 L1 L4/L4+ L5
Sciopta SCIOPTA 61508
2
Source License N
4
N
4
Y N Y Y Y Y Y Y Y N Y Y N
4
SEGGER embOS software
expansion for STM32Cube (I-CUBE­EMBOS)
Source License N
6
N
6
N
6
N
6
N
6
N
6
N
6
N
6
N
6
Y N
6
N
6
N
6
N
6
N
6
SEGGER embOS Source License N
4
N
4
Y N
4
Y Y Y N
4
Y Y Y Y Y Y N
4
ST STM32Cube – FreeRTOS
kernel
Open source
(MIT)
5
Free Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y
ST
X-CUBE-AZRTOS – Azure RTOS ThreadX
Source Free
21
Q4
22
Q1
N 21
Q4
N N N 21Q321Q221
Q3
Beta N N 21Q2 21
Q3
Wittenstein -
High
Integrity Systems
OpenRTOS
1
Source License N
4
N
4
Y N
4
Y Y Y N
4
Y Y Y N
4
Y Y N
4
Wittenstein -
High
Integrity Systems
SafeRTOS
2
Source License N
4
N
4
Y N
4
Y Y Y N
4
Y Y Y N
4
Y Y N
4
Wittenstein -
High
Integrity Systems
SafeRTOS CORE
3
Source License N
4
N
4
Y N
4
Y Y Y N
4
Y Y Y N
4
Y Y N
4
Zephyr Zephyr kernel Open Source
(Apache 2.0)
Free Y N Y Y Y Y Y Y Y Y Y Y Y Y Y
1/ OpenRTOS is FreeRTOS with commercial support
2/ Safety certified RTOS for systems requiring certification
3/ SafeRTOS version without full safety certification/documentation
4/ Available on customer request. Please contact supplier 5/ Included in STM32Cube MCU packages (\Middlewares\Third_Party folder)
6/ Available on STM32Cube, so porting is very easy. Please contact supplier
16
STM8 – RTOS / kernel
1/ Please contact supplier
Provider Solution name Model Cost
Availability
STM8S
STM8AF
STM8L
STM8AL
AtomThreads AtomThreads RTOS Open source (BSD) Free Y N
1
Chibios ChibiOS/RT Open source (GPL3) or Source Free or License Y Y CMX CMX-Tiny+
Source License Y N
1
SEGGER embOS
Source License Y Y
Back
17
Many supported algorithms
Through third parties (some with certifications) or directly from ST
Middleware crypto
Often-seen acronyms
Symmetric ciphering
Ciphering method that ensures the reuse of a unique key, both for encryption and decryption. Example: AES, DES, 3DES, ARC4, …
Asymmetric ciphering
Ciphering method based on pair of key, a private and a public one. This also brings some kind of authentication: only the owner of private key can
decrypt content that was encrypted with a public one. And people able to decrypt with public key can be sure it was encrypted by owner of private key.
Example: ECDSA, RSA, …
Hashing
Method to calculate a unique value for a given data content. This allows ensuring a content was not modified for instance. Example: MD5, SHA, …
Cryptology helps users ensure the security of data or authentication. This is a key element in ensuring the integrity of IoT applications for instance.
18
STM32 – crypto (1/2)
Back
Provider Solution name Model Cost
Availability
WB WL F0 G0 F1 F2 F3 G4 F4 F7 H7 L0 L1 L4/L4+ L5
CypherBridge
uVPN SDK
IKEv1/IKEv2/IPsec
Source License N N N N N N N N
1
Y Y Y N N Y N
1
EUROS
SSL/TLS
SSL v3, TLS 1.0, 1,1. 1.2
Binaries License N
1
N
1
Y N
1
Y Y Y N
1
Y Y Y Y Y Y N
1
EUROS
Cryptographic library, Verifiable Encryption
manager
1. Encryption methods:
- ARC4, - Blowfish,-Camellia- CAST5
- DES, - DAS, - ECC, - MD4, - MD5
- RSA, - SHA1,- SHA256, - SHA512
- TwoFish, - Whirpool, - HMAC96
- HMAC256
2. Coding:
- Rice, - RLE (Run-length encoding)
3. Compression:
- zlib, - libbz2, - LZ77,- LZW based (ZIP, GZ)
- Huffman, - Shannon-Fano
Binaries License N
1
N
1
Y N
1
Y Y Y N
1
Y Y Y Y Y Y N
1
HCC
Embedded Encryption Manager
AES, 3DES, DSS, EDH, MD5, RSA, SHA1, SHA256, ECC, TIGER, CHACHA20
Source License N
1
N
1
Y N
1
Y Y Y N
1
Y Y Y Y Y Y N
1
Oryx Embedded
CycloneCrypto
Lite: MD2, MD4, MD5, SHA-1, SHA-2, HMAC, RC4, DES, triple DES, AES, ECB, CBC, CFB, OFB, CTR, RSA, X.509 Pro: RIPEMD-128/160, Tigger/192, RC6, IDEA, Camellia, SEED, ARIA, CCM, GCM, Diffie-Hellman, DSA Ultimate: SAH-3, Keccak, CkaCha, Poly1305, ChaCha20Poly1305 AEAD, PKCS #5, ECC, ECDSA, ECDH, NIST-P, Brainpool
Open
source
(GPL2) or
Source
Free
or
license
N
1
N
1
Y N
1
Y Y Y Y Y Y Y Y Y Y Y
1/ please contact supplier
19
STM32 – crypto (2/2)
Back
Provider Solution name Model Cost
Availability
WB WL F0 G0 F1 F2 F3 G4 F4 F7 H7 L0 L1 L4/L4+ L5
Rowebots
UNISON SSL/TLS Stack
AES, Blowfish, Triple-DES (3DES), DES, ARC4, Camellia, XTEA ECB, CBC, CFB, CTR, GCM, CCM MD2, MD4, MD5, SHA-1, SHA-224, SHA-256, SHA-384, SHA-512, RIPEMD-160 ECC
Source License N N N N Y Y Y Y Y Y Y N Y
Y N
4
SEGGER emSecure signatures Source License N
4
N
4
Y N
4
Y Y Y Y Y Y Y Y Y Y N
4
SEGGER emLib AES and emLib DES Source License N
4
N
4
Y N
4
Y Y Y Y Y Y Y Y Y Y N
4
SEGGER emFile encryption Source License N
4
N
4
Y N
4
Y Y Y Y Y Y Y Y Y Y N
4
ST
STM32 Cryptographic library
1, 2
AES, DES, 3DES, ARC4, MD5, SHA1, SHA2, RSA sig, ECC Key gen, ECDSA, ...
Binaries Free N
6
N
6
N
6
N
6
Y Y N
6
N
6
Y N
6
N
6
N
6
Y N
6
N
6
ST X-CUBE-CRYPTOLIB Binaries Free Y N Y N Y Y Y N Y Y Y
3
Y Y Y Y
3
wolfSSL
wolfCrypt1, part of wolfSSL
MD2, MD4, MD5, SHA-1, SHA-256, SHA-384, SHA-512, BLAKE2b, RIPEMD-160, Poly1305 AES (CBC, CTR, GCM, CCM), Camellia, DES, 3DES, ARC4, RABBIT, HC-128, ChaCha20 RSA, DSS (DSA), DH, EDH, NTRU ECDH-ECDSA, ECDHE-ECDSA, ECDH-RSA, ECDHE­RSA
Open
source
(GPL2) or
Source
Free or
license
N
4
N
4
N
4
N
4
N
4
Y N
4
N
4
Y Y Y Y Y Y N
4
1/ Can benefit from hardware acceleration when available.
2/ Subject to trade regulations. See website. 3/ delivered as a patch 4/ please contact supplier
5/ Available on STM32Cube, so porting is very easy
6/ Not plan to make it available
20
Transport Layer Security (TLS) and its predecessor, Secure Sockets Layer (SSL), are cryptographic protocols that provide communications security.
The Transport Layer Security protocol aims primarily to provide privacy and data integrity between a client and a server
Middleware – SSL/TLS (1/2)
21
STM32 – SSL/TLS solutions
1/ Formerly known as PolarSSL. Apache 2.0 open source or GPL 2.0 open source license
2/ Please contact supplier 3/ Apache 2.0 license, included in STM32Cube MCU packages (\Middlewares\Third_Party folder) 4/ Available on STM32Cube, so porting is very easy
Provider Solution name Model Cost
Availability
WB WL F1 F2 F4 F7 H7 L4/L4+ L5
arm Mbed TLS
1
Open source Free N N Y Y Y Y Y Y Y
CypherBridge Embedded TLS SDK (uSSL™) Source License N N N Y Y Y Y Y N
2
HCC Verifiable TLS Source License N
2
N
2
Y Y Y Y N
2
N
2
N
2
Oryx Embedded CycloneSSL
Open source (GPL2) or
Source
Free or license N
2
N
2
Y Y Y Y Y Y N
2
SEGGER emSSL Source License N
2
N
2
Y Y Y Y N
2
N
2
N
2
ST STM32Cube – mbed TLS
3
Open source Free N
4
N
4
Y Y Y Y Y N Y
wolfSSL Embedded SSL Library
Open source (GPL2) or
Source
Free or license N
2
N
2
N Y Y Y N
2
Y N
2
22
STM32 – SSL/TLS solution details
Provider Solution name Details
arm Mbed TLS
SSL version 3, TLS version 1.0, 1.1, 1.2,
More…
CypherBridge Embedded TLS SDK (uSSL™)
IETF standard SSL 3.0/TLS 1.2 protocols. Supported crypto and hash functions include: RSA, DSS, PKCSv1.5, OAEP, DES, 3DES, AES, RC4, SHA1, SHA2, MD2, MD4, MD5, RNG, X.509 certificate Processing
HCC Verifiable TLS
TLS 1.0, 1.1, 1.2, 1.3 (RFC 5246), CHACHA20, POLY1305, SSL3.0, DTLS 1.2 (RFC6347), 1.0 (RFC 4347), RFC 6520, HTTP over TLS (RFC 2818), HTTPS, FTPS, embedded encryption manager for full certificate management, cipher suites: DH/DHE/DSS/ECDHE/RSA, AES/RC4/3DES, SHA/MD5
Oryx Embedded CycloneSSL
Server and/or client operation, Supports TLS 1.0, 1.1, 1.2, 1.3 and SSL 3.0, Supports DTLS 1.0 and DTLS 1.2, Robust and efficient implementation, Supports ECC (Elliptic Curve Cryptography), Rich set of TLS cipher suites (including Suite B profile),RSA, Diffie-Hellman and ECDH key exchange algorithms, PSK (Pre-
Shared Key) cipher suites, Supports stream ciphers, CBC block ciphers as well as AEAD ciphers (CCM and GCM),
ChaCha20Poly1305 AEAD, Cryptographic library for common encryption algorithms (RC4, IDEA, DES, 3DES,
AES, Camellia, SEED and ARIA), Supports MD5, SHA-1, SHA-256 and SHA-384 hash algorithms, SSL/TLS session resumption, PKIX path validation, Compliant with BSD socket API, Supports hardware accelerated encryption engines (when available), Flexible memory footprint. Built-time configuration to embed only the necessary features,Portable architecture (no processor dependencies), The library is distributed as a full ANSI C and highly maintainable source code
SEGGER emSSL
TLS 1.0, 1.1 and 1.2.
More…
ST STM32Cube – mbed TLS
SSL version 3, TLS version 1.0, 1.1, 1.2,
More…
wolfSSL Embedded SSL Library
SSL version 3.0 and TLS versions 1.0, 1.1, 1.2, and 1.3 (client and server), DTLS 1.0, 1.2 support (client and
server)
More…
Back
23
A bootloader aims to enable firmware update in the field through a communication interface.
STM32 devices embed a built-in bootloader in system memory, supporting UART,
SPI, I2C, CAN, USB interfaces. Alternatively, developers can implement their own bootloader in user flash memory
(also called In-Application Programming)
ST also proposes a reference code for Secure Boot and Secure Firmware Update
Middleware – bootloader / secure boot
24
STM32 – bootloader / secure boot
Provider Solution name Model Cost
Availability
WB WL F0 G0 F1 F2 F3 G4 F4 F7 H7 L0 L1 L4/L4+ L5
ST X-CUBE-IAP-USART
3
Source Free N
2
N
2
N
2
N
2
Y N
2
N
2
N
2
N
2
N2N
2
Y N
2
Y N
2
ST X-CUBE-IAP-SD
3
Source Free N
2
N
2
Y N
2
N
2
N
2
N
2
N
2
N
2
N2N
2
N
2
N
2
Y N
2
ST X-CUBE-SBSFU
4
Source Free Y N
6
N Y N N N Y Y Y Y Y Y Y N
5
ST STM32Cube – SBSFU Source Free N Y N N N N N N N N N N N N N ST STM32Cube – OpenBootloader Source Free N N N N N N N Y N N N N N N Y ST STM32Cube – TF-M Source Free N N N N N N N N N N N N N N Y
CypherBridge uLoadXL SDK Source License N N N N N Y N N Y Y Y N N Y N eCosCentric RedBoot Source License N N N N Y Y Y N Y Y N
1
N Y Y N
1
EUROS Bootloader Binaries License N
1
N
1
Y N
1
Y Y Y N
1
Y Y Y Y Y Y N
Feaser OpenBLT
Open source
(GPL3) or Source
Free or
Licence
N
1
N
1
Y Y Y Y Y N
1
Y Y N
1
N
1
N
1
Y N
1
HCC Bootloaders Source License N
1
N
1
Y Y Y Y Y N
1
Y Y N
1
Y Y Y N
1
Simma Software ssBL-target, ssBL-PC Source License N
1
N
1
Y N
1
Y Y Y N
1
Y Y N
1
N
1
N
1
Y N
1
wolfSSL WolfBoot
Open source
(GPL2) or Source
Free or
license
Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y
1/ Please contact supplier 2/ Available on STM32Cube, so porting is very easy 3/ In-application programming example 4/ Secure Boot + Secure Firmware update reference code to demonstrate best use of STM32 security protections 5/ For STM32L5, SBSFU is a TF-M example included in STM32CubeL5 MCU Package 6/ For STM32WL, SBSFU is included in STM32CubeWL MCU Package
25
STM32 – bootloader / secure boot details
Provider Solution name Details
ST X-CUBE-SBSFU
Secure Boot to check firmware image before execution, Secure Firmware Update with anti-rollback and
partial image update capabilities for over-the-air or local firmware image update, Secure key management
services offering cryptographic services by means of the PKCS #11 APIs, Standalone STM32 system solution
example demonstrating best use of STM32 protections to protect assets against unauthorized external or internal access, Combined STM32 and STSAFE-A110 system solution example demonstrating hardware Secure Element protections for secure authentication services and secure data storage
CypherBridge uLoadXL SDK
Software updates and secure boot loader for embedded platforms. Safe install, to manage multiple images for an update, activation and safe-boot to rollback or factory version. The integrated boot loader provides secure root of trust and software integrity checks
eCosCentric RedBoot
Debug and bootstrap firmware
Feaser OpenBLT
UART, CAN, TCP/IP, USB, SD-CARD External flash and serial EEPROM
HCC Bootloaders
Serial, USB Device, USB Host , FAT Ethernet, Fail-safety, AES encryption
Simma Software ssBL-target, ssBL-PC
Supported protocols include CAN, J1939, J1708, CANopen, UDS, Bluetooth, USB, and RS232
26
STM8 – bootloader
1/ Please contact supplier
Provider Solution name Model Cost
Availability
STM8S
STM8AF
STM8L
STM8AL
Simma Software ssBL-target, ssBL-PC Source License Y N
1
Back
27
Safety solutions
Ensuring data is not corrupted in any way (power supply removal, …)
NAND, NOT, SSD memory access solutions
With error correction and wear-leveling
Middleware – file system
A file system is the way in which files are named and how they are placed
logically for storage and retrieval. Several standards exist: FAT; JFFS2…
28
STM32 – file system (1/3)
Provider Solution name Model Cost
Availability
WB WL F0 G0 F1 F2 F3 G4 F4 F7 H7 L0 L1 L4/L4+ L5
AWS FreeRTOS+TMFAT SL
2
Source Free N N Y N Y Y Y N Y Y N Y Y Y N
arm
Mbed LittleFileSystem, FATFileSystem
Open source Free N
3
N
3
Y N
3
Y Y Y Y Y Y N Y Y Y Y
ChaN FatFS
Open source
(BSD)
Free N N N N Y N N N Y N N N N N N
CMX CMX-FFS
Source
License
N
3
N
3
Y N
3
Y Y Y N Y Y Y Y Y N N
CypherBridge uFile
Source
License
N N N N N Y N N
3
Y Y N
3
N N N
N
3
EmCraft
JFFS2, YaFFS, FAT, NFS, etc..
Open source
(GPL)
Free N N N N N Y N N Y Y N
3
N N N N
eCosCentric
eCosPro-YAFFS1, MMFS,
JFFS2
Source
License
N N N N Y Y Y N Y Y N
3
N Y Y N
eForce µC3-FileSystem
Source
License
N
3
N
3
Y N
3
Y Y Y N
3
Y Y N
3
Y Y Y
N
3
Microsoft
Azure RTOS FileX + LevelX
Source Free N
3
N
3
Y N
3
Y Y Y N
3
Y Y N
3
Y Y Y
N
3
1/ Free for non-commercial use 2/ For STM32 users, the license is the same as FreeRTOS kernel (MIT) 3/ Please contact supplier
29
STM32 – file system (2/3)
Provider Solution name Model Cost
Availability
WB WL F0 G0 F1 F2 F3 G4 F4 F7 H7 L0 L1 L4/L4+ L5
EUROS FMS, FAT, SafeFAT
Binaries License N
3
N
3
Y N
3
Y Y Y N Y Y Y Y Y Y N
HCC
FAT FS: FAT, THIN, exFAT SafeFAT /
Flash FS: SafeFlash
,
TINY, SafeFTL SafeexFAT / FMSF
Source License N
3
N
3
Y N
3
Y Y Y N
3
Y Y Y Y Y Y N
3
Wittenstein ­High Int. Sys.
CONNECT File System
Source License N
1
N
1
Y N
1
Y Y Y N
1
Y Y N
1
Y Y Y N
1
Green Hills
µ-velOSity File System
Source License N N N N Y Y Y N
1
Y Y N
1
N Y Y N
1
Keil / arm MDK-ARM Flash
Source License N
1
N
1
Y N
1
Y Y Y N
1
Y Y N
1
Y Y Y N
1
Mentor
Embedded
Nucleus Storage
Source License N N N N Y Y Y N
1
Y Y N
1
N Y Y N
1
Micrium µC/FS
Open Source
(Apache 2.0)
Free N N Y N Y Y Y N Y Y N Y Y Y N
Weston Embedded
Cesium RTOS Cs/FS
Source License N
1
N
1
Y N
1
Y Y Y N
1
Y Y N
1
Y Y Y N
1
1/ Please contact supplier
2/ Included in STM32Cube MCU packages (\Middlewares\Third_Party folder)
30
STM32 – file system (3/3)
Provider Solution name Model Cost
Availability
WB WL F0 G0 F1 F2 F3 G4 F4 F7 H7 L0 L1 L4/L4+ L5
Micro Digital smxFS
Source License N
1
N
1
Y N
1
Y Y Y N
1
Y Y N
1
N
1
N
1
N
1
N
1
Quadros RTXCfatfile
Source License N
1
N
1
Y N
1
Y Y Y N
1
Y Y N
1
Y Y Y N
1
Rowebots
Unison FAT File System
Source License N N N N Y Y Y N
1
Y Y N
1
N Y Y N
1
SEGGER emFile
Source License N
1
N
1
Y N
1
Y Y Y N
1
Y Y N
1
Y Y Y N
1
ST
STM32Cube ­FatFS
2
Open source
(BSD)
Free Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y
ST
X-CUBE-AZRTOS ­FileX
Source Free
21
Q4
22
Q1
N 21
Q4
N N N 21
Q3
21
Q221Q3
Beta N N 21Q2 21
Q3
1/ Please contact supplier 2/ Included in STM32Cube MCU packages (\Middlewares\Third_Party folder)
31
STM8 – file system
1/ Could be very easily ported. 2/ Petit FatFS ported on STM8 available in demos
Provider Solution name Model Cost
Availability
STM8S
STM8AF
STM8L
STM8AL
ChaN Petit FatFS
Open source (BSD) Free N
1
Y
2
HCC FAT FS: FAT THIN, Flash FS:
TINY
Source License Y Y
SEGGER emFile
Source License Y Y
Back
32
Universal Serial Bus requires a dedicated software stack. This serial bus is organized in a star
topology with host and device roles, with the host organizing the traffic. Several device classes are
specified, in order to ease communication in different application cases.
Middleware – USB
Often-seen acronyms
OTG
On-The-Go: An OTG peripheral can switch host and device roles on the fly
HUB
Defines what protocols to implement to build a hub application
MS
Mass storage: Protocols to interact with storage block devices (for files)
HID
Human interface device: Protocols for peripherals interacting with humans (mouse, keyboard, etc.)
CDC
Communication device class: Protocols for serial communications, different sub-classes define details, for instance ACM for a standard COM port, or ECM for modems
Printer
Defines what protocols to implement to build a printer application
Audio
Defines what protocols to implement to build an audio application (microphone, headset, etc.)
DFU
Device firmware upgrade: Protocols to implement firmware upgrade ability
USB-PD
USB Power Delivery
TCPM
USB Type-C Port Manager
33
STM32 – USB solutions (1/3)
Provider Solution name Model Cost
Availability
WB F0 G0 F1 F2 F3 G4 F4 F7 H7 L0 L1 L4/L4+ L5
Chibios ChibiOS/HAL
Open source
(GPL3) or
Source
Free or License N
1
Y N
1
Y Y Y N
1
Y Y N
1
Y Y Y N
1
CMX
CMX-USB Device, Host
Source License N
1
Y N
1
Y Y Y N
1
Y Y N
1
Y Y N N
1
eCosCentric eCosPro-Host, Device Source License N
1
N N
1
Y Y Y N
1
Y Y N
1
N Y Y N
1
EUROS USB Host & Device Binaries License N
1
Y N
1
Y Y Y N
1
Y Y Y N Y Y N
1
EmCraft Linux USB Host
Open source (GPL)
Free N N N N Y N N
1
Y N N
1
N N N N
1
1/ Please contact supplier
34
STM32 – USB solutions (2/3)
Provider Solution name Model Cost
Availability
WB F0 G0 F1 F2 F3 G4 F4 F7 H7 L0 L1 L4/L4+ L5
Microsoft Azure RTOS USBX Source Free N
1
Y N
1
Y Y Y N
1
Y Y N
1
Y Y Y N
1
HCC
HCC-USB Host, Device
Source License N
1
Y N
1
Y Y Y N
1
Y Y N
1
Y Y Y N
1
Keil / arm MDK-ARM USB Source License N
1
Y N
1
Y Y Y N
1
Y Y N
1
Y Y Y N
1
Mentor Embedded
Nucleus USB Source License N N N Y Y Y N
1
Y Y N
1
N Y Y N
1
Micrium
USB Host, USB Device
Open Source Free N Y N Y Y Y N Y Y N Y Y Y N
Weston Embedded
Cesium RTOS Cs/USBH, Cs/USBD
Source License N
1
Y N
1
Y Y Y N
1
Y Y N
1
Y Y Y N
1
Micro Digital smxUSB Source License N
1
Y N
1
Y Y Y N
1
Y Y N
1
N
1
N
1
N
1
N
1
Quadros RTXCusb Source License N
1
N
1
N
1
Y Y Y N
1
N
1
N
1
N
1
N
1
N
1
N
1
N
1
1/ Please contact supplier
35
STM32 – USB solutions (3/3)
Provider Solution name Model Cost
Availability
WB F0 G0
F1
F2 F3 G4 F4 F7 H7 L0 L1 L4/L4+ L5
Others
F105 F107
Rowebots Unison USB System Source
License
N N N Y Y Y N
1
Y N N
1
Y N Y N
1
SEGGER emUSB Device, emUSB Host Source
License
N
1
Y N
1
Y Y Y N
1
Y Y N
1
Y Y Y N
1
ST USB FS device library Source Free N Y N Y N N Y N
1
N N N
1
N Y N N
1
ST USB FS&HS Host&Device lib Source Free N N N N Y Y N N
1
Y N N
1
N N N N
1
ST
STM32Cube – USB Host&Device
4
Source Free Y
2
Y
2
N Y
2
Y Y
2
Y
2
Y Y Y Y
2
Y
2
Y
2
Y
2
ST
STM32Cube – USB-C Power Delivery
4
Source Free N N Y N N N Y N N N N N N Y
ST X-CUBE-USB-PD
5
Binary Free N
6
Y N
6
N
6
N
6
N
6
N
6
N
6
N
6
N
6
N
6
N
6
N
6
N
1
ST X-CUBE-AZRTOS - USBX Source Free
21
Q4
N 21
Q4
N N N 21
Q321Q221Q3
Beta N N 21
Q2
21
Q3
Thesycon Embedded USB Device Source License N
1
N
1
N
1
N
1
Y N
1
N
1
Y Y N
1
N
1
N
1
N
1
N
1
Zephyr USB device stack
Open Source
(Apache 2.0)
Free N Y N Y Y Y N
1
Y Y N Y N Y N
1
1/ Please contact supplier 2/ Device only 4/ Included in STM32Cube MCU packages (\Middlewares\Third_Party folder)
5/ Examples for P-NUCLEO-USB001 and P-NUCLEO-USB002 Nucleo Packs, and for ON-FUSB3-STM32
6/ Available on STM32Cube, so porting is very easy
36
STM32 – USB solutions details (1/2)
Provider Solution name Details
Chibios ChibiOS/HAL
Device: HID, MS, CDC
CMX CMX-USB Device, Host
Device: HID, MS, CDC (ACM, ECM, RNDIS), Audio, Midi, MTP, PHDC Host: HID, MS, CDC (ACM, ECM, RNDIS, OBEX), Audio, Midi, Printer, HUB
eCosCentric eCosPro-Host, Device
Device: MS, CDC (ACM, ECM, EEM, RNDIS) Host: MS, CDC (ACM, ECM, EEM, RNDIS), Hub
EUROS USB Host & Device Stack
Device: HID, MS, CDC (ACM, ECM) Host: HID, MS, CDC (ACM, ECM), HUB
Microsoft USBX
Device: HID, MS, CDC (ACM, ECM, RNDIS), Still Image, PTP, PictBridge, DFU, PIMA w/MTP Host: HID, MS, CDC (ACM, ECM), Audio, Printer, HUB, ASIX, PIMA, GSER, PROLIFIC
EmCraft Linux USB Host
Host: HID, MS, CDC (ACM, ECM), HUB
HCC HCC-USB
Device: Connectivity (HID), File System & Storage (Mass Storage), Ethernet & Serial Interface (RNDIS, CDC-ACM, CDC-ECM, CDC-EEM, CDC-NCM), Audio (AUDIO, 1.0, 2.0, MIDI), Multi-media & Printing (MTP, Pictbridge
, Printer PCL, TEC), Healthcare (PHDC) Host: Connectivity (HID, Hub, lan7500, lan9500, CCID, CP201x), File System & Storage (Mass Storage), Ethernet & Serial Interface (RNDIS, CDC-ACM, CDC-ECM, CDC-EEM, CDC-FTDI, CDC-NCM), Audio (AUDIO, MIDI), Multi-media & Printing (MTP, Printer)
Keil / arm MDK-ARM USB
Device: HID, MS, CDC (ACM), Audio
Host: HID, MS
Mentor Embedded Nucleus USB
Device: HID, MS, CDC (ACM, ECM) Host: HID, MS, CDC (ACM, ECM), HUB
Micrium USB Host, USB Device
Device: HID, MS, CDC (ACM), Audio, PHDC (Medical) Host: HID, MS, CDC (ACM), Audio, Printer, PHDC (Medical)
Weston Embedded Cesium RTOS Cs/USBH, Cs/USBD
Device: HID, MS, CDC (ACM), Audio, PHDC (Medical) Host: HID, MS, CDC (ACM), Audio, Printer, PHDC (Medical)
37
STM32 – USB solutions details (2/2)
Provider Solution name Details
Micro Digital smxUSB
Device: HID, MS, CDC (ACM, RNDIS), Audio+Midi, Video, PTP, MTP, DFU Host: HID, MS, CDC (ACM, ECM, Ethernet Adapter, WiFi and wireless modem,), Audio+Midi, Video, Printer, HUB
Quadros RTXCusb
Device: MS, CDC (ACM, ECM, RNDIS) Host: HID, MS, CDC (ACM), HUB
Rowebots Unison USB System
Device: MS, CDC (ACM) Host: MS, CDC (ACM), HUB, others on demand (inc . PHDC)
SEGGER emUSB Device, emUSB Host
Device: HID, MS, CDC (ACM), RNDIS, Printer, MTP
Host: HID, MS, CDC (ACM), HUB
ST USB FS device library
Device: HID, MS, CDC (ACM), Audio, DFU
ST USB FS&HS Host&Device
Device: HID, MS, CDC (ACM), Audio, DFU Host: HID, MS
ST STM32Cube – USB Host&Device
Device: HID, MS, CDC (ACM), Audio, DFU Host: HID, MS, CDC (ACM), Audio, MTP
ST STM32Cube – USB-C Power Delivery
4
USB PD 3.0, PPS, FRS, TCPCi, TCPM, source, sink, DRP, USB Type-C CC logic
ST X-CUBE-AZRTOS - USBX
Device: HID, MS, CDC (ACM, ECM, RNDIS), Still Image, PTP, PictBridge, DFU, PIMA w/MTP Host: HID, MS, CDC (ACM, ECM), Audio, Printer, HUB, ASIX, PIMA, GSER, PROLIFIC
Thesycon Embedded USB Device
Device: Audio, CCID, Mass Storage, network, HID, CDC (ACM)
Zephyr USB device stack
Device: CDC (ACM), DFU
Back
38
TCP and IP were developed by a US Department of Defense research project to connect a number of different networks designed by different vendors into a
network of networks (the Internet).
It was initially successful because it delivered a few basic services that everyone needs (file transfer, electronic mail, remote logon) across a very large number of client and server systems and is now widely deployed.
Middleware – TCP/IP (1/2)
39
Middleware – TCP/IP (2/2)
Often-seen acronyms
ARP
Address resolution protocol: Provides
physical address from IP address
IP
Internet protocol: Primary protocol in Internet Protocol Suite.
2 flavors: IPv4 and IPv6. IPv4 will disappear as it only supports up to 232addresses, not enough for future needs, while IPv6
supports 2
128
6LoWPAN
IPv6 over low
-power wireless personal area networks: Provides IPv6 connectivity to low-rate wireless networks
IPSec
Internet protocol security: Secured version of IP, using cryptography
TCP
Transmission control protocol: Provides reliable, ordered delivery of a stream of bytes
UDP
User datagram protocol: Provides unreliable service.
Datagrams may arrive in any order, duplicated, or may be missing. Used for time-sensitive applications, when data drop is better than
delay
DHCP
Dynamic host configuration protocol: Provides means to allocate
IP address dynamically
DNS
Domain name system: Translates domain names meaningful to humans into numerical IP
ones
FTP
File transfer protocol: Provides means to copy files from one host to another
TFTP
Trivial file transfer protocol: Similar to FTP, but based on UDP, and
simpler (for example, no directory)
SMTP
Simple mail transfer protocol: Used to send e
-mail to a server
POP
Post office protocol: Used to retrieve e
-mail from a server
HTTP
Hypertext transfer protocol: Used by web browsers
SSL/TLS
Transport layer security: Secured container for application protocols using cryptography. Example: HTTPS means HTTP over SSL,
FTPS, etc.. IPSec applies cryptography at a lower level
than SSL/TLS, making it more universal. However, SSL is widely used.
40
STM32 – TCP/IP solutions (1/2)
Provider Solution name Model Cost
Availability
WB F1 F2 F4 F7 H7 L4/L4+
AWS FreeRTOS+TMTCP
2
Source Free N
1
Y Y Y Y N
1
N
1
AWS FreeRTOS+TMUDP
2
Source Free N
1
Y Y Y Y N
1
N
1
CMX CMX-TCP/IP Source License N
1
Y Y Y Y N
1
N
1
CMX CMX-MicroNet Source License N
1
Y Y Y Y N
1
N
1
CypherBridge Embedded SSH SDK (uSSH™) Source License N
1
N Y Y Y N
1
N
1
EUROS TCP/IP stack Binaries License N
1
Y Y Y Y Y N
1
Microsoft
NetX and NetX Duo IPv4/IPv6 and NetX Secure SSL/TLS/DTLS
Source Free N
1
Y Y Y Y N
1
Y
eCosCentric
SecureSockets, SecureShell
eCosPro stacks
Source License N
1
Y Y Y Y N
1
N
1
eForce µNet3 Source License N
1
Y Y Y Y N
1
N
1
EmCraft Linux TCP/IP stack Open source (GPL) Free N N Y Y Y N
1
N
Green Hills µ-velOSity TCP/IP v4/v6 Source License N
1
Y Y Y Y N
1
N
1
Wittenstein - High Integrity Systems
CONNECT TCP Source License N
1
Y Y Y Y N
1
N
1
1/ Please contact supplier 2/ The license is the same as FreeRTOS kernel (MIT)
41
STM32 – TCP/IP solutions (2/2)
Provider Solution name Model Cost
Availability
WB F1 F2 F4 F7 H7 L4/L4+
HCC MISRA HCC-TCP/IP v4/v6 Source License N
2
Y Y Y Y N
2
Y
Keil / arm MDK-ARM TCPNET Source License N
2
Y Y Y N
2
N
2
Y
Mentor Embedded Nucleus Network Source License N
2
Y Y Y Y N
2
Y Micrium µC/TCP-IP Open Source Free N Y Y Y Y N Y Weston Embedded Cesium RTOS Cs/NET Source License N
2
Y Y Y Y N
2
Y Micro Digital smxNS and smxNS6 (Dual IPv6/v4) Source License N
2
Y Y Y Y N
2
N
2
Oryx Embedded CycloneTCP Open source (GPL2) or source Free or license N
2
Y Y Y Y Y Y
Quadros RTXC Quadnet Source License N
2
Y Y Y Y N
2
N
2
Rowebots Unison TCP-IP/v4-v6 Source License N
2
N Y Y Y N
2
N
2
SEGGER embOS/IP Source License N
2
Y Y Y Y Y Y
ST STM32Cube – LwIP
1
Open source (BSD) Free N
3
Y Y Y Y Y Y
ST X-CUBE-AZRTOS – NetX / NetX duo Source Free
21Q4
N N
21Q2
21Q3
Beta
21Q2
Zephyr Zephyr Networking Open Source (Apache 2.0) Free N Y Y Y Y N Y
1/ A port to STM32 was implemented by ST, as part of STM32Cube, Licensing model cascaded to end-user.
Included in STM32Cube MCU packages (\Middlewares\Third_Party folder)
2/ Please contact supplier 3/ Available on STM32Cube, so porting is very easy
42
STM32 – TCP/IP solution details (1/3)
Provider Solution name Details
AWS FreeRTOS+TMTCP
ARP, DHCP, DNS, LLMNR, NBNS, UDP
AWS FreeRTOS+TMUDP
ARP, DHCP and DNS
CMX CMX-TCP/IP
PPP, PPPoE, ARP, IGMP, ICMP, IPv4, UDP, TCP, DHCP(cs), DNS, FTP(cs), IMAP4, NAT, POP3(c), SMTP , SNMP, SNTP, Telnet(s), SSL/TLS, SSH, TFTP(cs), HTTP(s)
CMX CMX-MicroNet
PPP, ARP, IGMP, ICMP, IPv4, UDP, TCP, DHCP(c), DNS, FTP(cs), POP3(c), SMTP, SNMP, SNTP, Telnet(s), SSL/TLS, TFTP (c), HTTP(s)
CypherBridge Embedded SSH SDK (uSSH™)
SSH 2.0, Configurable DSS and RSA asymmetric session, Configurable crypto with 3DES AES and blowfish support, SCP, SFTP
EUROS TCP/IP stack
PPP, PPPoE, ARP, IGMP, ICMP, IPv4, IPv6, IPSec/IKE, UDP, TCP, DNS, DHCP(cs), FTP(cs), NAT, POP3(c), SMTP, SNMP, SNTP, Telnet(s), SSL/TLS, TFTP, HTTP(cs), SFTP, FTPS, SSH
Microsoft NetX and NetX Duo IPv4/IPv6
PPP, ARP, IGMP, ICMP, IPv4, IPv6, IPSec/IKE, UDP, TCP, DNS, DHCP(c), FTP(cs), NAT, POP3(c), SMTP, SNMP, SNTP, Telnet(s), TFTP, HTTP(s)
eCosCentric SecureSockets
SSH2
eCosCentric SecureShell
SSL/TLS
eCosCentric eCosPro stacks
PPP, ARP, ICMP, UDP, TCP, IPv4, IPv6, DHCP, BOOTP, SMTP, TFTP, FTP(c+s), HTTP, SNMP, NTP, mDNS, Bonjour
eForce µNet3
PPP, ARP, IGMP, ICMP, IPv4, IPv6, UDP, TCP, DNS, DHCP(c), FTP(s), HTTP(cs), TFTP, SNMP, SNTP, Telnet(s), POP3(c), SMTP, SSL/TLS
EmCraft Linux TCP/IP stack
PPP, DNS, NAT, SSH (cs), DHCP (cs), SNMP (cs), Telnet (cs), FTP (cs), HTTP (cs)
HCC MISRA HCC-TCP/IP v4/v6
IPv4, IPv6, UDP, TCP, DNS, DHCP(cs), FTP(cs), SMTP, TFTP(s), SLIP, PPP, PPPoE, IGMP, IPSec/IKE, NAT, POP3(c), SNMP, SNTP, Telnet(s), RTP/RTCP, EAP, EST, ESMTP, SSH, MLDv2, NDP, MQTT
Wittenstein - High Integrity Systems
CONNECT TCP
TCP, UDP, ARP, ICMP, IPv4, DNS, DHCP, FTP, TFTP, HTTP, LLMNR, NBNS, Auto-IP, standard sockets or callback interface
(c): Client
(s): Server
(cs): Client and Server
43
STM32 – TCP/IP solution details (2/3)
(c): Client (s): Server (cs): Client and Server
Provider Solution name Details
Green Hills µ-velOSity TCP/IP v4/v6
ARP, ICMP, IGMP, IPv4, IPv6, IPv4/6, UDP, TCP, DNS, DHCP(c),
Keil / arm MDK-ARM TCPNET
SLIP, PPP, ARP, IPv4, ICMP, UDP, TCP, DNS, DHCP(c), FTP(s), SMTP, SNMP, Telnet(s), TFTP(s), HTTP(s)
SICS LwIP
PPP, ARP, ICMP, IPv4, UDP, TCP, DHCP(c), IPv6
Mentor Embedded Nucleus Kernel
PPP, PPPoE, ARP, IGMP, ICMP, IPv4, IPv6, IPSec/IKE, UDP, TCP, DHCP(c), FTP(cs), NAT, SNMP, SNTP, Telnet(cs), SSL/TLS, TFTP (cs), HTTP(cs)
Micrium µC/TCP-IP (and µC/SSL)
ARP, ICMP, IPv4, UDP, TCP, DNS, DHCP(c), FTP(cs), SMTP, POP3(c), SNTP, Telnet(s), SSL/TLS, TFTP, HTTP(s)
Weston Embedded
Cesium RTOS Cs/NET
ARP, ICMP, IPv4, UDP, TCP, DNS, DHCP(c), FTP(cs), SMTP, POP3(c), SNTP, Telnet(s), SSL/TLS, TFTP, HTTP(s)
Micro Digital smxNS and smxNS6 (Dual IPv6/v4)
SLIP, PPP, PPPoE, ARP, IGMP, ICMP, IPv4, IPv6, IPv4/6, UDP, TCP, DNS, mDNS, DHCP(cs), FTP(cs), NAT, POP3(c), SMTP, SNMP, SNTP, Telnet(s), SSL/TLS, TFTP, HTTP(cs), SSH
Oryx Embedded CycloneTCP
Dual stack (IPv4 and/or IPv6), Built-in support for multiple network interfaces, BSD style socket API, Blocking/non-blocking socket, operation and event-driven functions (select and poll), Efficient data transfer (zero copy), Well-crafted TCP module with selective ACK and congestion control, Raw socket interface, Multicast support (IGMPv2 and MLDv1), IP fragmentation and reassembly, Flexible memory footprint, Portable architecture, Host name resolution (DNS client), DHCP and SLAAC auto-configuration, SMTP client, FTP client and server, TFTP client and server, Web server with SSI and CGI scripting, HTTP/2 client, MQTT and MQTT-SN clients, CoAP client, SNMPv1/v2c/v3 agent, WebSocket client and server
44
STM32 – TCP/IP solution details (3/3)
(c): Client (s): Server (cs): Client and Server
Provider Solution name Details
Quadros RTXC Quadnet
PPP, PPPoE, ARP, IGMP, ICMP, IPv4, IPv6, IPSec/IKE, UDP, TCP, DNS, DHCP(cs), FTP(cs), NAT, POP3(c), SMTP, SNMP, SNTP, Telnet(s), SSL/TLS, TFTP, HTTP(cs), UPnP, Prioritized Packets Handling
Rowebots Unison TCP-IP/v4-v6
PPP, ARP, ICMP, IGMP, IPv4, IPv6, IPv4/6, 6LowPan, IPSec, UDP, TCP, DNS, DHCP(cs), SMTP(c), SNMP, Telnet(s), TFTP(cs), HTTP(cs), NAT
SEGGER embOS/IP
PPP, PPPoE, ARP, ICMP, IGMP, IPv4, UDP, TCP, DNS, DHCP(cs), FTP(cs), SMTP(c), SNTP(c), Telnet(s), TFTP(cs), HTTP(s), PTP IEEE 1588
SICS Contiki/uIP6
IPv6, 6LoWPAN
ST STM32Cube - LwIP
PPP, ARP, ICMP, IPv4, UDP, TCP, DHCP(c), IPv6
ST X-CUBE-AZRTOS – NetX / NetX duo
PPP, ARP, IGMP, ICMP, IPv4, IPv6, IPSec/IKE, UDP, TCP, DNS, DHCP(c), FTP(cs), NAT, POP3(c), SMTP, SNMP, SNTP, Telnet(s), TFTP, HTTP(s)
Zephyr Zephyr Networking
IPv4, IPv6 (dual stack support), ICMPv4, ICMPv6, UDP, TCP, HTTP, MQTT, CoAP, LWM2W, RPL, DNS/ 6LoWPAN
Back
45
Solutions with STM32WB or STM32 + Bluetooth transceiver
Several solutions are available, using STM32WB or STM32 with SPBTLE-RF, BlueNRG-MS or
other components
Middleware – 2.4GHz – Bluetooth
Often-seen acronyms
Bluetooth Low Energy
(Also called Bluetooth Smart) very interesting for application running out of battery (coin cell type) as power consumption
is very low, with a lower data rate and connection time Classic Bluetooth Original Bluetooth before Bluetooth Low Energy appearance. Still required for certain Audio applications. Dual mode devices Devices able to handle Classic Bluetooth, and Bluetooth Low Energy. Also called Bluetooth Smart ready HCI Host/controller interface: Standardized communication between controller and radio chips SPP Serial port profile: Profile that emulates serial line over Bluetooth A2DP Advanced audio distribution profile: Profile to stream high-quality audio HSP Headset profile: Profile to implement a basic headset application HDP Health device profile: Profile designed to facilitate transmission and reception of medical data HFP Hands-free profile: Typical profile used in cars for hands-free phone use
BLE is a wireless communication technology for exchanging data over short distances, typically used in the mobile world
46
STM32 – Bluetooth solutions
Provider Solution name Model Cost
Availability
WB F0 G0 F1 F2 F3 G4 F4 F7 H7 L0 L1 L4/L4+ L5
ST X-CUBE-BLE1
Binaries and Source
Free
N.A.
N
1
N
1
N
1
N
1
N
1
N
1
Y N
1
N
1
Y N
1
Y
N
1
ST STM32CubeL4-BLE
2
Source Free
N.A.
N
1
N
1
N
1
N
1
N
1
N
1
N
1
N
1
N
1
N
1
N
1
Y
N
1
ST STM32Cube – BLE
3
Source Free
Y N N N N N N N N N N N N N
1/ STM32L0 + BlueNRG-MS. Available on STM32Cube so porting is very easy 2/ point to point and HeartRate profile example running on running on B-L475E-IOT01Awith ST SPBTLE-RF 3/ Certified BLE stack + HCI, certified OpenThreadbinary stack, BLE/OpenThreadconcurent stack, BLE profiles and services, certified 802.15.4 MAC, Zigbee, BLE/Zigbee concurrent stack included in STM32Cube MCU package (\Middlewares\ST folder)
47
STM32 – Bluetooth solutions
Provider Solution name Model Cost
Availability
WB F0 G0 F1 F2 F3 G4 F4 F7 H7 L0 L1 L4/L4+ L5
arm Mbed BLE
4
Source Free
Y N N N N N N N N N N N Y N
A&W PhoneLink
Binaries or Source
License and/or
royalties
N N N Y Y N N Y Y Y
1
N N N N
Clarinox ClarinoxBlue
8
Binaries or Source
License and/or
royalties
Y
1
Y
1
Y
1
Y
1
Y
1
Y
1
Y
1
Y Y
1
Y
1
Y
1
Y
1
Y
1
Y
1
EUROS BLE stack
6
Binaries License
N Y Y Y Y Y Y Y Y Y Y Y Y Y
1
Rowebots
UNISON Bluetooth System
Source License
N N N Y Y Y N Y Y Y
1
N Y
Y N
SEARAN dotStack
Binaries or Source
License and/or
royalties
N Y Y Y Y Y N Y Y Y
1
Y Y Y N
Zephyr Bluetooth
Open Source
(Apache 2.0)
Free
N N N Y N Y N Y N N N N Y N
1/ Available on customer request. Please contact supplier
2/ Available on specific conditions. Please contact supplier
4/ Support BLE, Heart Rate Service, iBeacon on ST boards: DISCO-L475VG-IOT01A, P-NUCLEO-WB55 6/ SmartBond™ DA14681 Bluetooth® low energy SoC adapted to the EUROS RTOS 8/ ClarinoxBlue supports mutliple RTOS and many wireless radio supporting HCI (UART, USB)
48
STM32 – Bluetooth solution details
Provider Solution name Details
ST X-CUBE-BLE1
BT4.0, BT4.1 All profiles supported
ST I-CUBE-nRF51DRV
BT4.0, BT4.1 All profiles supported
ST STM32Cube – BLE
BT 5.0 PTS Profiles/Services: Client: Heart Rate Profile (HRP): Collector, Location and Navigation (LNP), Time Profile (TIP), Weight Scale Profile (WSP), Alert Notification Profile (ANP), Health thermometer Profile (HTP): Collector, Phone Alert Status Profile (PASP), Find Me Profile (FMP), Proximity Profile (Px Monitor, PXP), HID Over GATT Profile (HOGP): Boot Host, Report Host Server: Heart Rate Profile (HRP): Heart Rate Sensor, Device Information Service (DIS), Link Loss (LLS), Battery Service (BAS), Tx Power Service (TPS), Scan Parameters (ScPP), Location and Navigation (LNS), Immediate Alert (IAS), Next DST Change Service (NDCS), Reference Time Update Service (RTUS), Current Time Service (CTS), Weight Scale Profile (WSP), Alert Notification Profile (ANP), Environmental Sensing (ESS), Blood Pressure Profile (BLP), Bond Management Service (BMS), Cycling Power Profile (CPP), Cycling Speed and Cadence Profile (CSCP), Health thermometer Profile (HTP): Thermometer, Automation IO Service (AIOS), HTTP Proxy Service (HPS), Phone Alert Service (PASS), Find Me Profile (FMP + IAS), Environmental Sensing (ESS) Proximity Profile (Px Reporter, PXP), Running and Speed Cadence Service (RSCS), HID Service (HIDS), Glucose Service (GLS).
Zephyr Bluetooth
BT5.0, GAP, GATT, BR/EDR, Mesh
49
STM32 – Bluetooth solution details
Provider Solution name Details
arm Mbed BLE
More…
A&W
PhoneLink
BT2.1+EDR, BT4.0 Supported Profiles: HFP, HSP, PBAP, A2DP, AVRCP, HID, OBEX, FTP, OPP, SPP, PAN, MAP and more
Clarinox
ClarinoxBlue
BT4.2, BT 4.1, BT4.0 + EDR + LE + Mesh Supported profiles: Classic Porfiles (A2DP, AVRCP, BIP, BPP, CTN, DI, FTP, GAP, GAVDP, HCRP, HDP, HFP, HID, HSP, MAP, MPS, OPP, PAN, PBAP, SDAP, SPP), Classic Protocols (AVCTP, AVDTP, BNEP, HCI, L2CAP, MCAP, OBEX, RFCOMM, SDP), Smart Profiles / Services (AIOP, AIOS, ANP, ANS, BAS, BCS, BMS, BLP, BLS, CGMP, CGMS, CPP, CPS, CSCP, CSCS, CTS, DIS, ESP, ESS, FMP, GAP, GLP, GLS, HIDS, HOGP, HPS, HRP, HRS, HTP, HTS, IAS, IPS, IPSP, LLS, LNP, LNS, NDCS, OTP, OTS, PASP, PASS, PLXP, PLXS, PXP, RSCP, RSCS, RTUS, ScPP, SCPS, TIP, TDS, TPS, UDS, WSP, WSS, Mesh, Custom), Smart Protocols (ATT, GATT, SM, MESH)
SEARAN
dotStack
BT2.1+EDR, BT4.0, BT4.1, BT 4.2, and 5.0 ready. Single and dual mode. Apps on iOS and Android BLE (GATT) - ANP/ANS, FMP, HIDS, HOGP, PASP/PASS, PXP, TIP, BAS, DIS, IAS, LLS, TPS, ANCS, BLP/BLS, GP, HTP, HRP/HRS BR/EDR - SPP, HID, PAN, MAP, FTP, HSP, HFP, A2DP, AVRCP, PBAP, iAP, HCRP
Back
50
Thread is an IPv6-based, low-power mesh networking technology for IoT products. Thread uses 6LoWPAN and IEEE 802.15.4 wireless protocol with mesh communication
Middleware – 2.4GHz – Thread
.
Solutions with STM32WB
51
STM32 – Thread solutions
Provider Solution name Model Cost
Availability
WB F0 G0 F1 F2 F3 G4 F4 F7 H7 L0 L1 L4/L4+ L5
ST STM32Cube – OpenThread
1
Source Free
Y N N N N N N N N N N N N N
1/ Certified OpenThreadbinary stack, BLE/OpenThreadconcurent stack included in STM32Cube MCU package (\Middlewares\ST folder)
52
ZigBee is an IEEE 802.15.4-based specification for a suite of high-level communication protocols used to create personal area networks with small, low­power digital radios, such as for home automation, medical device data collection, and other low-power low-bandwidth needs, designed for small scale projects which need wireless connection.
Middleware – 2.4GHz – Zigbee
Solutions with STM32WB
53
STM32 – Zigbee solutions
Provider Solution name Model Cost
Availability
WB F0 G0 F1 F2 F3 G4 F4 F7 H7 L0 L1 L4/L4+ L5
ST STM32Cube – Zigbee
1
Source Free
Y N N N N N N N N N N N N N
1/ Certified Zigbee stack, BLE/Zigbee concurent stack included in STM32Cube MCU package (\Middlewares\ST folder)
Provider Solution name Details
ST STM32Cube – Zigbee
1
Support following clusters: Basic, Device Temperature Configuration, Identify, On/Off, Power Profile, Thermostat-UI-Config, Ballast-Configuration, Illuminance-Measurement, Temperature Measurement, Pressure Measurement, Occupancy-Sensing, Messaging , Meter Identification
54
Wi-Fi™ is an implementation of the IEEE 802.11 radio communication specification for wireless local area networking. It is usually used with a TCP/IP
stack, so all TCP/IP bricks can be reused on Wi-Fi, adapting the lowest firmware
layer
Solutions with STM32 + Wi-Fi transceiver
Several solutions are available, using STM32 with modules
(Espressif ESP8266, Inventek ISM43362-M3G-L44, Innophase INP1010/INP1011)
Middleware – 2.4GHz – Wi-Fi™
55
STM32 – Wi-Fi™ solutions
Provider Solution name Model Cost
Availability
WB F0 G0 F1 F2 F3 G4 F4 F7 H7 L0 L1 L4/L4+ L5
arm Mbed Wifi
5
Source Free
N N N N N N N Y N N N N Y N
Clarinox ClarinoxWiFi
6
Binaries or
Source
License and/or
Royalties
N N N N N N N Y Y Y Y Y Y N
Innophase I-CUBE-T2-STW
8
Binaries or
Source
License
N
N
7
N
7
N7N7N
7
N
7
N7N7N7N7N
7
Y N
7
ST
STM32CubeL4/L4+– WiFi
2
Source
Free
N
1
N
1
N
1
N1N1N
1
N
1
N1N1N1N1N
1
Y N
1
ST STM32CubeF4 – WiFi
3
Source
Free
N
1
N
1
N
1
N1N1N
1
N
1
Y
N1N1N1N
1
N
1
N
1
ST STM32CubeF7 – WiFi
4
Source
Free
N
1
N
1
N
1
N1N1N
1
N
1
N
1
Y
N1N1N
1
N
1
N
1
Zephyr Zephyr Wifi
Open Source
(Apache 2.0)
Free
Y Y Y Y Y Y Y Y Y Y Y Y Y Y
1/ Available on STM32Cube, so porting is very easy 2/ Client Server application and HTTP Server application examples running on B-L475E-IOT01A with Inventek ISM43362-M3G-L44 3/ Client Server application and HTTP Server application examples running on STM32F413H-DISCOwith Inventek ISM43362-M3G-L44 4/ In-Application programming client example running on STM32F723E-DISCO and STM32F769I-DISCO 5/ Supports ST boards including DISCO-L475VG-IOT01A, DISCO-F413ZH 6/ Clarinox WiFi protocol stack supports multiple RTOS, and SDIO, SPI, USB 7/ Available on STM32Cube, so porting is very easy
8/ Supports I-NUCLEO-T2 -EVB with INP1010/INP1011
Back
56
LoRa® is a modulation used for wireless telecommunications. It is created to allow long-range communications at a very low bit-rate and enables long-life battery­operated sensors. LoRaWAN™ is a standard defined by the LoRa-Alliance which defines the communication and security protocol to ensure the interoperability.
Solutions with STM32 + LoRa® radio
STM32WL
Semtech SX1276MB1MAS, SX1276MB1LAS and SX1272MB2DAS LoRa® radio expansion
boards
Murata CMWX1ZZABZ-xxx LoRa® module (also used for Sigfox)
USI WM-SG-SM-42 LoRa® module
RiSiNGHF® RHF0M003 modem for LoRa®
Middleware – sub-1GHz – Lora®
57
STM32 – LoRa® solution
Provider Solution name Model Cost
Availability
WB WL F0 G0 F1 F2 F3 G4 F4 F7 H7 L0 L1 L4/L4+ L5
ST I-CUBE-LRWAN
2
Source Free
N.A.
N N
1
N
1
N
1
N
1
N
1
N
1
N
1
N
1
N
1
Y Y Y N
1
ST
STM32Cube ­LoRaWAN
Source Free N Y N N N N N N N N N N N N N
arm mbedOS LoRa
3
Source
Free
N.A.
21Q1
N N N N N N N N N Y N N N
StackForce LoRaWAN stack
Source/Object
License/Royalties
N.A.
Y N N N N N N N N N Y N N N
1/ Available on STM32Cube, so porting is very easy 2/ Supports NUCLEO-L053R8, NUCLEO-L152RE and NUCLEO-L476RG with I-NUCLEO-LRWAN1
B-L072Z-LRWAN1 I-NUCLEO-LRWAN1 P-NUCLEO-LRWAN1 (NUCLEO-L073RZ + I-NUCLEO-SX1272D) P-NUCLEO-LRWAN2 and P-NUCLEO-LRWAN3
3/ Available on DISCO-L072CZ-LRWAN1
Back
NFC
58
Sigfox™ is a Low-Power Wide Area Network allowing low-power sensors to benefit from a planetary network, enabling end-devices with low BOM cost
Solutions with STM32 + radio
STM32WL
Murata CMWX1ZZABZ-xxx module
Middleware – Sub-1GHz – sigfox™
59
STM32 – sigfox™ solution
Provider Solution name Model Cost
Availability
WB WL F0 G0 F1 F2 F3 G4 F4 F7 H7 L0 L1 L4/L4+ L5
ST X-CUBE-SFOX Source Free
N.A.
N N
1
N
1
N
1
N
1
N
1
N
1
N
1
N
1
N
1
Y
2
N
1
N
1
N
1
ST
STM32Cube ­Sigfox
Source Free
N Y N N N N N N N N N N N N N
1/ Available on STM32Cube, so porting is very easy
2/ Supports Murata CMWX1ZZABZ-xxx module only in B-L072Z-LRWAN1
Back
NFC
60
Sub 1GHz RF operates in the ISM spectrum bands below Sub 1GHz – typically in the 769 – 935 MHz , 315 MHz and the 468 MHz frequency range. This spectrum
band below 1GHz is particularly useful for RF IOT applications
Solutions with STM32WB, STM32WL or STM32 + radio (SPIRIT1 or S2-LP)
Middleware – Sub-1GHz – others
61
STM32 – Sub-1GHz – others
Provider Solution name Model Cost
Availability
WB WL F0 G0 F1 F2 F3 G4 F4 F7 H7 L0 L1 L4/L4+ L5
ST X-CUBE-SUBG1
2
Source Free
N.A.
N N
1
N
1
N
1
N
1
N
1
N
1
Y N
1
N
1
Y Y N
1
N
1
ST
STM32Cube –
802.15.4
4
Source Free
Y N N N N N N N N N N N N N N
StackForce emb6 - 6LoWPAN
based IoT stack
3
Source/Object Free / License
N N N N N N N N N N N Y N N N
StackForce WM-Bus stack
Source/Binaries
License
N Y N N N N N N N N N Y
3
N N N
1/ Available on STM32Cube, so porting is very easy 2/ Supports WM-bus with X-NUCLEO-IDS01A4, Contiki OS and Contiki 6LoWPAN protocol on STM32F4 and STM32L1 3/ STM32L0 + SPIRIT1 4/ Certified BLE stack + HCI, certified OpenThreadbinary stack, BLE/OpenThreadconcurent stack, BLE profiles and services, certified 802.15.4 MAC included in STM32Cube MCU package (\Middlewares\ST folder)
Back
62
Complementary to other wireless technologies, Near Field Communication (NFC) is designed to execute short transactions between two devices in close proximity.
Operating in the 13.56 MHz (RFID) HF band, it is based on ISO/IEC 14443 & ISO/IEC 15693 RFID standards, and regulated by NFC Forum industry association
Solutions with STM32 + ST25 NFC / RFID Tag & Reader ICs
NFC / RFID reader ICs
ST25R3911B high performance HF Reader/NFC initiator (ISO14443, ISO15693, FeliCa) with 1.4 W output power, supporting
VHBR, capacitive sensitive wake up and Automatic Antenna Tuning (AAT)
Other product variant: ST25R3912, ST25R3913, ST25R3914, ST25R3915 and ST25R3916
CR95HF entry level HF Reader/ NFC Initiator (ISO14443, ISO15693, FeliCa)
Dynamic NFC tag Ics
ST25DV dynamic RFID ISO15693 NFC Type 5 Tag Ics
M24LR dynamic RFID ISO15693 / NFC compatible Tag ICs (M24LR04 is NFC Forum Type 5)
M24SR dynamic RFID ISO14443 type A – NFC Type 4 Tag ICs
Middleware & drivers – NFC
63
NFC / RFID readers
X-CUBE-NFC3: Drivers and Middleware (NFC Lib, NDEF Lib) for CR95HF, HF Reader/ NFC Initiator, packaged to run on X-NUCLEO-NFC03A1
X-CUBE-NFC5: Drivers and Middleware (RFAL Lib) for ST25R3911B, HF Reader/ NFC Initiator, packaged to run on X-NUCLEO-NFC05A1
X-CUBE-NFC6: Drivers and Middleware (RFAL Lib) for ST25R3916 high performance NFC front-end IC, to run on X-NUCLEO-NFC06A1
Dynamic NFC tags
X-CUBE-NFC1: Drivers and Middleware (NDEF Lib) for M24SR Dynamic NFC/RFID Tag IC, packaged to run on X-NUCLEO-NFC01A1
X-CUBE-NFC2: Drivers and Middleware (NDEF Lib) for M24LR Dynamic NFC/RFID Tag IC, packaged to run on X-NUCLEO-NFC02A1
X-CUBE-NFC4: Drivers and Middleware (NDEF Lib) for ST25DV Dynamic NFC/RFID Tag IC, packaged to run on X-NUCLEO-NFC04A1
STM32 NFC solutions
Provider
Solution
name
Model Cost
Availability
WB WL F0 G0 F1 F2 F3 G4 F4 F7 H7 L0 L1 L4/L4+ L5
ST X-CUBE-NFC1 Source Free
N
1
N
1
Y
N
1
Y
N
1
Y
N
1
Y
N1N
1
Y Y Y
N
1
ST X-CUBE-NFC2 Source Free
N
1
N
1
N1N
1
N
1
N1N1N
1
Y
N1N
1
Y
N
1
N
1
N
1
ST X-CUBE-NFC3 Source Free
N
1
N
1
N1N
1
Y
N1N1N
1
Y
N1N1N1N
1
N
1
N
1
ST X-CUBE-NFC4 Source Free
N
1
N
1
N1N
1
N
1
N1N1N
1
Y
N1N
1
Y
N
1
N
1
N
1
ST X-CUBE-NFC5 Source Free
N
1
N
1
N1N
1
N
1
N1N1N
1
Y
N1N1N1N
1
Y
N
1
ST X-CUBE-NFC6 Source Free
N
1
N
1
N1N
1
N
1
N1N1N1N1N1N
1
Y
N
1
Y
N
1
1/ Available on STM32Cube, so porting is very easy
Back
NFC
64
STMicroelectronics framework for devices based on LPWAN cellular networks, with ready-to-run examples using the LPWAN LTE Cat M or NB-IoT protocols to support
quick evaluation and development of IoT cloud applications
BSD-like socket APIs for data plane
TCP-UDP/IP connectivity with IP stack running on host or modem
Flexible and modular SW architecture for the easy integration of different modems
Modem Low Power support (PSM)
Partial GSMA TS34/35 compliance
Easy customization thanks to API and configuration flags
Support Secure Element hosted in UICC HW or eUICC HW
PC terminal for debug and configuration (APN, band…) using Command Line Interface (CLI)
Middleware & drivers – Cellular framework
65
Host Board STM32 Modem Vendor/Chipset Modem Model Modem Board Description Availability
P-L496G-CELL02 L4 Quectel/Qualcomm BG96 MB1329 Cellular pack that includes the daughter
board MB1329
Now
32L496Discovery L4 Quectel/Qualcomm BG96 MB1329 / Now 32L496Discovery L4 Sequans/Sequans GM01Q/ GMS01Q GM01Q-STMOD/ GMS01Q-
STMOD
With SIM from Orange for GMS01Q Now
B-L4S5I-IOT01A L4+ Quectel/Qualcomm BG96 w/ X-NUCLEO-STMODA1 with
MB1329
Can re-use eSIM on Now
B-L4S5I-IOT01A w/ X­NUCLEO-STMODA1
L4+ Sequans/Sequans GM01Q w/ X-NUCLEO-STMODA1 with
GM01Q-STMOD
Modem without eSIM Now
STEVAL-STWINKT1x L4+ Quectel/Qualcomm BG96 MB1329 Now STEVAL-STWINKT1x L4+ Sequans/Sequans GMS01Q GMS01Q-STMOD Now B-L462E-CELL1 L4 MURATA/Sony Semiconductor Israel LBAD0XX1SC Integrated in the Module Module LBAD0ZZ1SE with integrated
Modem and eSIM
1Q21
STM32 – Cellular framework
Provider Solution name Model Cost
Availability
WB WL F0 G0 F1 F2 F3 G4 F4 F7 H7 L0 L1 L4/L4+ L5
ST X-CUBE-CELLULAR Source Free
N
1
N
1
N
1
N
1
N
1
N
1
N
1
N
1
N
1
N
1
N
1
N
1
N
1
Y N
1
1/ Available on STM32Cube, so porting is very easy
Back
Supported Hardware and cellular partners
66
Safety targets protection of people and equipment from danger and harm, through a set of counter-measures ensuring defined targets
Middleware – Safety
Often-seen acronyms
ClassB
The IEC 60730 safety standard defines the test and diagnostic methods that ensure the safe operation of embedded control hardware and software for household appliances. The IEC 60730 standard category Class B prevents unsafe operation of the controlled equipment.
SIL
Safety Integrity Level (SIL) is defined by the industry standard IEC 61508 as a relative level of risk-reduction provided by a safety function, or to specify a target level of risk reduction.
ASIL
ASIL is a risk classification scheme defined by the ISO 26262 - Functional Safety for Road Vehicles standard. This is an adaptation of the Safety Integrity Level used in IEC 61508 for the automotive industry.
Ready for certification offers on STM32 3rdparties or directly from ST
67
STM32 – Safety solutions
Provider Solution name Model Cost
Availability
WB WL F0 G0 F1 F2 F3 G4 F4 F7 H7 L0 L1 L4/L4+ L5
ST X-CUBE-CLASSB
5
Source Free Y N Y N Y Y Y Y Y Y Y Y Y Y N
ST STM32-CLASSB-SPL Source Free N N Y N Y Y
3
N N Y
3
N N N Y
3
N N
ST X-CUBE-STL
4
Object Free N N
6
Y Y Y
N Y Y
Y Y Y Y N Y Y
1/ Porting ongoing 2/ Can be ported 3/ Derived package only (not certified) 4/ IEC 61508 SIL3 (SC3) compliant self-test library, certified by TÜV Rheinland. Delivered as compiler independant object code. Safety Manual, FMEA and FMEDA. Available under NDA, please contact your ST sales office. 5/ IEC 60335-1 and 60730-1 compliant, certified by UL.
6/ planned for 2021/Q2
68
STM8 – Safety solutions
Back
Provider Solution name Model Cost
Availability
STM8S STM8AF
STM8L
STM8AL
ST STM8-SafeCLASSB Source Free Y
Y
Y
ST STM8A-SafeASIL
1
Document Free N
Y
Y
1/ Safety Manual, FMEA, FMEDA and specification for selt-test library
69
Getting the most from hardware and software
ST has built a close relationship with third parties providing software solutions based on our
microcontrollers. Customers can make the most of their hardware.
Middleware – graphical user interface
Often-seen acronyms
Anti aliasing
Technique to minimize distortion artifacts known as aliasing when presenting a high-resolution image at a lower resolution. Aliased images show
some stair effects on curves. Anti-aliasing removes this by modifying edge pixel colors.
Alpha blending
Alpha blending is the process of combining a translucent foreground color with a background color, thereby producing a new blended color.
GUI
Graphical user interface
bpp
Bits per pixel (also known as color depth: Number of bits used to represent the color of a single pixel in an image. 1 bpp corresponds to monochrome images.
Palette
Technique to lower image memory size by storing the set of colors used in a table and using this table for each pixel
JPEG
Commonly used method of lossy compression for digital image. The degree of compression can be adjusted, allowing a trade-off between storage size and image quality. JPEG typically achieves 10:1 compression with little perceptible loss in image quality.
RGB / ARGB
Color model in which red, green and blue are merged to reproduce a broad array of colors. “A” field in ARGB format handles transparency information.
Widgets
Element of a graphical user interface that can be changed by the user (such as text box, radio button)
.
ST’s MCUs can drive displays through serial or parallel interfaces
70
STM32 – graphical user interface solutions (1/2)
Provider Solution name Model Cost
Availability
WB WL F0 G0 F1 F2 F3 G4 F4 F7 H7 L0 L1 L4/L4+ L5
ST STemWin
Binaries Free N N N N Y Y Y N Y Y Y N Y N N
ST STM32Cube - STemWin
Binaries Free N
2
N
2
Y N
2
Y Y Y N
2
Y Y Y N
2
Y Y
N
2
ST TouchGFX
4
Source Free Y
3
Y
3
N Y
3
N N Y
3
Y
3
Y Y Y N N Y Y
3
Altia
Altia Design and Deep screen
Source License N
1
N
1
Y N
1
Y Y Y N
1
Y Y Y N
1
Y N
N
1
Crank Storyboard
Binaries License N
1
N
1
N N
1
N
1
N
1
Y N
1
Y Y Y N N
1
N
N
1
eCosCentric eCosPro-PEG
Source License N
1
N
1
N
1
N
1
Y Y Y N
1
Y N
1
N
1
N
1
N
1
N
1
N
1
Microsoft Azure RTOS GUIX
Source License N
1
N
1
Y N
1
Y Y Y N
1
Y Y Y Y Y Y
N
1
1/ Please contact supplier 2/ Available on STM32Cube, so porting is very easy 3/ Although no project example is provided, the TouchGFX binary can be used on these series
4/ TouchGFX is available as a software expansion for STM32Cube
71
STM32 – graphical user interface solutions (2/2)
Provider
Solution
name
Model Cost
Availability
WB WL F0 G0 F1 F2 F3 G4 F4 F7 H7 L0 L1 L4/L4+ L5
Korulab Koru
Binaries License N N N N N N N N Y Y Y N N Y N
Micrium µC/GUI
Open Source (Apache 2.0)
Free N N Y N Y Y Y N Y Y Y Y Y N N
Micro Digital PEG
Source License N
1
N
1
N
1
N
1
Y Y Y N
1
Y Y Y N
1
N
1
N
1
N
1
QT QT
Source License N
1
N
1
N
1
N
1
N
1
N
1
N
1
N
1
Y Y N
1
N
1
N
1
Y N
1
Rowebots emWin GUI
Source License N N N N Y Y Y N Y Y Y N N N N
SEGGER emWin
Source License N
1
N
1
Y Y Y Y Y N Y Y Y Y Y Y N
Tara Systems
Embedded
Wizard
Binaries / Source License N N N N N N N N Y Y Y N N Y N
Back
1/ Please contact supplier
72
NRE/royalty-free C source code
Complete solution for touch keys, linear and rotary touch sensors, with acquisition, post
processing and API layers, debounce filtering and calibration functions
Middleware – touch sensing
Often-seen acronyms
Surface capacitance
The capacitance of a single ended electrode is modified when the finger gets close to it.
Projected capacitance
The capacitance between two sensing electrodes is modified when the finger gets close to them.
RC acquisition
Resistor-capacitor acquisition for surface capacitanceonly. It consists in measuring the charge and discharge time duration of a RC cell made of the electrode capacitance and a load resistor.
CT acquisition
Charge transfer acquisition for surface capacitance only. It consists in measuring the duration for charging the electrode capacitance and transferring part of the accumulated charge into a sampling capacitor. The CT acquisition is more robust than the RC one.
Capacitive touch sensing is an electrical cost-efficient technology, replacing conventional mechanical switches to detect user actions, to build modern GUI look and feel.
73
STM32 – touch-sensing solutions
Provider Solution name Acquisition Model Cost
Availability
WB WL F0 G0 F1 F2 F3 G4 F4 F7 H7 L0 L1 L4/L4+ L5
ST
STM32 Touch Sensing
Library
CT Source Free N N Y N N N Y N N N N N Y N N
ST
STM32Cube – Touch Sensing
CT Source Free Y N Y N N N Y N Y N N Y Y Y Y
74
STM8 – touch-sensing solutions
Provider Solution name Acquisition Model Cost
Availability
STM8S / STM8AF STM8L / STM8AL
ST STM8 Touch Lib RC + CT Source Free Y
1
Y
1
1/ RC for STM8S/STM8AF, RC for STM8AL, RC and CT for STM8L
Back
75
Middleware – artificial neural networks
Thanks to a wide set of Artificial Intelligence (AI) solutions from ST you now have the possibility to map and run Machine Learning (ML) such as Artificial Neural Networks (ANN) on the broad STM32 microcontroller portfolio. STM32Cube.AI is an extension pack of the widely used STM32CubeMX configuration and code generation tool converting and optimizing pre-trained ANN models on STM32 Arm® Cortex®-M-based microcontrollers
Often-seen acronyms
AI
Artificial Intelligence
ML
Machine Learning
ANN
Artificial Neural Networks
76
STM32 – artificial neural networks
Provider Solution name Model Cost
Availability
WB WL F0 G0 F1 F2 F3 G4 F4 F7 H7 L0 L1 L4/L4+ L5
ST X-CUBE-AI
1
Source Free Y Y N N N Y Y Y Y Y Y N N Y Y
ST FP-AI-SENSING1
2
Source Free N
4
N N N N N
4
N
4
N
4
N
4
N
4
N
4
N N Y N
4
ST
FP-AI-VISION1
3
Source Free N N N N N N N N N N Y N N N N
1/ Generation of an STM32-optimized library from pre-trained Neural Network models. Support various Deep Learning frameworks such as Keras, Caffe, ConvnetJS, and Lasagne 2/ STM32Cube function pack for ultra-low power IoT node with artificial intelligence (AI) application based on audio and motion sensing 3/ STM32Cube function pack featuring examples of computer vision applications based on Convolutional Neural Network (CNN). 4/ Available on STM32Cube, so porting is very easy
Back
77
STM32 – artificial neural networks
Provider Solution name Model Cost
Availability
WB WL F0 G0 F1 F2 F3 G4 F4 F7 H7 L0 L1 L4/L4+ L5
ST X-CUBE-AI
1
Source Free Y Y N N N N Y Y Y Y Y N N Y Y
ST FP-AI-SENSING1
2
Source Free N
*
N N N N N
*
N
*
N
*
N
*
N
*
N
*
N N Y N
*
ST FP-AI-VISION1
3
Source Free N N N N N N N N N N Y N N Y
7
Y
7
ST FP-AI-FACEREC1
4
Source Free N N N N N N N N N N
21
Q1
N N Y
7
Y
7
ST FP-AI-NANOEDG1
5
Source Free N
6
N N N N N
6
N
6
N
6
N
6
N
6
N
6
N N Y Y
1/ Generation of an STM32-optimized library from pre-trained Neural Network models. Support various Deep Learning frameworks such as Keras, TensorFlow™ Lite and suppport of all frameworks that can export to the ONNX standard format such as PyTorch™, Microsoft® Cognitive Toolkit, MATLAB® and more. 2/ STM32Cube function pack for ultra-low power IoT node with artificial intelligence (AI) application based on audio and motion sensing. 3/ STM32Cube function pack featuring examples of computer vision applications based on Convolutional Neural Network (CNN). 4/ STM32Cube function pack featuring examples of face detection and face recognition with on-board enrollment. 5/ STM32Cube function pack for artificial intelligence-based condition monitoring and predictive maintenance.
6/ Available on STM32Cube, so porting is very easy.
7/ Demo and code example available on demand.
Back
78
Enabling your FreeRTOS application to process command line input
STM32 – instrumentation
Back
Provider Solution name Model Cost
Availability
WB WL F0 G0 F1 F2 F3 G4 F4 F7 H7 L0 L1 L4/L4+ L5
AWS FREERTOS+TMCLI
1
Source Free Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y
1/ The license is the same as FreeRTOS kernel (MIT)
79
Connectors to cloud providers
Examples of end device applications using ST sensors and RFID/NFC tag and connecting to cloud providers
Amazon AWS, Google Cloud, IBM Watson, Microsoft Azure
Exosite, Grovestream, AvSystem, Litmus Automation, Ubidots
Amazon AWS, IBM Watson, Microsoft Azure
• Connectors to cloud provider (Amazon AWS, Microsoft Azure, IBM Watson…)
STM32 acts as an end device securely connected to cloud services providers
Configuration of the connectivity interfaces (WiFi, Ethernet…)
Connection to the Internet and the cloud provider servers
publication of messages
Subscription over a variety of connectivity protocols (MQTT,
HTTPS…)
STM32Cube Expansion
Packages
Temperature and humidity sensor (HTS221)
Pressure sensor (LPS25HB)
Motion sensors (LIS3MDL, LSM303AGR, LSM6DS0, LSM6DSL, IIS2DH)
Writing/reading the RFID/NFC tag (M24SR64-Y)
STM32 ODE Functions
packs
80
STM32 - connectors to cloud providers
Provider Solution name Model Cost
Availability
WB WL F0 G0 F1 F2 F3 G4 F4 F7 H7 L0 L1 L4/L4+ L5
ST
X-CUBE-CLD-GEN
1
Source Free N
3
N
3
N
3
N
3
N
3
N
3
N
3
N
3
Y Y N
3
N
3
N
3
Y N
3
X-CUBE-AWS
2
Source Free N
3
N
3
N
3
N
3
N
3
N
3
N
3
N
3
Y Y N
3
N
3
N
3
Y N
3
X-CUBE-AZURE
2
Source Free N
3
N
3
N
3
N
3
N
3
N
3
N
3
N
3
Y Y N
3
N
3
N
3
Y N
3
X-CUBE-WATSON Source Free N
3
N
3
N
3
N
3
N
3
N
3
N
3
N
3
Y Y N
3
N
3
N
3
Y N
3
X-CUBE-GCP Source Free N
3
N
3
N
3
N
3
N
3
N
3
N
3
N
3
Y Y N
3
N
3
N
3
Y N
3
FP-CLD-AWS1 Source Free N
3
N
3
N
3
N
3
N
3
N
3
N
3
N
3
Y N
3
N
3
N
3
N
3
N
3
N
3
FP-CLD-AZURE1
Source Free N
3
N
3
N
3
N
3
N
3
N
3
N
3
N
3
Y N
3
N
3
N
3
N
3
Y N
3
FP-CLD-WASTON1
Source Free N
3
N
3
N
3
N
3
N
3
N
3
N
3
N
3
Y N
3
N
3
N
3
N
3
N
3
N
3
1/ Supports B-L475E-IOT01A, 32F413HDISCOVERY, 32F769IDISCOVERY, P-L496G-CELL01 and P-L496G-CELL02. Examples with Exosite,
Grovestream, AvSystem, Litmus Automation and Ubidots cloud providers
2/ Supports B-L475E-IOT01A, 32F413HDISCOVERY, 32F769IDISCOVERY and P-L496G-CELL02. Includes Secure Firmware Update (SBSFU), integration with X-CUBE-CELLULAR. May be connected to a provided AWS/AZURE web dashboard. 3/ Available on STM32Cube, so porting is very easy
81
STM32 - connectors to cloud providers
Provider Solution name Model Cost
Availability
WB WL F0 G0 F1 F2 F3 G4 F4 F7 H7 L0 L1 L4/L4+ L5
AVSystem
Anjay LwM2M SDK
Open source Free N N N N N N N N N N N N N Y N
AWS
Amazon FreeRTOS
1
Source Free
2
N N N N N N N N N N Y N N Y N
CypherBridge
uMQTT Toolkit
Source License N N N N N N N N Y Y N N N Y N
GIZWITS
I-CUBE-GIZWITS
Source Free N N N N N N N N Y Y N N N Y N
IoTerop
IOWA
Binary, Source License Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y
Microsoft
Azure RTOS SDK for Azure IoT
Source License N
4
N
4
Y Y Y Y Y N
4
Y Y N
4
N
4
N
4
N
4
N
4
Keil / arm
IoT Client
3
Source License N
4
N
4
Y N
4
Y Y Y N
4
Y Y Y Y Y Y N
4
1/ “Connect to AWS Iot” and “Connect to AWS Greengrass” packages are available for STM32L4/L4+Discovery kit IoT node 2/ MIT license 3/ Amazon AWS, Google Cloud, IBM Watson, Microsoft Azure 4/ Please contact supplier
Back
82
A complete solution for all audio aspects
All audio aspects can be covered by solutions from ST or third parties
Optimized for ST products
Unlike open-source non-optimized solutions, ST works with third parties to propose optimized
algorithms for ST platforms
Application field – audio
Often-seen acronyms
Codec
A codec is a program capable of encoding and decoding a digital data stream. The encoded stream can be compressed or not, with a lossy (MP3, WMA, …) or
lossless (FLAC, ALAC, …) mechanism.
PCM
Pulse-code modulation: Digital representation of an analog signal, in which the magnitude of the analogue signal is sampled regularly, each sample being quantized to the nearest value within a range of digital steps.
AAC, MP3, WMA
Music codecs with patents. Royalties need to be paid to patent owners.
Speex
Open source, no royalties speech codec
G711
Simple codec with no royalties often used in telephony
G726
ADPCM (adaptive differential pulse code modulation): Simple compression of PCM data
83
STM32 – audio solutions
Provider
Solution name Model Cost
Availability
WB WL F0 G0 F1
F105 F107
F2 F3 G4 F4 F7 H7 L0 L1 L4/L4+
ST ADPCM Vocoder, Speex Vocoder Source Free N
1
N
1
N N Y N
1
N
1
N
1
N
1
N
1
N N N Y N
1
ST G711, G726, G726A Vocoders Source Free N
1
N
1
N N N
1
N
1
Y
3
N
1
N
1
Y
3
N N N N
1
N
1
ST
Audio Engine MP3 Decoder
With Channel Mixer, Equalizer and Loud
Binaries Free N
1
N
1
N N N
1
Y Y N
1
N
1
Y Y Y N N
1
N
1
ST
Audio Engine MP3 Codec
With Channel Mixer, Equalizer and Loud
Binaries Free N
1
N
1
N N N
1
Y Y N
1
N
1
Y N N N N
1
N
1
ST
Audio Engine WMA Decoder
With Channel Mixer, Equalizer and Loud
Binaries Free N
1
N
1
N N N
1
Y Y N
1
N
1
Y Y N N N
1
N
1
ST
Audio Engine AAC Decoder
AAC-LC, HE-AAC+ v1, HE-AAC+ v2
Binaries Free N
1
N
1
N N N
1
Y
3
Y
3
N
1
N
1
Y
3
N
1
N
1
N N
1
N
1
ST Audio Engine AC3 Decoder Binaries Free N
1
N
1
N N N N N N N
1
N
1
N
1
N
1
N N N
ST
Audio Engine Post Processing
Smart volume control, Equalizer, Sample rate converters, Stereo widening
Binaries Free N
1
N
1
N N N N N N
1
N
1
Y N
1
N
1
N N N
ST
Apple iAP Streaming Library (iPod/iPhone/iPad)
2
Source Free N
1
N
1
N N N Y Y Y N
1
Y N
1
N
1
N Y N
ST
USB audio class and stream synchro.
(feedback pipe, external PLL, …)
Binaries Free N
1
N
1
Y N N Y Y N
1
N
1
Y Y N Y N N
ST Source Rate Converter
3
Binaries Free N
1
N
1
N N Y Y Y N
1
N
1
Y Y N N N
1
N
1/ The library will run immediately on these targets, even if not ported officially. 2/ Only available by request to local sales for companies being a licensee of Apple MFi (Made for iPod) program. 3/ Available on demand. Ask your local ST Sales office.
84
STM32 – audio solutions
Provider Solution name Model Cost
Availability
WB WL F0 G0 F1
F105 F107
F2 F3 G4 F4 F7 H7 L0 L1 L4/L4+
ST X-CUBE-AUDIO
3
Binaries Free N
5
N
5
N N N
5
N
5
N
5
N
5
N
5
Y Y N
5
N N
5
N
5
ST X-CUBE-VS4A
4
Source Free N N N N N N N N N N Y N
5
N N N
ST STM32Cube – PDM2PCM library
6
Source Free N
5
N
5
N
5
N
5
N
5
N
5
Y N
5
N
5
Y Y Y N
5
N
5
N
5
DSPConcept Audio Weaver Algorithms Binaries License N N N N N N N N N Y Y Y N N N
Craftwork
Remote Speakers (DLNA Media Renderer)
Binaries License N N N N N N N
1
N N Y N
1
N
1
N N N
Sensory Voice recognition
2
Binaries License N N N N N N N N N Y N
1
N
1
N N N
Vestec Voice recognition
2
Binaries License N N N N N N N N N Y N
1
N
1
N N N
1/ The library will run immediately on these targets, even if not ported officially. 2/ Available on demand. Ask your local ST Sales office. 3/ Audio processing components (BAM, BIQ, CDC, GAM, GREQ, HPV,SRC236, SRC441, OMNI2, SVC, SDR,SMR), MP3 decoder (Cortex-M7/M4/M3), MP3 encoder (Cortex-M3/M4) 4/ Framework for the Alexa Voice Service (AVS) 5/ Available on STM32Cube, so porting is very easy 6/ Included in STM32Cube MCU packages (\Middlewares\ST folder).
85
Modules Names Quality Measured MHz
Flash
Memory
Static RAM Dynamic RAM Remarks
SRC441
Standard 13.7 MHz 3204 Bytes 232 Bytes 3228 Bytes
Sampling Rate Conversion from 44.1 to 48 kHz
High Quality 20.4 MHz 3894 Bytes 360 Bytes 3676 Bytes
SRC236
Standard
8->16: 4.4 MHz 48->96: 25.3 MHz 16->48: 12.5 MHz 8->48: 12.3 MHz 32->48: 12.7 MHz 24->16: 6.2 MHz
1740 Bytes 972 Bytes 3364 Bytes
Sampling Rate Conversion supporting ratios 2, 3, 6, 1/2, 1/3, 1/6, 3/2 and 2/3.
High Quality
8->16: 7.1 MHz 48->96: 40.7 MHz 16->48: 20.4 MHz 8->48: 20.2 MHz 32->48: 20.5 MHz 24->16: 10.2 MHz
2238 Bytes 1932 Bytes 4804 Bytes
Omnisurround – Stereo
Widening
Enhanced Mono to Stereo
6.4 MHz
3660 Bytes 1992 Bytes 384 Bytes Signal is sampled at 48 kHzSW 2.0 to 2.0 13.2 MHz
Closely Spaced Speakers
4.0 MHz
Omnisurround – 7.1 Virtualizer
5.1 or 7.1 -> 2.0 25.6 MHz 4764 Bytes 3028 Bytes 1152 Bytes Signal is sampled at 48 kHz
Focus – STM32 audio post-processing (1/2)
Figures of merit on STM32F4 target
86
Modules
Names
Quality Measured MHz
Flash
Memory
Static RAM
Dynamic
RAM
Remarks
Gfx Equalizer (GrEq)
10-bands 14 MHz 4390 Bytes 552 Bytes 3840 Bytes
Graphical Equalizer. Signal is sampled at 48 kHz, 10 parallel bands with 6
available presets Can run in place (Input buf = Output buf)
Biquad Filters 10 Biquads 14.1 MHz 570 Bytes 600 Bytes 4 Bytes
Generic Biquads filter (used for Transducer Equalizer for instance)
Signal is sampled at 48 kHz Can run in place (Input buf = Output buf)
Bass Manager (BAM)
with Limiter 17.1 MHz
9266 Bytes 2236 Bytes 5760 Bytes
Bass Manager.
Up to +/- 24 dB, between 60 and 300Hz Can run in place (Input buf = Output buf)
without Limiter 12.7 MHz
Smart Volume Control (SVC)
Standard 6.2 MHz
6160 Bytes 2648 Bytes 4800 Bytes
Smart Volume Control (includes DRC) Signal is sampled at 48 kHz Can run in place (Input buf = Output buf)
High Quality 10.9 MHz
Gain Manager (GAM)
Standard
Stereo: 2.6 MHz
1472 Bytes 120 Bytes 1 Bytes
Gain Manager Signal is sampled at 48 kHz Can run in place (Input buf = Output buf)
8 channels: 8.6 MHz
Panning
L/R Panning
F/R Balancing
8.4 MHz
5654 Bytes 6872 Bytes 7680 Bytes
Signal is sampled at 48 kHz
2.0 input, 4.0 output
Contains Front and Rear Left/Right Panning, Front/Rear balancing.
Sweet Spot Mode for one user.
Sweet Spot Mode 1 4.2 MHz Sweet Spot Mode 2 (Ambi) 4.7 MHz 7956 Bytes 6968 Bytes 7680 Bytes
Focus – STM32 audio post-processing (2/2)
Back
Figures of merit on STM32F4 target
87
Application field – building automation and control
Building automation is the automatic centralized control of a building's heating, ventilation and air
conditioning, lighting and other systems through a building management system or building automation system (BAS). A building controlled by a BAS is often referred to as a smart building or a smart home.
Often-seen acronyms
BACnet
communications protocol for Building Automation and Control (BAC) networks that leverage the ASHRAE, ANSI, and ISO 16484-5 standard protocol. BACnet was designed to allow communication of building automation and control systems for applications such as heating, ventilating, and air-conditioning control (HVAC), lighting control, access control, and fire detection systems and their associated equipment. The BACnet protocol provides mechanisms for computerized building automation devices to exchange information, regardless of the particular building service they perform.
DALI
Digital Addressable Lighting Interface (DALI) is a trademark for network-based systems that control lighting in building automation. The underlying technology was established by a consortium of lighting equipment manufacturers as a successor for 0-10 V lighting control systems, and as an open standard alternative to Digital Signal Interface (DSI), on which it is based. DALI is specified by technical standards IEC 62386 and IEC 60929. Standards conformance ensures that equipment from different manufacturers will interoperate. The DALI trademark is allowed on devices that comply with the current standards when manufactured.
DLMS / COSEM
IEC 62056 is a set of standards for Electricity metering data exchange by International Electrotechnical Commission. The IEC 62056 standards are the International Standard versions of the DLMS/COSEM specification. DLMS or Device Language Message Specification (originally Distribution Line Message Specification[1]), is the suite of standards developed and maintained by the DLMS User Association and has been adopted by the IEC TC13 WG14 into the IEC 62056 series of sta
ndards. COSEM or Companion Specification
for Energy Metering, includes a set of specifications that defines the Transport and Application Layers of the DLMS protocol
DMX-512
DMX512 (Digital Multiplex) is a standard for digital communication networks that are commonly used to control stage lighting and effects. It was originally intended as a standardized method for controlling light dimmers, which, prior to DMX512, had employed various incompatible proprietary protocols. It soon became the primary method for linking controllers (such as a lighting console) to dimmers and special effects devices such as fog machines and intelligent lights
KNX
KNX is a standardized (EN 50090, ISO/IEC 14543), OSI-based network communications protocol for building automation. KNX is the successor to, and convergence of, three previous standards: the European Home Systems Protocol (EHS), BatiBUS, and the European Installation Bus (EIB or Instabus)
88
STM32 – building automation and control
Provider Solution name Model Cost
Availability
WB WL F0 G0 F1 F2 F3 G4 F4 F7 H7 L0 L1 L4/L4+
MBS
BACnet stack
embedded
Source License
N
3
N
3
Y N
3
Y Y Y Y Y Y Y Y Y Y
prizm.io BACnet Stack
Source License
N
3
N
3
Y N
3
Y Y Y Y Y Y Y Y Y Y
ST
DALI
2
Source Free
N
3
N
3
N N
3
Y N N N N N N N Y N
MBS DALI 2 stack
Source License
N
3
N
3
Y Y Y Y Y Y Y Y Y Y Y Y
Andrea Informatique
DLMS / COSEM
Binaries License
N
3
N
3
N
3
N
3
Y Y N
3
N
3
Y N
3
N
3
N
3
Y N
3
ST
DMX-512
4
Source Free
N
1
N
1
N
1
N
1
Y N
1
N
1
N
1
N
1
N
1
N
1
N
1
N
1
N
1
prizm.io
DMX-512 Stack
Source License
N
3
N
3
Y Y Y Y Y Y Y Y Y Y Y Y
TAPKO
KAIstack KNX
Binaries / source
License + royalties
N
3
N
3
Y Y Y Y Y Y Y Y Y N
3
N
3
N
3
Weinzierl
KNX
Source
License
N
3
N
3
Y Y Y N
1
N
1
N
1
N
1
N N N
1
Y N
1
1/ Can be ported 2/ Provided on demand to sales office, supporting DALI slave only. 3/ Please contact supplier 4/ Provided on demand to sales office.
89
STM8 – building automation and control
Provider Solution name Application Model Cost
Availability
STM8S /
STM8AF
STM8L /
STM8AL
ST
DALI Lighting Source Free
Y N
1
TAPKO
KAIstack KNX Building automation
Binaries / source
License N Y
1/ Can be easily ported
Back
90
Application field – industrial protocols
Lower latency
Real-time
Non real
-time
Field
(Motion control ,
drive)
Automation,
Control
(PLC)
Supervisor, information
(configuration,
diagnostic)
Sensor/actuator
scheduling
Prioritization
TCP / UDP
RT
IRT
Fieldbus (RS485, CAN)
Ethernet
TCP
Industrial market needs are very fragmented in terms of communication protocols. Many different protocols are available for different target applications in factory automation
91
STM32 – industrial protocols (1/8)
Provider Solution name Application Model Cost
Availability
F0 G0 F1 F2 F3 G4 F4 F7 H7 L0 L1 L4/L4+ L5
Acontis
EC-Master Factory Automation
Source License
N N N N N N N N Y N N N N
ASIX Electronics
AX58100
STM32F303RE
Motor Control
Demo Kit
6
Factory Automation
Source Free
N N N N Y N N N Y N N N N
CMX
CMX-CANopen Automation, medical
Source License
N N Y Y Y N
1
Y Y N
1
N N N
1
N
1
Cypherbridge
uMODBUS Factory Automation
Source License
Y
3
N N N N N Y
4
Y
4
N N N N N
eCosCentric
eCosPro-CAN Factory Automation Source License
N N Y Y Y N
1
Y Y N
1
N N Y N
1
CANopen Factory Automation Source License
N N Y Y Y N
1
Y Y N
1
N N Y N
1
eCosPro-ModbusTCP
Factory Automation Source License
N N N Y Y N
1
Y Y N
1
N N Y N
1
Embedded office
CANopen Factory Automation Source Free
5
N N Y Y N N Y N N N N N N
emotas
CANopen Automation, medical
Source
License Y Y Y Y Y Y Y Y Y N N Y Y
J1939 Commercial vehicles
Source
License Y Y Y Y Y Y Y Y Y N N Y Y
EnergyBus Commercial vehicles
Source
License Y Y Y Y Y Y Y Y Y N N Y Y
EtherCAT
2
Automation, medical
Source
License Y Y Y Y Y Y Y Y Y Y Y Y Y
1/ Please contact supplier 2/ Requires external hardware 3/ MODBUS RTU 4/ MODBUS TCP 5/ Apache 2.0 license 6/ EtherCAT slave motor control solution based on ASIX AX58100 + STM32 and X-CUBE-MCSDK
92
STM32 – industrial protocols (2/8)
Provider Solution name Application Model Cost
Availability
F0 G0 F1 F2 F3 G4 F4 F7 H7 L0 L1 L4/L4+ L5
EUROS
CANOpen Automation
Binaries License
Y Y Y Y Y Y Y Y Y Y Y Y
PROFINET Automation
Binaries License
Y Y Y Y Y Y Y Y Y Y Y Y
Modbus
Automation
Binaries License
Y Y Y Y Y Y Y Y Y Y Y Y
EtherCAT
1
Automation
Binaries License
Y Y Y Y Y Y Y Y Y Y Y Y
Ethernet
Automation
Binaries License
Y Y Y Y Y Y Y Y Y Y Y Y
OPC UA Server/Client Automation
Binaries License
Y Y Y Y Y Y Y Y Y Y Y Y
MQTT Client Automation
Binaries License
Y Y Y Y Y Y Y Y Y Y Y Y
1/ Requires external hardware.
93
STM32 – industrial protocols (3/8)
1/ Requires external hardware (netX52 or netX90).
2/ source for STM32, binary for external hardware. 3/ Available on STM32Cube, so porting is very easy
Provider Solution name Application Model Cost
Availability
F0 G0 F1 F2 F3 G4 F4 F7 H7 L0 L1 L4/L4+ L5
Hilscher
I-
CUBE-NETX +
PROFIBUS
DP Slave
(1)
Fieldbus
Factory
automation
Source +
Binary
(2)
License
N
3
N
3
N
3
N
3
N
3
N
3
Y Y N
3
N
3
N
3
N
3
N
3
I-
CUBE-NETX +
CANopen Slave
(1)
N
3
N
3
N
3
N
3
N
3
N
3
Y Y N
3
N
3
N
3
N
3
N
3
I-
CUBE-NETX +
DeviceNet
Slave
(1)
N
3
N
3
N
3
N
3
N
3
N
3
Y Y N
3
N
3
N
3
N
3
N
3
I-
CUBE-NETX +
CC
-Link Slave
(1)
N
3
N
3
N
3
N
3
N
3
N
3
Y Y N
3
N
3
N
3
N
3
N
3
I-
CUBE-NETX +
OPC UA Server
(1)
IIoT
Source + Binary
(2)
License
N
3
N
3
N
3
N
3
N
3
N
3
Y Y N
3
N
3
N
3
N
3
N
3
I-
CUBE-NETX +
MQTT Client
(1)
N
3
N
3
N
3
N
3
N
3
N
3
Y Y N
3
N
3
N
3
N
3
N
3
94
STM32 – industrial protocols (4/8)
1/ Requires external hardware (netX52 or netX90). 2/ source for STM32, binary for external hardware.
Provider Solution name Application Model Cost
Availability
F0 G0 F1 F2 F3 G4 F4 F7 H7 L0 L1 L4/L4+ L5
Hilscher
I-
CUBE-NETX +
PROFINET RT/IRT IO
-Device
(1)
Industrial real-
time Ethernet
Factory
automation
Source +
Binary
(2)
License
N
3
N
3
N
3
N
3
N
3
N
3
Y Y N
3
N
3
N
3
N
3
N
3
I-
CUBE-NETX +
EtherCAT
Slave
(1)
N
3
N
3
N
3
N
3
N
3
N
3
Y Y N
3
N
3
N
3
N
3
N
3
I-
CUBE-NETX +
Ethernet/IP Adapter
(1)
N
3
N
3
N
3
N
3
N
3
N
3
Y Y N
3
N
3
N
3
N
3
N
3
I-
CUBE-NETX +
sercos
Slave
(1)
N
3
N
3
N
3
N
3
N
3
N
3
Y Y N
3
N
3
N
3
N
3
N
3
I-
CUBE-NETX +
POWERLINK Controlled Node
(1)
N
3
N
3
N
3
N
3
N
3
N
3
Y Y N
3
N
3
N
3
N
3
N
3
I-
CUBE-NETX +
Varan
Client
(1)
N
3
N
3
N
3
N
3
N
3
N
3
Y Y N
3
N
3
N
3
N
3
N
3
I-
CUBE-NETX +
Open ModbusTCP
(1)
N
3
N
3
N
3
N
3
N
3
N
3
Y Y N
3
N
3
N
3
N
3
N
3
95
STM32 – industrial protocols (5/8)
Provider
Solution
name
Application Model Cost
Availability
F0 G0 F1 F2 F3 G4 F4 F7 H7 L0 L1 L4/L4+ L5
Kalycito
OPC UA
Factory automation
Open Source Free
N N N N N N
2
Y Y Y N N
N
2
N
2
Matrikon
OPC UA
Factory automation
Source / Binaries
License
N N N Y N N
2
Y Y Y N N
N
2
N
2
MESCO
HART Slave
Process
automation
Source
Lic. + Royal.
Y Y Y Y Y N
2
Y
N
2
N
2
Y Y N
2
N
2
MicroControl
CANopen
Automation,
medical
Source License
Y Y Y Y Y Y Y Y Y N N Y
N
2
J1939
Commercial
vehicles
Source License
Y Y Y Y Y Y Y Y Y N N Y
N
2
EtherCAT
1
Factory automation
Source License
Y
1
Y
1
Y
1
Y
1
Y
1
Y
1
Y
1
Y
1
Y
1
Y
1
Y
1
Y
1
Y
1
PROFINET
Factory automation
Source License
N N Y Y N N Y Y Y N N N N
Micrium
µC/CAN
Factory
automation
Open Source
Free N N Y Y N N Y N N N N N N
µC/Modbus
Factory
automation
Open Source
Free Y Y Y Y Y N
2
Y Y Y Y Y Y N
2
1/ Requires external hardware.
2/ Please contact supplier.
96
STM32 – industrial protocols (6/8)
1/ Requires external hardware.
2/ Please contact supplier.
Provider Solution name Application Model Cost
Availability
F0 G0 F1 F2 F3 G4 F4 F7 H7 L0 L1 L4/L4+ L5
Mitsubishi
CC-Link IE TSN
Remote Station
SDK
Factory
automation
Source
License N N N N N N Y N N N N N N
Port
CANopen
Factory
automation
Source
License Y Y Y Y Y N
2
Y Y Y N N Y N
2
EtherCAT
1
Factory automation
Source
License Y Y Y Y Y N
2
Y Y Y N N Y N
2
PROFINET
Factory automation
Source
License N N N N N N Y Y Y N N N N
EtherNet/IP
1
Factory automation
Source
License N N N N N N Y Y Y N N N N
POWERLINK
1
Factory automation
Source
License N N N Y N N N N N N N N N
SEGGER
emModbus
Factory automation
Source License
Y Y Y Y Y Y Y Y Y Y Y Y Y
Systerel
S2OPC (OPC UA)
Factory automation
Open
Source
Free
N
2
N
2
N
2
Y N
2
N
2
N
2
Y Y N
2
N
2
N
2
N
2
97
STM32 – industrial protocols (7/8)
Provider
Solution
name
Application Model Cost
Availability
F0 G0 F1 F2 F3 G4 F4 F7 H7 L0 L1 L4/L4+ L5
TEConcept
IO-Link Device
Factory automation
Source License
Y Y Y Y Y Y Y Y Y Y Y Y Y
IO
-Link
Master
Factory automation
Source License
Y Y Y Y Y Y Y Y Y Y Y Y Y
TMGTE
IO-Link Device
Factory automation
Source License
Y Y Y Y Y Y Y Y Y Y Y Y Y
IO-Link Master
Factory automation
Source License
N N Y Y Y Y Y Y Y N N Y Y
Profibus DP
Factory automation
Source License
Y Y Y Y Y Y Y Y Y Y Y Y Y
Profinet
Factory automation
Source
License +
royalties
N N N Y N Y Y Y Y N N N N
Ethernet/IP
Factory automation
Source
License +
royalties
N N N Y N Y Y Y Y N N N N
Rowebots
UNISON
Modbus
Factory automation
Source License N N Y Y Y Y Y Y Y N Y
Y Y
98
STM8 – industrial protocols
Provider Solution name Application Model Cost
Availability
STM8S /
STM8AF
STM8L /
STM8AL
SEGGER
emModbus Factory automation Source License
Y Y
TEConcept
IO-Link Device Factory automation Source License
Y Y
TMGTE
IO-Link Device Factory automation Source License
Y Y
Back
99
Control your 3-phase motor with top performance
STM32 microcontrollers offer the performance of the industry-standard Arm® Cortex®-M cores running either Vector control or
FOC modes, widely used in high-performance drives for air conditioning, home appliances, drones, building and industrial automation, medical and e-bike applications. STM32 MC SDK (motor control software development kit) firmware (X-CUBE­MCSDK and X-CUBE-MCSDK-FUL) includes the Permanent-magnet synchronous motor (PMSM) firmware library (FOC control) and the STM32 Motor Control Workbench (to configure the FOC firmware library parameters), with its graphical user interface (GUI). STM32 Motor Control Workbench is PC software that reduces the design effort and time needed for the STM32 PMSM FOC firmware configuration. The user generates a project file through the GUI and initializes the library according to the application needs. Some of the variables of the algorithm being used can be monitored and changed in real time.
Application field – motor control
Often-seen acronyms
BLDC Brushless DC: permanent magnet motor with trapezoidal shaped B-EMF, FOC applicable PMSM Permanent magnet synchronous motor: with sinusoidal shaped B-EMF, FOC applicable ACIM AC induction motor: type of motor, FOC applicable FOC Field-oriented control: Mathematical technique used to achieve decoupled control of the flux and torque in a 3-phase motor.
HFI, MTPA
High Frequency Injection: algorithm for very low speed and fast acceleration (air con, fridge) and increased efficiency for low- or zero-speed, full torque applications (washing machines, factory automation)
• “Maximum Torque Per Ampere” (MTPA): optimizes the motor torque for each load and increases the efficiency,
• “Feed Forward”: improves the current control at high speed.
100
Loading...