This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
en:iot-open:hardware2:stm32 [2023/11/18 15:31] – pczekalski | en:iot-open:hardware2:stm32 [2023/11/23 11:08] (current) – pczekalski | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | === STM32 === | + | < |
+ | ====== STM32 ====== | ||
+ | {{: | ||
The STM32 family is developed and manufactured by STMicroelectronics. They are considered advanced and efficient and are known for great technical documentation, | The STM32 family is developed and manufactured by STMicroelectronics. They are considered advanced and efficient and are known for great technical documentation, | ||
For a long time, STM32 delivered MCUs without radio modules; thus, they required external radio communication interfaces for IoT applications. Recently, a series of chips have been available with built-in radio modules, primarily using IEEE 802.15.4 (Zigbee, Thread, and other wireless sensor network protocols) rather than 802.11 (WiFi).\\ | For a long time, STM32 delivered MCUs without radio modules; thus, they required external radio communication interfaces for IoT applications. Recently, a series of chips have been available with built-in radio modules, primarily using IEEE 802.15.4 (Zigbee, Thread, and other wireless sensor network protocols) rather than 802.11 (WiFi).\\ | ||
Line 10: | Line 11: | ||
Thanks to the built-in performance options such as an independent vectorised interrupt system and DMA, industrial grade series can handle video processing, TFT displays, and so on. | Thanks to the built-in performance options such as an independent vectorised interrupt system and DMA, industrial grade series can handle video processing, TFT displays, and so on. | ||
- | === Hardware | + | == Hardware == |
STM32 SoCs use ARM Cortex-based cores, starting from M0 to M7 ((https:// | STM32 SoCs use ARM Cortex-based cores, starting from M0 to M7 ((https:// | ||
Line 25: | Line 26: | ||
architecture-based.</ | architecture-based.</ | ||
- | === Processor | + | == Processor == |
All STM32 use ARM Cortex cores, single, double or in pair with another ARM core coprocessor, | All STM32 use ARM Cortex cores, single, double or in pair with another ARM core coprocessor, | ||
Line 32: | Line 33: | ||
< | < | ||
- | === Memory | + | == Memory == |
Built-in RAM, flash, and EEPROM sizes depend on the family of chips and the exact model within this family. Ultra-low-power devices such as STM32L0 microcontroller have only 2kB of RAM, 128B of EEPROM, and 16kB of flash. Conversely, the STM32H7 microcontroller can have up to 1184kB of RAM and 2MB of built-in flash. Most MCUs can extend the memory externally with SPI (even up to dual QSPI interface). Each STM32 series has its variations that vary in the built-in memory size. | Built-in RAM, flash, and EEPROM sizes depend on the family of chips and the exact model within this family. Ultra-low-power devices such as STM32L0 microcontroller have only 2kB of RAM, 128B of EEPROM, and 16kB of flash. Conversely, the STM32H7 microcontroller can have up to 1184kB of RAM and 2MB of built-in flash. Most MCUs can extend the memory externally with SPI (even up to dual QSPI interface). Each STM32 series has its variations that vary in the built-in memory size. | ||
- | === Networking | + | == Networking == |
Only the STM32 W series provides radio connectivity integrated into the MCU. Currently, there are 4 chip series (and each has its variations regarding enclosure size, memory size (both RAM and flash), number of GPIO pins available, and some advanced functions such as secure keys management, secure boot, etc.: | Only the STM32 W series provides radio connectivity integrated into the MCU. Currently, there are 4 chip series (and each has its variations regarding enclosure size, memory size (both RAM and flash), number of GPIO pins available, and some advanced functions such as secure keys management, secure boot, etc.: | ||
* STM32 WL series ((https:// | * STM32 WL series ((https:// | ||
Line 44: | Line 45: | ||
Each series has variations, e.g., the STM32 WL series has STM32WLE5 and STM32WL54 that do not support LoRa, as well as versions STM32WLE5 and STM32WL55 with LoRa. | Each series has variations, e.g., the STM32 WL series has STM32WLE5 and STM32WL54 that do not support LoRa, as well as versions STM32WLE5 and STM32WL55 with LoRa. | ||
- | === Peripherals | + | == Peripherals == |
The STM32 family provides all peripherals and interfaces, but availability and amount depend on the family, series, and particular model. STM32 MCUs connect the CPU core to various peripheral modules using a peripheral bus matrix. This matrix allows for flexible routing of communication between the CPU and peripherals. Each peripheral block has associated control registers allowing configuring and controlling their operation. Those registers can be used to set parameters, turn features on or off, and monitor the status of the peripherals. | The STM32 family provides all peripherals and interfaces, but availability and amount depend on the family, series, and particular model. STM32 MCUs connect the CPU core to various peripheral modules using a peripheral bus matrix. This matrix allows for flexible routing of communication between the CPU and peripherals. Each peripheral block has associated control registers allowing configuring and controlling their operation. Those registers can be used to set parameters, turn features on or off, and monitor the status of the peripherals. | ||
Line 50: | Line 51: | ||
* GPIO, | * GPIO, | ||
* timers (including hardware-based pulse generation such as PWM and watchdog timers), | * timers (including hardware-based pulse generation such as PWM and watchdog timers), | ||
- | * embedded system protocol interfaces: UART (USART), SPI (even up to dual QSPI), I2C, CAN | + | * embedded system protocol interfaces UART (USART), SPI (even up to dual QSPI), I2C, CAN, |
* ADC and DAC converters, | * ADC and DAC converters, | ||
* USB, Ethernet, SDIO, camera (CSI), display (DSI), | * USB, Ethernet, SDIO, camera (CSI), display (DSI), | ||
Line 64: | Line 65: | ||
</ | </ | ||
- | === Video subsystem | + | == Video subsystem == |
Some STM32 MCUs provide computing performance high enough to handle image and video processing, e.g. STM32F7 and STM32H7 series have hardware-accelerated jpeg (and thus mjpeg) encoding and decoding. MP1 series can be equipped with an optional GPU for 3D acceleration. Some of the MCUs include a built-in TFT display controller. | Some STM32 MCUs provide computing performance high enough to handle image and video processing, e.g. STM32F7 and STM32H7 series have hardware-accelerated jpeg (and thus mjpeg) encoding and decoding. MP1 series can be equipped with an optional GPU for 3D acceleration. Some of the MCUs include a built-in TFT display controller. | ||
- | === Hardware summary === | + | == Hardware summary == |
+ | STM32 shares a common ARM architecture but, depending on the family, has different cores and, thus, performance and applications. The following chapters show a more in-depth review of the STM32 MCU hardware. | ||
+ | <WRAP excludefrompdf> | ||
A detailed hardware summary is present in the following subchapters: | A detailed hardware summary is present in the following subchapters: | ||
- | * [[en: | + | * [[en: |
- | * [[en: | + | * [[en: |
- | * [[en: | + | * [[en: |
- | * [[en: | + | * [[en: |
- | + | </ | |
- | === The most popular boards | + | == The most popular boards == |
STM provides developers with popular development boards virtually for any family of MCUs. There are also available 3rd party development boards. | STM provides developers with popular development boards virtually for any family of MCUs. There are also available 3rd party development boards. | ||
Line 85: | Line 88: | ||
<figure stm32wbusb> | <figure stm32wbusb> | ||
- | {{ : | + | {{ : |
< | < | ||
</ | </ | ||
<figure stm32wbnucleoboard> | <figure stm32wbnucleoboard> | ||
- | {{ : | + | {{ : |
< | < | ||
</ | </ | ||
<figure stm32wbnucleodevelopment> | <figure stm32wbnucleodevelopment> | ||
- | {{ : | + | {{ : |
< | < | ||
</ | </ | ||
Line 101: | Line 104: | ||
Sample 3rd party evaluation board for STM32F1 MCU is present in the figure {{ref> | Sample 3rd party evaluation board for STM32F1 MCU is present in the figure {{ref> | ||
<figure STM32F1evalboard> | <figure STM32F1evalboard> | ||
- | {{ : | + | {{ : |
< | < | ||
</ | </ | ||