Search found 1 match

by batoaqaa
Tue Feb 22, 2022 10:39 pm
Forum: STM32F4 based boards
Topic: USART on STM32F411 BlackPill
Replies: 12
Views: 52397

Re: USART on STM32F411 BlackPill

You only need to define hardware serial in platformio.ini file:
[env:blackpill_f401cc]
platform = ststm32
board = blackpill_f401cc
framework = arduino
upload_protocol = dfu
build_flags =
-D PIO_FRAMEWORK_ARDUINO_ENABLE_CDC
-D USBCON
-D ENABLE_HWSERIAL2 ;Enable hardware serial2 <=====
-D PIN ...

Go to advanced search