The CMSIS-Driver SPI requires:
Valid settings for various evaluation boards are listed in the table below:
| Peripheral Resource | STM32L073Z-EVAL |
|---|---|
| SPI Peripheral | SPI1 |
| SPI Mode | Full-Duplex Master |
| MOSI Pin | PE15 |
| MISO Pin | PE14 |
| SCK Pin | PE13 |
For different boards, refer to the hardware schematics to reflect correct setup values.
The STM32CubeMX configuration for STMicroelectronics STM32L073Z-EVAL Board with steps for Pinout, Clock, and System Configuration are listed below. Enter the values that are marked bold.
Under Connectivity open SPI1 Configuration:
| Interrupt Table | Enabled | Preemption Priority |
|---|---|---|
| DMA1 channel 2 and channel 3 interrupts | ON | 0 |
| SPI1 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 |
|---|---|---|---|---|---|---|---|
| PE13 | SPI1_SCK | n/a | Alternate .. | No pull-up and no.. | Very High | n/a | . |
| PE14 | SPI1_MISO | n/a | Alternate .. | No pull-up and no.. | Very High | n/a | . |
| PE15 | SPI1_MOSI | n/a | Alternate .. | No pull-up and no.. | Very High | n/a | . |
Click OK to close the SPI1 Configuration dialog