forked from FastLED/FastLED
-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathplatformio.ini
More file actions
130 lines (112 loc) · 3.97 KB
/
platformio.ini
File metadata and controls
130 lines (112 loc) · 3.97 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
[platformio]
src_dir = dev ; target is ./dev/dev.ino
default_envs = dev
; Board-specific cache directories are now configured per-board in ci/ci/boards.py
; This provides better cache isolation and allows for parallel builds
;build_cache_dir = .pio_cache
[env]
; Global settings for all environments
;build_flags =
; -DUSE_CCACHE=1
; NOTE: build_cache_enable and build_cache_dir are not standard PlatformIO options
; Board-specific cache directories are now configured per-board in ci/ci/boards.py
;build_cache_enable = true
;build_cache_dir = ${platformio.build_cache_dir}
extra_scripts =
pre:ci/util/ccache_config.py
[env:generic-esp]
# Developement branch of the open source espressif32 platform
platform = https://github.com/pioarduino/platform-espressif32/releases/download/54.03.20/platform-espressif32.zip
framework = arduino
upload_protocol = esptool
monitor_filters =
default
esp32_exception_decoder ; Decode exceptions so that they are human readable.
; Symlink in the FastLED library so that changes to the library are reflected in the project
; build immediatly.
lib_deps =
FastLED=symlink://./
build_type = debug
build_flags =
-DDEBUG
-DPIN_DATA=9
-DPIN_CLOCK=7
-DFASTLED_RMT5=1
-g
-Og
-DCORE_DEBUG_LEVEL=5
-DLOG_LOCAL_LEVEL=ESP_LOG_VERBOSE
-DFASTLED_ESP32_SPI_BULK_TRANSFER=1
-D IDF_CCACHE_ENABLE=1
check_tool = clangtidy
[env:uno]
platform = atmelavr
board = uno
framework = arduino
[env:giga_r1_m7]
platform = ststm32
board = giga_r1_m7
framework = arduino
[env:esp32s3]
extends = env:generic-esp
board = seeed_xiao_esp32s3
; Use DIO flash mode instead of QIO for QEMU compatibility
; QEMU's ESP32-S3 emulation doesn't support setting the QIE (Quad I/O Enable) bit,
; causing "Failed to set QIE bit" error and boot assertion failure in startup_funcs.c:95
; DIO (Dual I/O) mode works reliably in both hardware and QEMU emulation
board_build.flash_mode = dio
; Set flash size to 4MB to match QEMU configuration (seeed_xiao_esp32s3 default is 8MB)
; Use board_build.flash_size to set the binary header, not board_upload.flash_size
board_build.flash_size = 4MB
; Note: This partition table is for normal builds. QEMU builds use settings from ci/boards.py
board_build.partitions = default.csv
build_flags =
${env:generic-esp.build_flags}
[env:esp32c6]
extends = env:generic-esp
board = esp32-c6-devkitc-1
build_flags = ${env:generic-esp.build_flags}
[env:esp32c3]
extends = env:generic-esp
board = esp32-c3-devkitm-1
; Use DIO flash mode instead of QIO for QEMU compatibility
; QEMU's ESP32-C3 emulation doesn't support setting the QIE (Quad I/O Enable) bit,
; causing "Failed to set QIE bit" error and boot assertion failure in startup_funcs.c:95
; DIO (Dual I/O) mode works reliably in both hardware and QEMU emulation
board_build.flash_mode = dio
build_flags = ${env:generic-esp.build_flags}
[env:esp32-wroom-32]
extends = env:generic-esp
board = esp32dev
build_flags = ${env:generic-esp.build_flags}
[env:esp32c2]
extends = env:generic-esp
platform = https://github.com/pioarduino/platform-espressif32.git#develop
board = esp32-c2-devkitm-1
custom_sdkconfig = CONFIG_IDF_TARGET="esp32c2"
build_flags =
${env:generic-esp.build_flags}
[env:esp32dev]
extends = env:generic-esp
platform = platformio/espressif32
board = esp32dev
; Use DIO flash mode instead of QIO for QEMU compatibility
; QEMU's ESP32 emulation doesn't support setting the QIE (Quad I/O Enable) bit,
; causing "Failed to set QIE bit" error and boot assertion failure in startup_funcs.c:95
; DIO (Dual I/O) mode works reliably in both hardware and QEMU emulation
board_build.flash_mode = dio
build_flags =
${env:generic-esp.build_flags}
[env:teensy40]
platform = teensy
board = teensy40
framework = arduino
build_flags = -D USB_MIDI_SERIAL
[env:sparkfun_xrp_controller]
platform = https://github.com/maxgerhardt/platform-raspberrypi
board = sparkfun_xrp_controller
framework = arduino
build_flags = -fopt-info-all=optimization_report.txt
extra_scripts = pre:ci/ci-flags.py
[env:dev]
extends = env:esp32s3