From 3b35cea8eca9b984fa1c8d4aa2ced790235da08e Mon Sep 17 00:00:00 2001 From: Jason2866 <24528715+Jason2866@users.noreply.github.com> Date: Sun, 25 Jul 2021 13:54:10 +0200 Subject: [PATCH] JTAG debug env --- boards/esp32_solo1_4M.json | 38 ++++++++++++++++++++++++++++++ platformio_tasmota_cenv_sample.ini | 24 +++++++++++++++++++ 2 files changed, 62 insertions(+) create mode 100644 boards/esp32_solo1_4M.json diff --git a/boards/esp32_solo1_4M.json b/boards/esp32_solo1_4M.json new file mode 100644 index 000000000..64759d331 --- /dev/null +++ b/boards/esp32_solo1_4M.json @@ -0,0 +1,38 @@ +{ + "build": { + "arduino":{ + "ldscript": "esp32_out.ld" + }, + "core": "esp32", + "extra_flags": "-DARDUINO_ESP32_DEV -DESP32_4M", + "f_cpu": "80000000L", + "f_flash": "40000000L", + "flash_mode": "dout", + "mcu": "esp32", + "variant": "esp32", + "partitions": "esp32_partition_app1856k_spiffs320k.csv" + }, + "connectivity": [ + "wifi", + "bluetooth", + "ethernet", + "can" + ], + "debug": { + "openocd_target": "esp32-solo-1.cfg" + }, + "frameworks": [ + "arduino", + "espidf" + ], + "name": "Espressif Generic ESP32 4M Flash, Tasmota 1856k Code/OTA, 320k SPIFFS", + "upload": { + "flash_size": "4MB", + "maximum_ram_size": 327680, + "maximum_size": 4194304, + "require_upload_port": true, + "speed": 460800 + }, + "url": "https://en.wikipedia.org/wiki/ESP32", + "vendor": "Espressif" +} diff --git a/platformio_tasmota_cenv_sample.ini b/platformio_tasmota_cenv_sample.ini index d5286bb6c..9b666d8bb 100644 --- a/platformio_tasmota_cenv_sample.ini +++ b/platformio_tasmota_cenv_sample.ini @@ -93,3 +93,27 @@ build_type = debug build_unflags = ${esp32_defaults.build_unflags} build_flags = ${esp32_defaults.build_flags} ; -Wstack-usage=300 + +; *** JTAG Debug version, needs esp-prog or FT2232H or FT232H +[env:tasmota32-ocd] +;build_type = debug +extends = env:tasmota32_base +debug_tool = esp-prog +upload_protocol = esp-prog +debug_init_break = tbreak setup +build_unflags = ${esp32_defaults.build_unflags} +build_flags = ${env:tasmota32_base.build_flags} + +; *** JTAG Debug version, needs esp-prog or FT2232H or FT232H +[env:tasmota32solo1-ocd] +;build_type = debug +extends = env:tasmota32_base +platform_packages = framework-arduinoespressif32 @ https://github.com/tasmota/arduino-esp32/releases/download/1.0.7.3/tasmota-arduinoespressif32-solo1-release_v3.3.5.tar.gz + platformio/tool-esptoolpy @ ~1.30100 + platformio/tool-mklittlefs @ ~1.203.200522 +board = esp32_solo1_4M +debug_tool = esp-prog +upload_protocol = esp-prog +debug_init_break = tbreak setup +build_unflags = ${esp32_defaults.build_unflags} +build_flags = ${env:tasmota32_base.build_flags}