![]() |
STM32Cube
Version 2.0
Create Projects for STM32F7 Series with STM32Cube HAL and STM32CubeMX
|
The CMSIS-Driver I2C requires:
The example below uses correct settings for STM32F746G-Discovery:
For different boards, refer to the hardware schematics to reflect correct setup values.
The STM32CubeMX configuration steps for Pinout, Clock, and System Configuration are listed below. Enter the values that are marked bold.
Under Connectivity open I2C3 Configuration:
| DMA Request Settings | Label | Peripheral | Memory |
|---|---|---|---|
| Mode: Normal | Increment Address | OFF | ON |
| Use Fifo OFF Threshold: Full | Data Width | Byte | Byte |
| . | Burst Size | Single | Single |
| DMA Request Settings | Label | Peripheral | Memory |
|---|---|---|---|
| Mode: Normal | Increment Address | OFF | ON |
| Use Fifo OFF Threshold: Full | Data Width | Byte | Byte |
| . | Burst Size | Single | Single |
| Pin Name | Signal on Pin | GPIO mode | GPIO Pull-up/Pull.. | Maximum out | User Label |
|---|---|---|---|---|---|
| PH7 | I2C3_SCL | Alternate | Pull-up | High | . |
| PH8 | I2C3_SDA | Alternate | Pull-up | High | . |
| Interrupt Table | Enable | Preemption Priority | Sub Priority |
|---|---|---|---|
| DMA1 stream1 global interrupt | ON | 0 | 0 |
| DMA1 stream4 global interrupt | ON | 0 | 0 |
| I2C3 event interrupt | ON | 0 | 0 |
| I2C3 error interrupt | ON | 0 | 0 |
Click OK to close the I2C3 Configuration dialog