-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplatformio.ini
166 lines (139 loc) · 7.81 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
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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
; PlatformIO Project Configuration File
;
; Build options: build flags, source filter, extra scripting
; Upload options: custom port, speed and extra flags
; Library options: dependencies, extra library storages
;
; Please visit documentation for the other options and examples
; http://docs.platformio.org/en/stable/projectconf.html
; *** P1Meter build variant selection
[build_envs]
default_envs =
; *** Uncomment by deleting ";" in the line(s) below to select version(s)
; p1meter-test-OTA
p1meter-test-USB
; p1meter-production
; p1meter
; t1meter
;
; *** alternatively can be done in: platformio_override.ini
; *** See example: platformio_override_sample.ini
; *********************************************************************
[platformio]
description = Provide ESP8266 / ESP32 based devices with P1, MQTT and OTA firmware
src_dir = P1Meter
lib_dir = libs
build_cache_dir = .cache
extra_configs =
platformio_p1meter_env.ini
; platformio_tasmota32.ini
; platformio_tasmota_env32.ini
; platformio_override.ini
default_envs = ${build_envs.default_envs}
[common]
framework = arduino
board = nodemcuv2
board_build.flash_mode = dout
; testing 08apr21
; error/loop: board_build.ldscript = eagle.flash.1m.ld
; works 08apr21: board_build.ldscript = eagle.flash.4m1m.ld
board_build.ldscript = eagle.flash.4m1m.ld
platform = ${core.platform}
platform_packages = ${core.platform_packages}
build_unflags = ${core.build_unflags}
build_flags = ${core.build_flags}
board_build.f_cpu = 80000000L
board_build.f_flash = 40000000L
upload_speed = 115200
monitor_speed = 115200
; *** Upload Serial reset method for Wemos and NodeMCU
upload_resetmethod = nodemcu
upload_port = /dev/ttyUSB0
; upload_port = 192.168.1.125
extra_scripts = ${scripts_defaults.extra_scripts}
lib_ldf_mode = chain+
shared_libdeps_dir = lib
lib_extra_dirs =
lib/lib_div
[scripts_defaults]
extra_scripts = pio-tools/strip-floats.py
pio-tools/name-firmware.py
pio-tools/gzip-firmware.py
pio-tools/override_copy.py
[esp_defaults]
; *** remove undesired all warnings
; 2021-04-28 00:00:26 added -fno-exceptions
build_unflags = -Wall
; -mtarget-align
-Wdeprecated-declarations
; -fno-exceptions ; causes will not fit iram.....
build_flags = -Wno-deprecated-declarations
; -mno-target-align
-mtarget-align
-free
-fipa-pta
-Wreturn-type
; new mechanism to set the IRremoteESP8266 supported protocols: none except HASH, NEC, RC5, RC6
; *********************************************************************
; *** Use custom settings from file P1OverrideSettings.h
-DP1_Override_Settings
; *********************************************************************
[esp82xx_defaults]
; -DPIO_FRAMEWORK_ARDUINO_LWIP2_HIGHER_BANDWIDTH_LOW_FLASH
; -DBEARSSL_SSL_BASIC
build_flags = ${esp_defaults.build_flags}
-Wl,-Map,firmware.map
-Wunused
-DCORE_DEBUG_LEVEL=0
-DFP_IN_IROM
; NONOSDK22x_190703 = 2.2.2-dev(38a443e)
-DPIO_FRAMEWORK_ARDUINO_ESPRESSIF_SDK22x_190703
; -DPIO_FRAMEWORK_ARDUINO_LWIP2_LOW_MEMORY
; -DPIO_FRAMEWORK_ARDUINO_LWIP_HIGHER_BANDWIDTH 1-2 hrs
-DPIO_FRAMEWORK_ARDUINO_LWIP2_LOW_MEMORY_LOW_FLASH
; VTABLES in Flash (compile virtual-defined functions - wich can be overriden by subclasses - into flash)
-DVTABLES_IN_FLASH
; remove the 4-bytes alignment for PSTR()
-DPSTR_ALIGN=1
; restrict to minimal mime-types
; MIMETYPE_MINIMAL allow to compile with only the strict minimum of mime-types [~/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WebServer/src/detail/mimetable.h]
-DMIMETYPE_MINIMAL
; uncomment the following to enable TLS with 4096 RSA certificates
;-DUSE_4K_RSA
[core]
; -D PIO_FRAMEWORK_ARDUINO_LWIP2_LOW_MEMORY v2 Lower Memory (default)
; -D PIO_FRAMEWORK_ARDUINO_LWIP2_HIGHER_BANDWIDTH v2 Higher Bandwidth
; -D PIO_FRAMEWORK_ARDUINO_LWIP2_LOW_MEMORY_LOW_FLASH v2 Lower Memory (no features)
; -D PIO_FRAMEWORK_ARDUINO_LWIP2_HIGHER_BANDWIDTH_LOW_FLASH v2 Higher Bandwidth (no features)
; -D PIO_FRAMEWORK_ARDUINO_LWIP2_IPV6_LOW_MEMORY v2 IPv6 Lower Memory
; -D PIO_FRAMEWORK_ARDUINO_LWIP2_IPV6_HIGHER_BANDWIDTH v2 IPv6 Higher Bandwidth
; -D PIO_FRAMEWORK_ARDUINO_LWIP_HIGHER_BANDWIDTH v1.4 Higher Bandwidth
; 240= [email protected]
; *** Esp8266 P1Meter modified Arduino core based on core 2.7.4. Added Backport for PWM selection
; platform = [email protected] .0
; platform_packages = tasmota/framework-arduinoespressif8266 @ ~2.4.0
; platform_packages = platformio/framework-arduinoespressif8266 @ ~2.4.0
; platform_packages = tasmota/framework-arduinoespressif8266 @ ~2.7.4
; error: platform_packages = framework-arduinoespressif8266 @ 1.20400.3
; gives error double: platform_packages = framework-arduinoespressif8266 @ ~2.4.0
; platform_packages = framework-arduinoespressif8266 @ ~2.4.0
; platform_packages = platformio/[email protected]
; platform_packages = platformio/framework-arduinoespressif8266 @ ~2.4.0
; error platform_package tasmota/framework-arduinoespressif8266 @ 1.20400.3
; platform = espressif8266 @ 2.5.3
; platform = espressif8266 @ 2.4.0
; platform = https://github.com/platformio/platform-espressif8266 @ 2.4.0
; platform = https://github.com/platformio/platform-espressif8266 @ 2.4.0
; 1.7.0 Update Arduino Core to 2.4.1 (issue #76)
; note: this actually points to https://github.com/platformio/platform-espressif8266/tree/v2.4.0
;platform = [email protected] ; v2.3.0
;platform = [email protected] ; v2.4.0
;platform = [email protected] ; v2.4.1
// platform = platformio/espressif8266 @ 1.6.0 // production V24
platform = platformio/espressif8266 @ 1.7.0
platform_packages =
platformio/toolchain-xtensa @ 2.40802.200502
platformio/tool-esptool @ 1.413.0
platformio/tool-esptoolpy @ ~1.30000.0
build_unflags = ${esp_defaults.build_unflags}
build_flags = ${esp82xx_defaults.build_flags}