![]() |
STM32Cube
Version 2.0
Create Projects for STM32H7 Series with STM32Cube HAL and STM32CubeMX
|
The CMSIS-Driver SPI requires:
Valid settings for various evaluation boards are listed in the table below:
Peripheral Resource | STM32H743I-EVAL |
---|---|
SPI Peripheral | SPI 1 |
SPI Mode | Full-Duplex Master |
MOSI Pin | PA7 |
MISO Pin | PA6 |
SCK Pin | PA5 |
NSS Pin | PA4 |
For different boards, refer to the hardware schematics to reflect correct setup values.
The STM32CubeMX configuration for STM32H743I-EVAL with steps for Pinout, Clock, and System Configuration are listed below. Enter the values that are marked bold.
Under Connectivity open SPI1 Configuration:
Pin Name | Signal on Pin | GPIO mode | GPIO Pull-up/Pull.. | Maximum out | User Label |
---|---|---|---|---|---|
PA5 | SPI1_SCK | Alternate | No pull-up and no.. | High | . |
PA4 | SPI1_NSS | Alternate | No pull-up and no.. | High | . |
PA6 | SPI1_MISO | Alternate | No pull-up and no.. | High | . |
PA7 | SPI1_MOSI | Alternate | No pull-up and no.. | High | . |
Interrupt Table | Enable | Preemption Priority | Sub Priority |
---|---|---|---|
DMA1 channel 0 global interrupt | ON | 0 | 0 |
DMA1 channel 1 global interrupt | ON | 0 | 0 |
SPI1 global interrupt | ON | 0 | 0 |
Click OK to close the SPI1 Configuration dialog