-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathplatformio.ini
73 lines (69 loc) · 3.45 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
;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://docs.platformio.org/en/latest/platforms/espressif8266.html
[platformio]
data_dir = "$PROJECT_DIR/data"
[extra]
;Build flags for 32 bytes SPIFFS filenames
build_flags = -I$PROJECT_DIR/include -D ARDUINOJSON_DECODE_UNICODE=1 -D BEARSSL_SSL_BASIC
;Build flags for 64 bytes SPIFFS filenames --> change symlink %USERPROFILE%\.platformio\packages\tool-mkspiffs
build_flags = -I$PROJECT_DIR/include -D SPIFFS_OBJ_NAME_LEN=64 -D ARDUINOJSON_DECODE_UNICODE=1 -D BEARSSL_SSL_BASIC
;-D PIO_FRAMEWORK_ARDUINO_LWIP2_LOW_MEMORY
;-std=c++14
;-D DEBUG_ESP_PORT=Serial
;-v (verbose)
;build_flags = -I$PROJECT_DIR/include -D DEBUG_ESP_PORT=Serial -D ICACHE_FLASH -D ARDUINOJSON_DECODE_UNICODE -D PIO_FRAMEWORK_ARDUINO_LWIP2_LOW_MEMORY
;-D DEBUG_ESP_HTTP_CLIENT
; -std=gnu++14
;-D F_CRYSTAL=40000000
;-DDEBUG_ESP_OOM -include "umm_malloc/umm_malloc_cfg.h"
; -D UMM_INTEGRITY_CHECK -D UMM_POISON -D DBG_LOG_LEVEL=6
; -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
[env]
[env:nodemcuv2]
;build_unflags = -std=c++11
build_type = debug
;build_type = release
debug_build_flags = -DOpenHABDebug -DPGM_READ_UNALIGNED=0 -D DEBUG_ESP_PORT=Serial
-DDEBUG_ESP_HTTP_SERVER -DDEBUG_ESP_CORE -DDEBUG_ESP_WIFI ${extra.build_flags}
;debug_build_flags = -Wl,-Map,output.map -DOpenHABDebug -DPGM_READ_UNALIGNED=0 -D DEBUG_ESP_PORT=Serial
-DDEBUG_ESP_HTTP_SERVER -DDEBUG_ESP_CORE -DDEBUG_ESP_WIFI ${extra.build_flags}
;debug_build_flags = -v -Wl,-Map,output.map -O0 -g2 -ggdb2 -D OpenHABDebug -D DEBUG_ESP_PORT=Serial -DPGM_READ_UNALIGNED=0 ${extra.build_flags}
build_flags = -D OpenHABDebug -O3 -D ICACHE_FLASH -Wno-deprecated-declarations ${extra.build_flags}
;-D OpenHABDebug
platform_packages =
;toolchain-xtensa @ https://github.com/WallaceWilliam/xtensa-lx106-elf/raw/master/xtensa-lx106-elf-win32-1.22.0-100-ge567ec7-5.2.0.tar.gz
;toolchain-xtensa @ https://github.com/ewaldc/OpenHAB-ESP/raw/master/xtensa-lx106-elf/i686-w64-mingw32.xtensa-lx106-elf-82c751c.1589567088.tar.gz
;framework-arduinoespressif8266 @ https://github.com/esp8266/Arduino.git
framework-arduinoespressif8266
;stable platform
platform = espressif8266
; development platform
;platform = https://github.com/platformio/platform-espressif8266.git
;platform_packages = framework-arduinoespressif8266 @ https://github.com/esp8266/Arduino.git
board = nodemcuv2
framework = arduino
; set frequency to 160MHz
;board_build.f_cpu = 160000000L
board_build.ldscript = eagle.flash.4m2m.ld
upload_speed = 921600
monitor_speed = 115200
;monitor_port = COM[123456789]
monitor_filters = esp8266_exception_decoder
;upload_port = COM[123456789]
;lib_extra_dirs = ~/Documents/Arduino/libraries
lib_deps =