Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
arduino-esp32
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
arduino-esp32
Commits
0b7f7b0e
Unverified
Commit
0b7f7b0e
authored
Jan 06, 2023
by
Me No Dev
Committed by
GitHub
Jan 06, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Copy JTAG files only if it's enabled in the board menu (#7655)
parent
0ad5eef9
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
36 additions
and
14 deletions
+36
-14
.gitignore
.gitignore
+3
-0
boards.txt
boards.txt
+22
-4
platform.txt
platform.txt
+7
-6
tools/ide-debug/esp32.json
tools/ide-debug/esp32.json
+1
-1
tools/ide-debug/esp32c3.json
tools/ide-debug/esp32c3.json
+1
-1
tools/ide-debug/esp32s2.json
tools/ide-debug/esp32s2.json
+1
-1
tools/ide-debug/esp32s3.json
tools/ide-debug/esp32s3.json
+1
-1
No files found.
.gitignore
View file @
0b7f7b0e
...
...
@@ -37,3 +37,6 @@ _build/
# Test log files
*.log
debug.cfg
debug.svd
debug_custom.json
boards.txt
View file @
0b7f7b0e
...
...
@@ -71,12 +71,17 @@ esp32s3.build.psram_type=qspi
esp32s3.build.memory_type={build.boot}_{build.psram_type}
## IDE 2.0 Seems to not update the value
esp32s3.menu.JTAGAdapter.default=Integrated USB JTAG
esp32s3.menu.JTAGAdapter.default.build.openocdscript=esp32s3-builtin.cfg
esp32s3.menu.JTAGAdapter.default=Disabled
esp32s3.menu.JTAGAdapter.default.build.copy_jtag_files=0
esp32s3.menu.JTAGAdapter.builtin=Integrated USB JTAG
esp32s3.menu.JTAGAdapter.builtin.build.openocdscript=esp32s3-builtin.cfg
esp32s3.menu.JTAGAdapter.builtin.build.copy_jtag_files=1
esp32s3.menu.JTAGAdapter.external=FTDI Adapter
esp32s3.menu.JTAGAdapter.external.build.openocdscript=esp32s3-ftdi.cfg
esp32s3.menu.JTAGAdapter.external.build.copy_jtag_files=1
esp32s3.menu.JTAGAdapter.bridge=ESP USB Bridge
esp32s3.menu.JTAGAdapter.bridge.build.openocdscript=esp32s3-bridge.cfg
esp32s3.menu.JTAGAdapter.bridge.build.copy_jtag_files=1
esp32s3.menu.PSRAM.disabled=Disabled
esp32s3.menu.PSRAM.disabled.build.defines=
...
...
@@ -280,12 +285,17 @@ esp32c3.build.partitions=default
esp32c3.build.defines=
## IDE 2.0 Seems to not update the value
esp32c3.menu.JTAGAdapter.default=Integrated USB JTAG
esp32c3.menu.JTAGAdapter.default.build.openocdscript=esp32c3-builtin.cfg
esp32c3.menu.JTAGAdapter.default=Disabled
esp32c3.menu.JTAGAdapter.default.build.copy_jtag_files=0
esp32c3.menu.JTAGAdapter.builtin=Integrated USB JTAG
esp32c3.menu.JTAGAdapter.builtin.build.openocdscript=esp32c3-builtin.cfg
esp32c3.menu.JTAGAdapter.builtin.build.copy_jtag_files=1
esp32c3.menu.JTAGAdapter.external=FTDI Adapter
esp32c3.menu.JTAGAdapter.external.build.openocdscript=esp32c3-ftdi.cfg
esp32c3.menu.JTAGAdapter.external.build.copy_jtag_files=1
esp32c3.menu.JTAGAdapter.bridge=ESP USB Bridge
esp32c3.menu.JTAGAdapter.bridge.build.openocdscript=esp32c3-bridge.cfg
esp32c3.menu.JTAGAdapter.bridge.build.copy_jtag_files=1
esp32c3.menu.CDCOnBoot.default=Disabled
esp32c3.menu.CDCOnBoot.default.build.cdc_on_boot=0
...
...
@@ -445,10 +455,14 @@ esp32s2.build.partitions=default
esp32s2.build.defines=
## IDE 2.0 Seems to not update the value
esp32s2.menu.JTAGAdapter.default=Disabled
esp32s2.menu.JTAGAdapter.default.build.copy_jtag_files=0
esp32s2.menu.JTAGAdapter.external=FTDI Adapter
esp32s2.menu.JTAGAdapter.external.build.openocdscript=esp32s2-kaluga-1.cfg
esp32s2.menu.JTAGAdapter.external.build.copy_jtag_files=1
esp32s2.menu.JTAGAdapter.bridge=ESP USB Bridge
esp32s2.menu.JTAGAdapter.bridge.build.openocdscript=esp32s2-bridge.cfg
esp32s2.menu.JTAGAdapter.bridge.build.copy_jtag_files=1
esp32s2.menu.CDCOnBoot.default=Disabled
esp32s2.menu.CDCOnBoot.default.build.cdc_on_boot=0
...
...
@@ -627,10 +641,14 @@ esp32.build.loop_core=
esp32.build.event_core=
## IDE 2.0 Seems to not update the value
esp32.menu.JTAGAdapter.default=Disabled
esp32.menu.JTAGAdapter.default.build.copy_jtag_files=0
esp32.menu.JTAGAdapter.external=FTDI Adapter
esp32.menu.JTAGAdapter.external.build.openocdscript=esp32-wrover-kit-3.3v.cfg
esp32.menu.JTAGAdapter.external.build.copy_jtag_files=1
esp32.menu.JTAGAdapter.bridge=ESP USB Bridge
esp32.menu.JTAGAdapter.bridge.build.openocdscript=esp32-bridge.cfg
esp32.menu.JTAGAdapter.bridge.build.copy_jtag_files=1
esp32.menu.PSRAM.disabled=Disabled
esp32.menu.PSRAM.disabled.build.defines=
...
...
platform.txt
View file @
0b7f7b0e
...
...
@@ -151,6 +151,7 @@ build.extra_libs=
build.memory_type={build.boot}_qspi
# OpenOCD default configs
build.copy_jtag_files=0
build.openocdscript.esp32=esp32-wrover-kit-3.3v.cfg
build.openocdscript.esp32s2=esp32s2-kaluga-1.cfg
build.openocdscript.esp32s3=esp32s3-builtin.cfg
...
...
@@ -184,16 +185,16 @@ recipe.hooks.prebuild.5.pattern.windows=cmd /c if exist "{build.source.path}\bui
recipe.hooks.prebuild.6.pattern.windows=cmd /c if not exist "{build.path}\build_opt.h" type nul > "{build.path}\build_opt.h"
# Generate debug.cfg (must be postbuild)
recipe.hooks.postbuild.1.pattern=bash -c "cp -f "{debug.server.openocd.scripts_dir}"board/{build.openocdscript} "{build.source.path}"/debug.cfg"
recipe.hooks.postbuild.1.pattern.windows=cmd /c COPY /y "{debug.server.openocd.scripts_dir}board\{build.openocdscript}" "{build.source.path}\debug.cfg"
recipe.hooks.postbuild.1.pattern=bash -c "
[ {build.copy_jtag_files} -eq 0 ] ||
cp -f "{debug.server.openocd.scripts_dir}"board/{build.openocdscript} "{build.source.path}"/debug.cfg"
recipe.hooks.postbuild.1.pattern.windows=cmd /c
IF {build.copy_jtag_files}==1
COPY /y "{debug.server.openocd.scripts_dir}board\{build.openocdscript}" "{build.source.path}\debug.cfg"
# Generate debug_custom.json
recipe.hooks.postbuild.2.pattern=bash -c "cp -f "{runtime.platform.path}"/tools/ide-debug/{build.mcu}.json "{build.source.path}"/debug_custom.json"
recipe.hooks.postbuild.2.pattern.windows=cmd /c COPY /y "{runtime.platform.path}\tools\ide-debug\{build.mcu}.json" "{build.source.path}\debug_custom.json"
recipe.hooks.postbuild.2.pattern=bash -c "
[ {build.copy_jtag_files} -eq 0 ] ||
cp -f "{runtime.platform.path}"/tools/ide-debug/{build.mcu}.json "{build.source.path}"/debug_custom.json"
recipe.hooks.postbuild.2.pattern.windows=cmd /c
IF {build.copy_jtag_files}==1
COPY /y "{runtime.platform.path}\tools\ide-debug\{build.mcu}.json" "{build.source.path}\debug_custom.json"
# Generate chip.svd
recipe.hooks.postbuild.3.pattern=bash -c "
cp -f "{runtime.platform.path}"/tools/ide-debug/svd/{build.mcu}.svd "{build.source.path}"/{build.mcu}
.svd"
recipe.hooks.postbuild.3.pattern.windows=cmd /c
COPY /y "{runtime.platform.path}\tools\ide-debug\svd\{build.mcu}.svd" "{build.source.path}\{build.mcu}
.svd"
recipe.hooks.postbuild.3.pattern=bash -c "
[ {build.copy_jtag_files} -eq 0 ] || cp -f "{runtime.platform.path}"/tools/ide-debug/svd/{build.mcu}.svd "{build.source.path}"/debug
.svd"
recipe.hooks.postbuild.3.pattern.windows=cmd /c
IF {build.copy_jtag_files}==1 COPY /y "{runtime.platform.path}\tools\ide-debug\svd\{build.mcu}.svd" "{build.source.path}\debug
.svd"
## Compile c files
recipe.c.o.pattern="{compiler.path}{compiler.c.cmd}" {compiler.cpreprocessor.flags} {compiler.c.flags} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} -DARDUINO_BOARD="{build.board}" -DARDUINO_VARIANT="{build.variant}" -DARDUINO_PARTITION_{build.partitions} {compiler.c.extra_flags} {build.extra_flags} "@{build.opt.path}" {includes} "{source_file}" -o "{object_file}"
...
...
tools/ide-debug/esp32.json
View file @
0b7f7b0e
{
"name"
:
"Arduino on ESP32"
,
"toolchainPrefix"
:
"xtensa-esp32-elf"
,
"svdFile"
:
"
esp32
.svd"
,
"svdFile"
:
"
debug
.svd"
,
"request"
:
"attach"
,
"postAttachCommands"
:[
"set remote hardware-watchpoint-limit 2"
,
...
...
tools/ide-debug/esp32c3.json
View file @
0b7f7b0e
{
"name"
:
"Arduino on ESP32-C3"
,
"toolchainPrefix"
:
"riscv32-esp-elf"
,
"svdFile"
:
"
esp32c3
.svd"
,
"svdFile"
:
"
debug
.svd"
,
"request"
:
"attach"
,
"serverArgs"
:[
"-d3"
...
...
tools/ide-debug/esp32s2.json
View file @
0b7f7b0e
{
"name"
:
"Arduino on ESP32-S2"
,
"toolchainPrefix"
:
"xtensa-esp32s2-elf"
,
"svdFile"
:
"
esp32s2
.svd"
,
"svdFile"
:
"
debug
.svd"
,
"request"
:
"attach"
,
"postAttachCommands"
:[
"set remote hardware-watchpoint-limit 2"
,
...
...
tools/ide-debug/esp32s3.json
View file @
0b7f7b0e
{
"name"
:
"Arduino on ESP32-S3"
,
"toolchainPrefix"
:
"xtensa-esp32s3-elf"
,
"svdFile"
:
"
esp32s3
.svd"
,
"svdFile"
:
"
debug
.svd"
,
"request"
:
"attach"
,
"overrideAttachCommands"
:[
"set remote hardware-watchpoint-limit 2"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment