Hardware resource relating to CMSIS-Driver instance is shown in the table below:
| Driver Instance | Hardware Resource |
|---|---|
| Driver_USART1 | USART1 |
| Driver_USART2 | USART2 |
| Driver_USART3 | USART3 |
STM32 HAL limitations:
The CMSIS-Driver USART requires:
Valid settings for various evaluation boards are listed in the table below:
| Peripheral Resource | NUCLEO-G474RE |
|---|---|
| USART Peripheral | USART1 |
| USART Mode | Synchronous Master |
| TX Pin | PC4 |
| RX Pin | PC5 |
| CK Pin | PA8 |
For different boards, refer to the hardware schematics to reflect correct setup values.
The STM32CubeMX configuration for NUCLEO-G474RE with steps for Pinout, Clock, and System Configuration are listed below. Enter the values that are marked bold.
| Pin Name | Signal on Pin | GPIO mode | GPIO Pull-up/Pull.. | Maximum out.. | User Label |
|---|---|---|---|---|---|
| PC4 | USART1_TX | Alternate F.. | No pull-up and no.. | Very High | . |
| PC5 | USART1_RX | Alternate F.. | No pull-up and no.. | Very High | . |
| PA8 | USART1_CK | Alternate F.. | No pull-up and no.. | Very High | . |
| DMA Request | Channel | Direction | Priority |
|---|---|---|---|
| USART1_RX | DMA1 Channel 1 | Peripheral to Memory | Low |
| USART1_TX | DMA1 Channel 2 | Memory to Peripheral | Low |
| NVIC Interrupt Table | Enabled | Preemption Priority | Sub Priority |
|---|---|---|---|
| DMA1 channel1 global interrupt | ON | 0 | 0 |
| DMA1 channel2 global interrupt | ON | 0 | 0 |
| USART1 global interrupt | ON | 0 | 0 |