Last active
May 17, 2024 07:37
-
-
Save Xart3mis/2f6ff0f4d7d2984918beac6d8b8ead78 to your computer and use it in GitHub Desktop.
stm32 black pill platformio configuration file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; PlatformIO Project Configuration File | |
; | |
; Build options: build flags, source filter | |
; Upload options: custom upload port, speed and extra flags | |
; Library options: dependencies, extra library storages | |
; Advanced options: extra scripting | |
; | |
; Please visit documentation for the other options and examples | |
; https://docs.platformio.org/page/projectconf.html | |
[env:HID] | |
platform = ststm32 | |
board = blackpill_f401cc | |
framework = arduino | |
debug_tool = stlink | |
upload_protocol = stlink | |
build_flags = | |
-D USBCON | |
-D USBD_VID=0x0483 | |
-D USBD_PID=0x5740 | |
-D USB_MANUFACTURER="Unknown" | |
-D USB_PRODUCT="\"blackpill_f401cc\"" | |
-D HAL_PCD_MODULE_ENABLED | |
-D PIO_FRAMEWORK_ARDUINO_ENABLE_HID | |
monitor_dtr = 1 | |
monitor_flags = --echo | |
monitor_filters = colorize, send_on_enter | |
[env:CDC U(S)ART] | |
platform = ststm32 | |
board = blackpill_f401cc | |
framework = arduino | |
debug_tool = stlink | |
upload_protocol = stlink | |
build_flags = | |
-D USBCON | |
-D HAL_PCD_MODULE_ENABLED | |
-D USBD_VID=0x0483 | |
-D USBD_PID=0x5740 | |
-D USB_MANUFACTURER="WeAct" | |
-D USB_PRODUCT="\"blackpill_f401cc\"" | |
-D PIO_FRAMEWORK_ARDUINO_ENABLE_CDC | |
monitor_dtr = 1 | |
monitor_flags = --echo | |
monitor_filters = colorize, send_on_enter | |
[env:CDC Without Serial] | |
platform = ststm32 | |
board = blackpill_f401cc | |
framework = arduino | |
debug_tool = stlink | |
upload_protocol = stlink | |
build_flags = | |
-D USBCON | |
-D HAL_PCD_MODULE_ENABLED | |
-D PIO_FRAMEWORK_ARDUINO_ENABLE_CDC_WITHOUT_SERIAL | |
monitor_dtr = 1 | |
monitor_flags = --echo | |
monitor_filters = colorize, send_on_enter | |
[env:USB serial (CDC)] | |
platform = ststm32 | |
board = blackpill_f401cc | |
framework = arduino | |
debug_tool = stlink | |
upload_protocol = stlink | |
build_flags = | |
-D USBCON | |
-D HAL_PCD_MODULE_ENABLED | |
-D USBD_VID=0x0483 | |
-D USBD_PID=0x5740 | |
-D USB_MANUFACTURER="Unknown" | |
-D USB_PRODUCT="\"blackpill_f401cc\"" | |
-D ENABLE_USB_SERIAL | |
monitor_dtr = 1 | |
monitor_flags = --echo | |
monitor_filters = colorize, send_on_enter | |
[env:MSC] | |
platform = ststm32 | |
board = blackpill_f401cc | |
framework = arduino | |
debug_tool = stlink | |
upload_protocol = stlink | |
build_flags = | |
-D USBCON | |
-D USBD_VID=0x0483 | |
-D USBD_PID=0x5740 | |
-D USB_MANUFACTURER="Unknown" | |
-D USB_PRODUCT="\"blackpill_f401cc\"" | |
-D HAL_PCD_MODULE_ENABLED | |
-D ENABLE_USB_MASS_STORAGE | |
monitor_dtr = 1 | |
monitor_flags = --echo | |
monitor_filters = colorize, send_on_enter |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment