-
Notifications
You must be signed in to change notification settings - Fork 334
Expand file tree
/
Copy pathplatformio.ini
More file actions
116 lines (109 loc) · 4.62 KB
/
platformio.ini
File metadata and controls
116 lines (109 loc) · 4.62 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
; 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]
src_dir = ./Software
[env:compiler_warning_check]
platform = https://github.com/pioarduino/platform-espressif32/releases/download/55.03.32/platform-espressif32.zip
board = esp32dev
monitor_speed = 115200
monitor_filters = default, time, log2file, esp32_exception_decoder
board_build.flash_mode = qio
board_build.f_flash = 80000000
board_build.arduino.memory_type = qio_qspi
board_build.partitions = min_spiffs.csv
framework = arduino
build_flags = -I include -DHW_LILYGO -DSMALL_FLASH_DEVICE -Wimplicit-fallthrough -Wextra -Wall -Werror
-fno-exceptions -ffunction-sections -fdata-sections -Wl,--gc-sections
; -fno-rtti ; was avoided as we receive some warnings from gcc because the flags seems to be common for gcc and g++ in platformio (unfortunately)
lib_deps =
[env:esp32devkit_330]
platform = https://github.com/pioarduino/platform-espressif32/releases/download/55.03.38/platform-espressif32.zip
board = esp32dev
monitor_speed = 115200
monitor_filters = default, time, log2file, esp32_exception_decoder
board_build.flash_mode = qio
board_build.f_flash = 80000000
board_build.arduino.memory_type = qio_qspi
board_build.partitions = min_spiffs.csv
framework = arduino
build_flags = -I include -DHW_DEVKIT -DSMALL_FLASH_DEVICE -Wimplicit-fallthrough -Wextra -Wall
-fno-exceptions -fno-rtti -ffunction-sections -fdata-sections -Wl,--gc-sections
lib_deps =
[env:lilygo_330]
platform = https://github.com/pioarduino/platform-espressif32/releases/download/55.03.38/platform-espressif32.zip
board = esp32dev
monitor_speed = 115200
monitor_filters = default, time, log2file, esp32_exception_decoder
board_build.flash_mode = qio
board_build.f_flash = 80000000
board_build.arduino.memory_type = qio_qspi
board_build.partitions = min_spiffs.csv
framework = arduino
build_flags = -I include -DHW_LILYGO -DSMALL_FLASH_DEVICE -Wimplicit-fallthrough -Wextra -Wall
-fno-exceptions -fno-rtti -ffunction-sections -fdata-sections -Wl,--gc-sections
lib_deps =
[env:stark_330]
platform = https://github.com/pioarduino/platform-espressif32/releases/download/55.03.38/platform-espressif32.zip
board = esp32dev
monitor_speed = 115200
monitor_filters = default, time, log2file, esp32_exception_decoder
board_build.flash_mode = qio
board_build.f_flash = 80000000
board_build.arduino.memory_type = qio_qspi
board_build.partitions = default_8MB.csv
framework = arduino
build_flags = -I include -DHW_STARK -Wimplicit-fallthrough -Wextra -Wall
-fno-exceptions -fno-rtti -ffunction-sections -fdata-sections -Wl,--gc-sections
lib_deps =
[env:lilygo_2CAN_330]
platform = https://github.com/pioarduino/platform-espressif32/releases/download/55.03.38/platform-espressif32.zip
board = esp32s3_flash_16MB
monitor_speed = 115200
monitor_filters = default, time, log2file, esp32_exception_decoder
board_build.arduino.partitions = default_16MB.csv
; The 2CAN's PSRAM is opi, but we set it to qspi, to give us back the use of
; GPIO35-37. Unfortunately it will fail to init (opi PSRAM doesn't work in qspi
; mode), but we're not using it anyway.
board_build.arduino.memory_type = qio_qspi
framework = arduino
build_flags =
-I include
-Wimplicit-fallthrough
-Wextra
-Wall
-D HW_LILYGO2CAN
-D BOARD_HAS_PSRAM
-D ARDUINO_USB_MODE=1
-D ARDUINO_USB_CDC_ON_BOOT=1 ;1 is to use the USB port as a serial port
-D ARDUINO_RUNNING_CORE=1 ; Arduino Runs On Core (setup, loop)
-D ARDUINO_EVENT_RUNNING_CORE=1 ; Events Run On Core
-fno-exceptions -fno-rtti -ffunction-sections -fdata-sections -Wl,--gc-sections
lib_deps =
[env:BECom_330]
platform = https://github.com/pioarduino/platform-espressif32/releases/download/55.03.38/platform-espressif32.zip
board = esp32s3_flash_16MB
monitor_speed = 115200
upload_speed = 921600
monitor_filters = default, time, log2file, esp32_exception_decoder
board_build.arduino.partitions = default_16MB.csv
board_build.arduino.memory_type = qio_qspi
framework = arduino
build_flags =
-I include
-Wimplicit-fallthrough
-Wextra
-Wall
-D HW_BECOM
-D ARDUINO_USB_MODE=1
-D ARDUINO_USB_CDC_ON_BOOT=1 ;1 is to use the USB port as a serial port
-D ARDUINO_RUNNING_CORE=1 ; Arduino Runs On Core (setup, loop)
-D ARDUINO_EVENT_RUNNING_CORE=1 ; Events Run On Core
-fno-exceptions -fno-rtti -ffunction-sections -fdata-sections -Wl,--gc-sections
lib_deps =