![]() |
STM32Cube
Version 2.0
Create Projects for STM32L4 Series with STM32Cube HAL and STM32CubeMX
|
The CMSIS-Driver USART requires:
Valid settings for various evaluation boards are listed in the table below:
| Peripheral Resource | STM32L496G-DISCO |
|---|---|
| USART Peripheral | USART1 |
| USART Mode | IrDA |
| TX Pin | PB6 |
| RX Pin | PG10 |
For different boards, refer to the hardware schematics to reflect correct setup values.
The STM32CubeMX configuration for STM32L496G-DISCO 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 |
|---|---|---|---|---|---|
| PB6 | USART1_TX | Alternate | Pull-up | Very High | . |
| PG10 | USART1_RX | Alternate | Pull-up | Very High | . |
| Interrupt Table | Enable | Preemption Priority | Sub Priority |
|---|---|---|---|
| USART1 global interrupt | ON | 0 | 0 |
| DMA1 stream5 global interrupt | ON | 0 | 0 |
| DMA1 stream4 global interrupt | ON | 0 | 0 |