mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-10 01:39:54 +03:00
Merge branch 'v2' of https://github.com/proddy/EMS-ESP into v2
esp32 uart
This commit is contained in:
@@ -2,9 +2,9 @@
|
||||
; For EMS-ESP
|
||||
|
||||
[platformio]
|
||||
default_envs = esp8266
|
||||
; default_envs = esp8266
|
||||
; default_envs = esp32
|
||||
;default_envs = esp32_d1
|
||||
default_envs = esp32_d1
|
||||
|
||||
# override any settings with your own local ones in pio_local.ini
|
||||
extra_configs = pio_local.ini
|
||||
@@ -26,7 +26,11 @@ debug_flags =
|
||||
; -D EMSESP_SAFE_MODE
|
||||
; -D ENABLE_CORS -D CORS_ORIGIN=\"http://localhost:3000\"
|
||||
|
||||
build_flags = -std=c++11 -Os -fno-exceptions
|
||||
; default platformio compile flags are:
|
||||
; -fno-rtti -std=c++11 -Os -mlongcalls -mtext-section-literals -falign-functions=4 -ffunction-sections -fdata-sections -fno-exceptions -Wall
|
||||
; (note -flto doesn't make a different to flash)
|
||||
|
||||
build_flags =
|
||||
-D ONEWIRE_CRC16=0
|
||||
-D NO_GLOBAL_ARDUINOOTA
|
||||
-D ARDUINOJSON_ENABLE_STD_STRING=1
|
||||
@@ -59,7 +63,7 @@ check_flags =
|
||||
clangtidy: --checks=-*,clang-analyzer-*,performance-*
|
||||
|
||||
; USB upload
|
||||
; upload_protocol = esptool
|
||||
;upload_protocol = esptool
|
||||
; example ports for OSX
|
||||
;upload_port = /dev/cu.wchusbserial14403
|
||||
;upload_port = /dev/cu.usbserial-1440
|
||||
@@ -70,7 +74,7 @@ upload_protocol = espota
|
||||
upload_flags =
|
||||
--port=8266
|
||||
--auth=neo
|
||||
upload_port = 192.168.0.20
|
||||
upload_port = 192.168.0.23
|
||||
|
||||
[env:esp8266]
|
||||
build_type = release
|
||||
@@ -80,9 +84,9 @@ board = esp12e
|
||||
; board = d1_mini ; https://github.com/platformio/platform-espressif8266/blob/master/boards/d1_mini.json
|
||||
lib_deps = ${common.libs_core} ${common.libs_esp8266}
|
||||
board_build.f_cpu = 160000000L ; 160MHz
|
||||
;board_build.ldscript = eagle.flash.4m1m.ld ; 1019 KB sketch, 1000 KB SPIFFS. 4KB EEPROM, 4KB RFCAL, 12KB WIFI stack, 2052 KB OTA & buffer
|
||||
board_build.ldscript = eagle.flash.4m2m.ld ; 1019 KB sketch, 2024 KB SPIFFS. 4KB EEPROM, 4KB RFCAL, 12KB WIFI stack, 1028 KB OTA & buffer
|
||||
build_flags = ${common.build_flags} ${common.debug_flags} -flto -D PIO_FRAMEWORK_ARDUINO_LWIP2_LOW_MEMORY
|
||||
board_build.ldscript = eagle.flash.4m1m.ld ; 1019 KB sketch, 1000 KB SPIFFS. 4KB EEPROM, 4KB RFCAL, 12KB WIFI stack, 2052 KB OTA & buffer
|
||||
; board_build.ldscript = eagle.flash.4m2m.ld ; 1019 KB sketch, 2024 KB SPIFFS. 4KB EEPROM, 4KB RFCAL, 12KB WIFI stack, 1028 KB OTA & buffer
|
||||
build_flags = ${common.build_flags} ${common.debug_flags} -D PIO_FRAMEWORK_ARDUINO_LWIP2_LOW_MEMORY
|
||||
|
||||
[env:esp32]
|
||||
build_type = release
|
||||
|
||||
Reference in New Issue
Block a user