mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 07:49:52 +03:00
include debug target
This commit is contained in:
5
esp32_partition_debug.csv
Normal file
5
esp32_partition_debug.csv
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
# Name, Type, SubType, Offset, Size, Flags
|
||||||
|
nvs, data, nvs, 0x9000, 0x5000,
|
||||||
|
otadata, data, ota, 0xE000, 0x2000,
|
||||||
|
app0, app, ota_0, 0x10000, 0x210000,
|
||||||
|
spiffs, data, spiffs, 0x220000, 0x10000,
|
||||||
|
@@ -2,30 +2,30 @@
|
|||||||
|
|
||||||
[common]
|
[common]
|
||||||
; e.g. use build_flags = -DEMSESP_DEFAULT_BOARD_PROFILE=\"NODEMCU\"
|
; e.g. use build_flags = -DEMSESP_DEFAULT_BOARD_PROFILE=\"NODEMCU\"
|
||||||
|
debug_flags = -DEMSESP_WIFI_TWEAK -DEMSESP_DEBUG
|
||||||
|
; debug_flags =
|
||||||
|
|
||||||
[env:esp32]
|
[env:esp32]
|
||||||
|
; if using OTA enter your details below
|
||||||
upload_protocol = espota
|
upload_protocol = espota
|
||||||
upload_flags =
|
upload_flags =
|
||||||
--port=8266
|
--port=8266
|
||||||
--auth=ems-esp-neo
|
--auth=ems-esp-neo
|
||||||
upload_port = 10.10.10.101
|
upload_port = 10.10.10.101
|
||||||
extra_scripts =
|
|
||||||
; to prevent the web UI from building each time, comment out this next line
|
; to prevent the web UI from building each time, comment out this next line
|
||||||
; pre:scripts/build_interface.py
|
; extra_scripts =
|
||||||
|
|
||||||
; pio run -e debug
|
; pio run -e debug
|
||||||
|
; or from Visual Studio Code do PIO -> Project Tasks -> debug -> General -> Upload and Monitor
|
||||||
; 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
|
||||||
platform = espressif32
|
platform = espressif32
|
||||||
board_build.partitions = esp32_partition_app1984k_spiffs64k.csv
|
board_build.partitions = esp32_partition_debug.csv
|
||||||
upload_protocol = esptool
|
upload_protocol = esptool
|
||||||
build_type = debug
|
build_type = debug
|
||||||
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} -DEMSESP_DEBUG -DONEWIRE_CRC16=0 -DNO_GLOBAL_ARDUINOOTA -DARDUINOJSON_ENABLE_STD_STRING=1 -DESP32=1 -DARDUINO_ARCH_ESP32=1
|
build_flags = ${factory_settings.build_flags} ${common.debug_flags} -DONEWIRE_CRC16=0 -DNO_GLOBAL_ARDUINOOTA -DARDUINOJSON_ENABLE_STD_STRING=1 -DESP32=1 -DARDUINO_ARCH_ESP32=1
|
||||||
extra_scripts =
|
extra_scripts = pre:scripts/build_interface.py
|
||||||
; pre:scripts/build_interface.py
|
|
||||||
scripts/upload_fw.py
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user