Skip to content

Commit 6e3c2b2

Browse files
committed
update example for debug
1 parent 98e2951 commit 6e3c2b2

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

pio_local.ini_example

+13-2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ default_envs = esp32_4M
1818
; default_envs = esp32_16M
1919
; default_envs = lolin_s3
2020
; default_envs = standalone
21+
; default_envs = debug
2122

2223
[env:esp32_4M]
2324
; if using OTA enter your details below
@@ -33,6 +34,8 @@ upload_port = /dev/ttyUSB*
3334
; override arduino espressif core
3435
platform = espressif32 ; take latest
3536
; platform = espressif32@5.3.0
37+
; platform = espressif32@6.3.2
38+
; platform = espressif32@6.4.0
3639

3740
extra_scripts =
3841
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 =
5255
; options for debugging are: EMSESP_DEBUG EMSESP_UART_DEBUG EMSESP_DEBUG_SENSOR
5356
[env:debug]
5457
board = esp32dev
58+
framework = arduino
5559
platform = espressif32
5660
board_build.partitions = esp32_partition_debug.csv
61+
; board_build.partitions = esp32_partition_4M.csv
62+
board_upload.flash_size = 4MB
63+
board_build.filesystem = littlefs
5764
upload_protocol = esptool
5865
build_type = debug
5966
monitor_raw = no
6067
monitor_filters = esp32_exception_decoder
6168
debug_tool = esp-prog
6269
debug_init_break = tbreak setup
63-
build_flags = ${factory_settings.build_flags} -DONEWIRE_CRC16=0 -DNO_GLOBAL_ARDUINOOTA -DARDUINOJSON_ENABLE_STD_STRING=1 -DESP32=1 -DARDUINO_ARCH_ESP32=1
64-
extra_scripts = pre:scripts/build_interface.py
70+
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
71+
upload_port = /dev/ttyUSB0
72+
extra_scripts =
73+
; pre:scripts/build_interface.py ; comment out if you don't want to re-build the WebUI each time
74+
scripts/rename_fw.py
75+
; post:scripts/app-tls-size.py

0 commit comments

Comments
 (0)