alex0sunny

platformio.ini usbotg

Jul 16th, 2025
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [env:nucleo_f429zi]
  2. platform = ststm32
  3. board = nucleo_f429zi
  4. framework = arduino
  5. upload_protocol = stlink
  6.  
  7. # Критически важные флаги для USB CDC
  8. build_flags =
  9.     -D USE_USB_OTG_FS
  10.     -D USBD_USE_CDC_ACM=1
  11.     -D USB_VID=0x0483
  12.     -D USB_PID=0x5740
  13.     -D PIO_FRAMEWORK_ARDUINO_ENABLE_CDC
  14.  
  15. monitor_speed = 115200
Advertisement
Add Comment
Please, Sign In to add comment