SiBRAIN for STM32L162ZE
Overview
The SiBRAIN for STM32L162ZE (also sold as MCU CARD 13 for STM32 STM32L162ZE, MIKROE-4647) is a MikroElektronika add-on board that carries a STMicroelectronics STM32L162ZE ultra-low-power Arm Cortex-M3 microcontroller running at up to 32 MHz, with 512 KB of Flash memory, 80 KB of SRAM and 16 KB of data EEPROM.
The board follows the MikroElektronika SiBRAIN (formerly MCU Card) standard and plugs into a host development board through two 168-pin mezzanine connectors. It has no power supply, debugger, USB-UART, LEDs or buttons on its own; these are provided by the host board, for example Fusion for ARM v8, Fusion for STM32 v8, UNI-DS v8, Mikromedia 7 or UNI Clicker. For more information see the SiBRAIN for STM32L162ZE website [1].
Hardware
STM32L162ZE in LQFP144 package
24 MHz crystal (HSE)
32.768 kHz crystal (LSE)
Two 168-pin SiBRAIN connectors routing all MCU ports, mikroBUS 1-5, display, USB-UART and programming/trace signals to the host board
Supported Features
The mikroe_sibrain_stm32l162ze board supports the hardware features listed below.
- on-chip / on-board
- Feature integrated in the SoC / present on the board.
- 2 / 2
-
Number of instances that are enabled / disabled.
Click on the label to see the first instance of this feature in the board/SoC DTS files. -
vnd,foo -
Compatible string for the Devicetree binding matching the feature.
Click on the link to view the binding documentation.
mikroe_sibrain_stm32l162ze/stm32l162xe target
On-target memory for this board target: 80 KiB of RAM, 512 KiB of Flash.
Type |
Location |
Description |
Compatible |
|---|---|---|---|
CPU |
on-chip |
ARM Cortex-M3 CPU1 |
|
ADC |
on-chip |
STM32F4 ADC1 |
|
Clock control |
on-chip |
STM32 RCC (Reset and Clock controller)1 |
|
on-chip |
STM32 HSE Clock1 |
||
on-chip |
|||
on-chip |
STM32L0/L1 Multi Speed Internal Clock1 |
||
on-chip |
STM32L0/L1 Main PLL1 |
||
Counter |
on-chip |
STM32 counters9 |
|
DAC |
on-chip |
STM32 family DAC1 |
|
DMA |
on-chip |
STM32 DMA controller (V2bis) for the stm32F0, stm32F1 and stm32L1 soc families1 |
|
Flash controller |
on-chip |
STM32 Family flash controller1 |
|
GPIO & Headers |
on-chip |
STM32 GPIO Controller6 |
|
I2C |
on-chip |
STM32 I2C V1 controller2 |
|
Interrupt controller |
on-chip |
ARMv7-M NVIC (Nested Vectored Interrupt Controller)1 |
|
on-chip |
STM32 External Interrupt Controller1 |
||
Memory controller |
on-chip |
STM32 Battery Backed RAM1 |
|
MTD |
on-chip |
STM32 on-chip EEPROM1 |
|
on-chip |
STM32F4 flash memory1 |
||
NVMEM |
on-chip |
Fixed layout for Non-Volatile memory1 |
|
OTP memory |
on-chip |
STM32 embedded NVM OTP1 |
|
PHY |
on-chip |
This binding is to be used by all the usb transceivers which are built-in with USB IP1 |
|
Pin control |
on-chip |
STM32 Pin controller1 |
|
Power management |
on-chip |
STM32 power controller1 |
|
on-chip |
STM32F1-like wake-up pins controller1 |
||
PWM |
on-chip |
STM32 PWM7 |
|
Reset controller |
on-chip |
STM32 Reset and Clock Control (RCC) Controller1 |
|
RTC |
on-chip |
STM32 RTC1 |
|
Sensors |
on-chip |
STM32 quadrature decoder4 |
|
on-chip |
STM32 family TEMP node for production calibrated sensors with two calibration temperatures1 |
||
on-chip |
STM32 VREF+1 |
||
Serial controller |
on-chip |
STM32 USART3 |
|
on-chip |
|||
SMbus |
on-chip |
STM32 SMBus controller2 |
|
SPI |
on-chip |
STM32 SPI controller3 |
|
Timer |
on-chip |
ARMv7-M System Tick1 |
|
on-chip |
STM32 timers9 |
||
USB |
on-chip |
STM32 USB controller1 |
|
Watchdog |
on-chip |
STM32 system window watchdog1 |
|
on-chip |
STM32 watchdog1 |
Connections and IOs
The system clock is derived from the 24 MHz HSE crystal through the PLL (96 MHz VCO, 32 MHz SYSCLK). The RTC is clocked from the 32.768 kHz LSE crystal.
The Zephyr console is on UART5 (PC12 TX, PD2 RX). These pins are the SiBRAIN USB-UART pins, which the host board routes to its USB-UART converter.
Programming and debugging
The mikroe_sibrain_stm32l162ze board supports the runners and associated west commands listed below.
| flash | debug | rtt | attach | debugserver | reset | |
|---|---|---|---|---|---|---|
| jlink | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| openocd | ✅ | ✅ (default) | ✅ | ✅ | ✅ | |
| stm32cubeprogrammer | ✅ (default) |
The SWD interface is routed through the SiBRAIN connector to the programmer of the host board.
Building & Flashing
Here is an example for building the Hello World application.
# From the root of the zephyr repository
west build -b mikroe_sibrain_stm32l162ze samples/hello_world
west flash