mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 07:49:52 +03:00
update example for debug
This commit is contained in:
@@ -18,6 +18,7 @@ default_envs = esp32_4M
|
|||||||
; default_envs = esp32_16M
|
; default_envs = esp32_16M
|
||||||
; default_envs = lolin_s3
|
; default_envs = lolin_s3
|
||||||
; default_envs = standalone
|
; default_envs = standalone
|
||||||
|
; default_envs = debug
|
||||||
|
|
||||||
[env:esp32_4M]
|
[env:esp32_4M]
|
||||||
; if using OTA enter your details below
|
; if using OTA enter your details below
|
||||||
@@ -33,6 +34,8 @@ upload_port = /dev/ttyUSB*
|
|||||||
; override arduino espressif core
|
; override arduino espressif core
|
||||||
platform = espressif32 ; take latest
|
platform = espressif32 ; take latest
|
||||||
; platform = espressif32@5.3.0
|
; platform = espressif32@5.3.0
|
||||||
|
; platform = espressif32@6.3.2
|
||||||
|
; platform = espressif32@6.4.0
|
||||||
|
|
||||||
extra_scripts =
|
extra_scripts =
|
||||||
pre:scripts/build_interface.py ; comment out if you don't want to re-build the WebUI each time
|
pre:scripts/build_interface.py ; comment out if you don't want to re-build the WebUI each time
|
||||||
@@ -52,13 +55,21 @@ extra_scripts =
|
|||||||
; options for debugging are: EMSESP_DEBUG EMSESP_UART_DEBUG EMSESP_DEBUG_SENSOR
|
; options for debugging are: EMSESP_DEBUG EMSESP_UART_DEBUG EMSESP_DEBUG_SENSOR
|
||||||
[env:debug]
|
[env:debug]
|
||||||
board = esp32dev
|
board = esp32dev
|
||||||
|
framework = arduino
|
||||||
platform = espressif32
|
platform = espressif32
|
||||||
board_build.partitions = esp32_partition_debug.csv
|
board_build.partitions = esp32_partition_debug.csv
|
||||||
|
; board_build.partitions = esp32_partition_4M.csv
|
||||||
|
board_upload.flash_size = 4MB
|
||||||
|
board_build.filesystem = littlefs
|
||||||
upload_protocol = esptool
|
upload_protocol = esptool
|
||||||
build_type = debug
|
build_type = debug
|
||||||
monitor_raw = no
|
monitor_raw = no
|
||||||
monitor_filters = esp32_exception_decoder
|
monitor_filters = esp32_exception_decoder
|
||||||
debug_tool = esp-prog
|
debug_tool = esp-prog
|
||||||
debug_init_break = tbreak setup
|
debug_init_break = tbreak setup
|
||||||
build_flags = ${factory_settings.build_flags} -DONEWIRE_CRC16=0 -DNO_GLOBAL_ARDUINOOTA -DARDUINOJSON_ENABLE_STD_STRING=1 -DESP32=1 -DARDUINO_ARCH_ESP32=1
|
build_flags = ${factory_settings.build_flags} -DEMSESP_EN_ONLY -DCORE_DEBUG_LEVEL=5 -DONEWIRE_CRC16=0 -DNO_GLOBAL_ARDUINOOTA -DARDUINOJSON_ENABLE_STD_STRING=1 -DESP32=1 -DARDUINO_ARCH_ESP32=1
|
||||||
extra_scripts = pre:scripts/build_interface.py
|
upload_port = /dev/ttyUSB0
|
||||||
|
extra_scripts =
|
||||||
|
; pre:scripts/build_interface.py ; comment out if you don't want to re-build the WebUI each time
|
||||||
|
scripts/rename_fw.py
|
||||||
|
; post:scripts/app-tls-size.py
|
||||||
|
|||||||
Reference in New Issue
Block a user