Re: USART on STM32F411 BlackPill
Posted: Wed Feb 09, 2022 12:39 pm
hardware serial is that hardware uart in the stm32, this is basically an api to access the hardware.
there are specific pins for each uart.
you would need to review the spec sheets for your mcu and the ref manual to determine what those pins are.
and yes you can use all 3 uarts i.e. Serial1, Serial2, Serial3 if you'd like.
The pins needs to be mapped correctly and HardwareSerial needs to be initialised correctly.
you can make a protocol that use all 3 of them, e.g. modbus
https://en.wikipedia.org/wiki/Modbus
https://modbus.org/
And you still have your usb (CDC) serial (i.e. Serial) on your virtual comm port. That goes to your host / pc.
there are specific pins for each uart.
you would need to review the spec sheets for your mcu and the ref manual to determine what those pins are.
and yes you can use all 3 uarts i.e. Serial1, Serial2, Serial3 if you'd like.
The pins needs to be mapped correctly and HardwareSerial needs to be initialised correctly.
you can make a protocol that use all 3 of them, e.g. modbus
https://en.wikipedia.org/wiki/Modbus
https://modbus.org/
And you still have your usb (CDC) serial (i.e. Serial) on your virtual comm port. That goes to your host / pc.