-
Notifications
You must be signed in to change notification settings - Fork 0
/
platformio.ini
62 lines (56 loc) · 1.84 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
53
54
55
56
57
58
59
60
61
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
; https://github.com/platformio/platform-espressif32.git#feature/arduino-idf-master
[env:esp32dev]
platform = espressif32@5.4.0
board = esp32dev
board_build.ram = 520
board_build.partitions = ricpart.csv
framework = espidf
lib_compat_mode = off
monitor_speed = 115200
extra_scripts=extra_script.py
build_flags =
-std=gnu++17
-D ARDUINO=100
-DESP32=1
-DARDUINO_ARCH_ESP32=1
-fexceptions
; -frtti
; -D DEBUG_ENABLED=1
-Wno-missing-field-initializers
build_unflags =
-std=gnu++11
-fno-exceptions
-fno-rtti
[env:esp32s3]
platform = espressif32@5.4.0 ; espressif framework version we are using
board = esp32-s3-devkitc-1
board_build.ram = 520
board_build.flash_mode = dio ; our flash is dio not qio
board_build.partitions = ricpart.csv ; custom partition map
framework = espidf
lib_compat_mode = off ; we are using arduino as a component, so if we dont turn off lib compatibility check, arduino libraries in /lib wont be included
monitor_speed = 115200
extra_scripts=extra_script.py ; allows us to turn on frtti
build_flags =
-std=gnu++17 ; c++ version set to c++17
-D ARDUINO=100
-DESP32=1
-DARDUINO_ARCH_ESP32=1
-DARDUINO_USB_CDC_ON_BOOT=1 ; required to select the usb serial/jtag interface
-DCHECK_FLASH_PROGRAMMING=0 ; allows overlap of some sd card operations to allow for faster preformance.
-DUSE_SD_CRC=1 ; enable CRC check on SD card transactions
-fexceptions ; enable exceptions
-Wno-missing-field-initializers
build_unflags =
-std=gnu++11
-fno-exceptions
-fno-rtti