Setting up STM32
Follow the steps bellow to setup programming STM32 microcontrollers with the Arduino IDE (Option 1, top) or Visual Studio and Platform IO (Option 2, bottom).
Last updated
Was this helpful?
Was this helpful?
[env:genericSTM32F401RE]
platform = ststm32
board = genericSTM32F401RE
framework = arduino
upload_protocol = dfu
monitor_speed = 115200
;only for monitoring serial data
;the monitor port name can be read when the device is in RUN mode
;monitor_port = COM3
board_build.mcu = stm32f401ret6
board_build.f_cpu = 84000000L
board_build.core = ststm32
build_flags =
-D PIO_FRAMEWORK_ARDUINO_ENABLE_CDC
-D USBCON
-D USBD_VID=0x0483
-D USBD_PID=0x0003
-D USB_MANUFACTURER="Unknown"
-D USB_PRODUCT="\"GENERIC_F401RETX\""
-D HAL_PCD_MODULE_ENABLED
lib_deps = askuric/Simple FOC@^2.4.0