mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 07:49:52 +03:00
fix debug section for S3
This commit is contained in:
@@ -15,23 +15,22 @@
|
|||||||
; my_build_flags = -DEMSESP_TEST -DEMSESP_DEBUG
|
; my_build_flags = -DEMSESP_TEST -DEMSESP_DEBUG
|
||||||
; my_build_flags = -DEMSESP_DEBUG -DEMSESP_TEST -DEMSESP_PINGTEST
|
; my_build_flags = -DEMSESP_DEBUG -DEMSESP_TEST -DEMSESP_PINGTEST
|
||||||
; my_build_flags = -DEMSESP_DEBUG -DCORE_DEBUG_LEVEL=5
|
; my_build_flags = -DEMSESP_DEBUG -DCORE_DEBUG_LEVEL=5
|
||||||
|
; my_build_flags = -DEMSESP_EN_ONLY -DEMSESP_TEST -DCORE_DEBUG_LEVEL=5 -DARDUINO_USB_CDC_ON_BOOT=1
|
||||||
my_build_flags =
|
my_build_flags =
|
||||||
|
|
||||||
[platformio]
|
[platformio]
|
||||||
default_envs = s_16M_P ; BBQKees E32V2
|
; default_envs = s_16M_P ; BBQKees E32V2
|
||||||
; default_envs = s3_16M_P ; BBQKees S3
|
; default_envs = s3_16M_P ; BBQKees S3
|
||||||
; default_envs = s_4M ; BBQKees older S32, 4MB no psram
|
; default_envs = s_4M ; BBQKees older S32, 4MB no psram
|
||||||
; default_envs = s_16M ; BBQKees newer S32 V2, 16MB no psram
|
; default_envs = s_16M ; BBQKees newer S32 V2, 16MB no psram
|
||||||
|
; default_envs = c6 ; XIAO ESP32C
|
||||||
|
default_envs = debug
|
||||||
|
|
||||||
[env]
|
[env]
|
||||||
|
|
||||||
; uncomment this section to enable extra debug
|
|
||||||
; build_type = debug
|
|
||||||
; monitor_filters = colorize, esp32_exception_decoder
|
|
||||||
|
|
||||||
; uncomment if you want to upload the firmware via OTA (must have upload_protocol = custom)
|
; uncomment if you want to upload the firmware via OTA (must have upload_protocol = custom)
|
||||||
extra_scripts =
|
extra_scripts =
|
||||||
; pre:scripts/build_interface.py ; builds the WebUI (unless NO_BUILD_WEBUI is set) - comment out if you don't want to build each time
|
pre:scripts/build_interface.py ; builds the WebUI (unless NO_BUILD_WEBUI is set) - comment out if you don't want to build each time
|
||||||
scripts/rename_fw.py ; renames the firmware .bin file - comment out if not needed
|
scripts/rename_fw.py ; renames the firmware .bin file - comment out if not needed
|
||||||
scripts/upload.py ; optionally upload the firmware via OTA (must have upload_protocol = custom)
|
scripts/upload.py ; optionally upload the firmware via OTA (must have upload_protocol = custom)
|
||||||
|
|
||||||
@@ -47,47 +46,48 @@ custom_password = admin
|
|||||||
; upload_protocol = custom
|
; upload_protocol = custom
|
||||||
; custom_emsesp_ip = <ip address> or ems-esp.local
|
; custom_emsesp_ip = <ip address> or ems-esp.local
|
||||||
|
|
||||||
upload_protocol = custom
|
; upload_protocol = custom
|
||||||
; custom_emsesp_ip = 10.10.10.93 ; S3
|
; custom_emsesp_ip = 10.10.10.93 ; S3
|
||||||
custom_emsesp_ip = 192.168.1.223 ; E32V2
|
custom_emsesp_ip = 192.168.1.223 ; E32V2
|
||||||
; custom_emsesp_ip = 192.168.1.173 ; S32
|
; custom_emsesp_ip = 192.168.1.173 ; S32
|
||||||
; custom_emsesp_ip = 192.168.1.59 ; S32 (old) 4MB blue board
|
; custom_emsesp_ip = 192.168.1.59 ; S32 (old) 4MB blue board
|
||||||
|
|
||||||
lib_deps =
|
; lib_deps =
|
||||||
bblanchon/ArduinoJson @ 7.4.2
|
; bblanchon/ArduinoJson @ 7.4.2
|
||||||
ESP32Async/AsyncTCP @ 3.4.8
|
; ESP32Async/AsyncTCP @ 3.4.9
|
||||||
ESP32Async/ESPAsyncWebServer @ 3.8.1
|
; ESP32Async/ESPAsyncWebServer @ 3.8.1
|
||||||
file://${PROJECT_DIR}/../modules/EMS-ESP-Modules
|
; ; file://${PROJECT_DIR}/../modules/EMS-ESP-Modules
|
||||||
; ; https://github.com/emsesp/EMS-ESP-Modules.git @ 1.0.8
|
; https://github.com/emsesp/EMS-ESP-Modules.git @ 1.0.8
|
||||||
|
|
||||||
[espressif32_base_16M]
|
; [espressif32_base_16M]
|
||||||
|
; framework = arduino
|
||||||
|
; board_build.partitions = partitions/esp32_partition_16M.csv
|
||||||
|
; board_upload.flash_size = 16MB
|
||||||
|
; board_build.app_partition_name = app0
|
||||||
|
; ; platform = espressif32@6.12.0 ; Arduino Core v2.0.17 / IDF v4.4.7
|
||||||
|
; ; platform = https://github.com/pioarduino/platform-espressif32/releases/download/54.03.20/platform-espressif32.zip ; Arduino Core v3.2.0 / ESP-IDF v5.4.1
|
||||||
|
; platform = https://github.com/pioarduino/platform-espressif32/releases/download/55.03.30/platform-espressif32.zip ; Arduino Core 3.3.0, IDF 5.5.0
|
||||||
|
|
||||||
|
; ** debug settings **
|
||||||
|
; to be used with an ESP32-S3 which has an onboard JTAG, connect the OTG USB port to the PC
|
||||||
|
; if using an external JTAG board like the ESP-PROG set debug_tool = esp-prog, and use zadig to set the correct driver for the USB port
|
||||||
|
; see https://docs.platformio.org/en/stable/projectconf/sections/env/options/debug/debug_init_break.html for settings
|
||||||
|
; use with my_build_flags = -DEMSESP_EN_ONLY -DEMSESP_TEST -DCORE_DEBUG_LEVEL=5 -DARDUINO_USB_CDC_ON_BOOT=1
|
||||||
|
[env:debug]
|
||||||
|
board = esp32-s3-devkitc-1
|
||||||
framework = arduino
|
framework = arduino
|
||||||
|
platform = espressif32@6.12.0 ; Arduino Core v2.0.17 / IDF v4.4.7
|
||||||
board_build.partitions = partitions/esp32_partition_16M.csv
|
board_build.partitions = partitions/esp32_partition_16M.csv
|
||||||
board_upload.flash_size = 16MB
|
board_upload.flash_size = 16MB
|
||||||
board_build.app_partition_name = app0
|
board_build.app_partition_name = app0
|
||||||
; platform = espressif32@6.12.0 ; Arduino Core v2.0.17 / IDF v4.4.7
|
|
||||||
; platform = https://github.com/pioarduino/platform-espressif32/releases/download/54.03.20/platform-espressif32.zip ; Arduino Core v3.2.0 / ESP-IDF v5.4.1
|
|
||||||
platform = https://github.com/pioarduino/platform-espressif32/releases/download/55.03.30/platform-espressif32.zip ; Arduino Core 3.3.0, IDF 5.5.0
|
|
||||||
|
|
||||||
; ** debug settings **
|
|
||||||
; to be used with esp-prog/JTAG hardware device like https://docs.espressif.com/projects/esp-dev-kits/en/latest/other/esp-prog/user_guide.html
|
|
||||||
; pio run -e debug
|
|
||||||
; add to build_flags these additional options: EMSESP_DEBUG EMSESP_UART_DEBUG EMSESP_DEBUG_SENSOR
|
|
||||||
[env:debug]
|
|
||||||
board = esp32dev
|
|
||||||
framework = arduino
|
|
||||||
platform = espressif32
|
|
||||||
board_build.partitions = partitions/esp32_partition_debug.csv
|
|
||||||
board_upload.flash_size = 4MB
|
|
||||||
board_build.filesystem = littlefs
|
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 = colorize, esp32_exception_decoder
|
||||||
debug_tool = esp-prog
|
debug_tool = esp-builtin
|
||||||
debug_init_break = tbreak setup
|
debug_init_break =
|
||||||
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
|
upload_speed = 2000000
|
||||||
upload_port = /dev/ttyUSB0
|
monitor_speed = 115200
|
||||||
extra_scripts =
|
extra_scripts =
|
||||||
scripts/rename_fw.py
|
; debug_build_flags = -Og -g2 -ggdb2
|
||||||
post:scripts/app-tls-size.py
|
|
||||||
Reference in New Issue
Block a user