![]() |
STM32Cube
Version 2.0
Create Projects for STM32F0 Series with STM32Cube HAL and STM32CubeMX
|
The CMSIS-Driver I2C requires:
Valid settings for various evaluation boards are listed in the table below:
Peripheral Resource | STM32091C-EVAL |
---|---|
I2C Peripheral | I2C2 |
SCL Pin | PB13 |
SDA Pin | PB14 |
For different boards, refer to the hardware schematics to reflect correct setup values.
The STM32CubeMX configuration for STMicroelectronics STM32091C-EVAL Board with steps for Pinout, Clock, and System Configuration are listed below. Enter the values that are marked bold.
Interrupt Table | Enabled | Preemption Priority |
---|---|---|
DMA1 channel 4 to 7 and DMA2 channel 3 .. | ON | 0 |
I2C2 global interrupt | ON | 0 |
DMA Request Settings | Label | Peripheral | Memory |
---|---|---|---|
Mode: Normal | Increment Address | OFF | ON |
. | Data Width | Byte | Byte |
DMA Request Settings | Label | Peripheral | Memory |
---|---|---|---|
Mode: Normal | Increment Address | OFF | ON |
. | Data Width | Byte | Byte |
Pin Name | Signal on Pin | GPIO output.. | GPIO mode | GPIO Pull-up/Pull.. | Maximum out | Fast Mode | User Label |
---|---|---|---|---|---|---|---|
PB13 | I2C2_SCL | n/a | Alternate .. | Pull-up | High | n/a | . |
PB14 | I2C2_SDA | n/a | Alternate .. | Pull-up | High | n/a | . |