STM32G071 USART configuration LQFP48 package
I am just trying to use the STM32CubeMX tool.
The application needs two USARTs. One for communication with external processor. This will be an RS485 interface. The PCB will have hardware for RS485 transceiver, mux/demux for directionality of transmission. Due to this, I am configuring this USART in asynchronous mode (no flow control for RS232 or RS485). This USART1 will also be used as a bootloader. Please confirm if this configuration will work. For the NVIC settings, I enabled the USART1 global interrupt. Will this interrupt trigger both on transmit and receive bytes?
I also need the serial wire debug capability. I want to configure a separate USART (USART2)for this. Do I configure this the same way as USART1? Initially I will be using the ST-Link debugging tool, later maybe the JLink SWD. I will disable the interrupt for this. Please confirm if correct.
Thanks,
Priya
