forked from dmitrystu/sboot_stm32
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplatformio.ini
52 lines (46 loc) · 1.43 KB
/
platformio.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
; 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
[platformio]
description = Simple USB-serial echo example using DFU upload on STM32F411CE
default_envs = blackpill_f411ce_dfu
[env]
platform = ststm32
framework = arduino
upload_protocol = dfu
monitor_dtr = 1
build_flags =
-D PIO_FRAMEWORK_ARDUINO_USB_HIGHSPEED_FULLMODE_unused
-D PIO_FRAMEWORK_ARDUINO_USB_HIGHSPEED_unused
-D PIO_FRAMEWORK_ARDUINO_ENABLE_HID_unused
-D PIO_FRAMEWORK_ARDUINO_ENABLE_CDC
-D USBD_USE_CDC
-D USBCON
-D USBD_VID=0x1eaf
-D USBD_PID=0x0004
-D USB_MANUFACTURER_STRING="\"LeafLabs\""
-D USB_PRODUCT_STRING="\"Maple 004\""
[env:blackpill_f411ce_dfu]
board = blackpill_f411ce
build_flags = ${env.build_flags}
extra_scripts =
pre:pio-tools/custom_board.py
post:pio-tools/dfu-upload.py
;[env:blackpill_f411ce_hid]
;board = blackpill_f411ce
;build_flags = ${env.build_flags}
;upload_protocol = hid
[env:bluepill_f103c8_64k]
board = bluepill_f103c8
build_flags = ${env.build_flags}
upload_port = /dev/ttyACM2
[env:bluepill_f103c8_128k]
board = bluepill_f103c8_128k
build_flags = ${env.build_flags}
upload_port = /dev/ttyACM2