init commit

This commit is contained in:
vpodberezsky
2025-12-13 12:45:11 +03:00
parent 6272e6fa7d
commit 6ca6f3cac9
38 changed files with 724853 additions and 0 deletions

View File

@@ -0,0 +1,62 @@
; 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:bluepill_f103c8]
;platform = ststm32
;board = bluepill_f103c8
;framework = arduino
;upload_protocol = stlink
;debug_tool = stlink
;monitor_speed = 115200
[env:bluepill_f103c8]
platform = ststm32
board = bluepill_f103c8
framework = arduino
# Ключевая настройка: используем протокол HID
upload_protocol = hid
# Важные флаги для работы USB CDC (виртуального COM-порта)
build_flags =
-D PIO_FRAMEWORK_ARDUINO_ENABLE_CDC
-D PIO_FRAMEWORK_ARDUINO_ENABLE_HID ; Может потребоваться
-D USBCON
-D USBD_VID=0x0483
-D USBD_PID=0x5740
-D USB_MANUFACTURER="Unknown"
-D USB_PRODUCT="BLUEPILL_XAH"
;upload_port = \\.\HID\VID_1209&PID_BEBA
; Включение USB Serial (CDC)
;build_flags =
; -D PIO_FRAMEWORK_ARDUINO_ENABLE_CDC
; -D USBCON
; -D USBD_VID=0x0483
; -D USBD_PID=0x5740
; -D USB_MANUFACTURER="Unknown"
; -D USB_PRODUCT="BLUEPILL_XAH"
; -D HAL_PCD_MODULE_ENABLED
; Важно для работы Serial Monitor в PlatformIO
monitor_dtr = 1
;board_build.core = maple
; Change microcontroller
board_build.mcu = stm32f103c8t6
; Change MCU frequency
board_build.f_cpu = 72000000L
; may be needed for the first code download
;board_upload.require_upload_port = no
;board_upload.use_1200bps_touch = no
;upload_protocol = dfu
monitor_speed = 115200
monitor_encoding = utf-8